Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/auth/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ pub fn read_only_scopes() -> Vec<&'static str> {
"metrics_read",
"monitors_read",
"notebooks_read",
"observability_pipelines_read",
"oci_configuration_read",
"on_call_read",
"reference_tables_read",
Expand Down Expand Up @@ -180,6 +181,10 @@ pub fn default_scopes() -> Vec<&'static str> {
// Notebooks
"notebooks_read",
"notebooks_write",
// Observability Pipelines
"observability_pipelines_read",
"observability_pipelines_deploy",
"observability_pipelines_delete",
Comment thread
Jansen-w marked this conversation as resolved.
// OCI
"oci_configuration_edit",
"oci_configuration_read",
Expand Down Expand Up @@ -298,6 +303,10 @@ mod tests {
assert!(scopes.contains(&"workflows_read"));
assert!(scopes.contains(&"workflows_run"));
assert!(scopes.contains(&"workflows_write"));
// Observability Pipelines
assert!(scopes.contains(&"observability_pipelines_read"));
assert!(scopes.contains(&"observability_pipelines_deploy"));
assert!(scopes.contains(&"observability_pipelines_delete"));
}

#[test]
Expand Down
3 changes: 1 addition & 2 deletions src/commands/obs_pipelines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use crate::formatter;
use crate::util;

fn make_api(cfg: &Config) -> ObservabilityPipelinesAPI {
// Observability Pipelines does not support OAuth — API key auth only.
crate::make_api_no_auth!(ObservabilityPipelinesAPI, cfg)
crate::make_api!(ObservabilityPipelinesAPI, cfg)
}

pub async fn list(cfg: &Config, limit: i64) -> Result<()> {
Expand Down
Loading