Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prefix to API keys to make them easy to identify by scanners. #7115

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vadimberezniker
Copy link
Member

@vadimberezniker vadimberezniker commented Jul 29, 2024

My plan is to configure the following prefixes:
Prod: bb_key_
Non-prod: bb_dev_
All other: bb_ent_

Rollout strategy:

  • First release will accept prefixed API keys but will not yet generate keys with a prefix
  • Second release will start generating new keys with a prefix. Non-prefixed API keys will continue to be accepted.

https://github.com/buildbuddy-io/buildbuddy-internal/issues/3644

Related issues: N/A

My plan is to configure the following prefixes:
 Prod: bbak_
 Dev: bbakd_
 All other: bbaki_

Rollout strategy:
 - First release will accept prefixed API keys but will not yet generate
   keys with a prefix
 - Second release will start generating new keys with a prefix.
   Non-prefixed API keys will continue to be accepted.

buildbuddy-io/buildbuddy-internal#3644
@tylerwilliams
Copy link
Member

Was talking to @siggisim about this a little -- for prefixes, could we use:

  • bb_
  • bbp_/bbd_ or
  • bb_key_

@vadimberezniker
Copy link
Member Author

Was talking to @siggisim about this a little -- for prefixes, could we use:

  • bb_
  • bbp_/bbd_ or
  • bb_key_

how about bb_key_ for prod, bbd_key_ for dev and bbi_key_ for all other environments?

@tylerwilliams @siggisim

@vadimberezniker
Copy link
Member Author

@tylerwilliams @siggisim ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants