Skip to content
Merged
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
13 changes: 13 additions & 0 deletions src/auth/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ pub fn read_only_scopes() -> Vec<&'static str> {
"code_coverage_read",
"test_optimization_read",
"dashboards_read",
"built_in_features",
"data_scanner_read",
"dbm_read",
"error_tracking_read",
"events_read",
"gcp_configuration_read",
Expand Down Expand Up @@ -146,6 +148,12 @@ pub fn default_scopes() -> Vec<&'static str> {
"data_scanner_read",
// Data Streams
"data_streams_monitoring_capture_messages",
// Database Monitoring
// built_in_features is required on US1/EU1 while the DBM team migrates to dbm_read.
// Both are requested so the command works on all sites during the transition.
// Once the migration is complete, built_in_features can be removed from both scope lists.
"built_in_features",
"dbm_read",
// Error Tracking
"error_tracking_read",
// Events
Expand Down Expand Up @@ -318,6 +326,9 @@ mod tests {
assert!(scopes.contains(&"apps_run"));
assert!(scopes.contains(&"apps_write"));
assert!(scopes.contains(&"connections_read"));
// Database Monitoring
assert!(scopes.contains(&"dbm_read"));
assert!(scopes.contains(&"built_in_features"));
}

#[test]
Expand All @@ -334,6 +345,8 @@ mod tests {
assert!(ro.contains(&"dashboards_read"));
assert!(ro.contains(&"monitors_read"));
assert!(ro.contains(&"apps_run"));
assert!(ro.contains(&"dbm_read"));
assert!(ro.contains(&"built_in_features"));
assert!(!ro.contains(&"org_management"));
assert!(!ro.contains(&"teams_manage"));
assert!(!ro.contains(&"monitors_write"));
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ enum Commands {
/// pup dbm samples search --query "dbm_type:activity service:orders env:prod" --from 1h --limit 10
///
/// AUTHENTICATION:
/// Requires DD_API_KEY + DD_APP_KEY.
/// Accepts OAuth2 (`pup auth login`) or DD_API_KEY + DD_APP_KEY.
#[command(verbatim_doc_comment)]
Dbm {
#[command(subcommand)]
Expand Down
Loading