Skip to content

Manage Connector Tokens and Project Secrets

Tell connector tokens apart from encrypted project secrets, and learn where to revoke or replace each credential.

BhaiCode uses connector credentials to act on your behalf in services like GitHub, GitLab, Vercel, Netlify, Neon, and Supabase. Your application can also have its own secrets, such as a private database connection string. Those are separate stores: the project secret store encrypts values before saving them, while connector responses mask token values without establishing the same encryption guarantee.

Choose the right place for a credential

CredentialWhere it belongsWhat BhaiCode returns
Access token or API key for a connectorThe account’s connector settingsA masked value in the connector response
Private connection string or API key for your applicationThe project’s Secrets panel in Cloud StudioThe secret name and a short suffix, rather than the full value

Cloud Studio encrypts project secret values at rest with AES-256-GCM. The service scopes secret records to the owning account and project. Connector records are scoped to the account and provider instead. For those records, the connector service doesn’t apply the project secret store’s encryption before saving the token. Masking changes what the API returns; it doesn’t change how the value is stored.

Put secrets in the settings meant for them. Keep token values out of chat, source files, screenshots, and logs. Use the mask or suffix to identify a credential without sharing the full value.

Limit the access you grant

On the provider’s OAuth screen, check the account or organization and the permissions the connector requests. Accept the grant only if those permissions match the work you want BhaiCode to do. If you supply an API key instead, choose one limited to the resources and permissions you need, when the provider allows it.

Revoke and replace a credential

If a connector credential was exposed or the integration is no longer needed, revoke the token or OAuth grant at the provider. Disconnecting in BhaiCode removes the saved connection from your account; it doesn’t revoke the upstream credential. If you still need the connector, reconnect it with a new grant or key.

For an application secret, revoke or rotate the old value where it was issued, update the project’s secret, and verify the application still connects before resuming normal use.

Next

Was this page helpful?