Skip to content

Credential Management

OneQuery is most useful when it replaces scattered credentials with named source access.

  • Create provider credentials dedicated to OneQuery when possible.
  • Use read-only database roles and provider tokens for agent-facing sources.
  • Scope tokens to the projects, repositories, accounts, or datasets needed for the workflow.
  • Rotate provider credentials through the source configuration path.
  • Do not paste raw credentials into prompts, issue comments, docs, or test fixtures.

Use separate OneQuery sources for separate risk levels:

Source identifierPurpose
postgres://warehouse_stagingLower-risk test or staging analytics.
postgres://warehouse_prodProduction warehouse access.
github://github_mainMain repository access.
sentry://sentry_web_prodProduction web error evidence.

Do not reuse a source identifier for a different environment after an agent has been instructed to use it.

  1. Create the replacement credential at the provider.
  2. Update the OneQuery source configuration.
  3. Test a minimal command.
  4. Revoke the previous provider credential.
  5. Review recent audit history for unexpected failures.