Skip to content

feat(security): Add env var to restrict api key creation#577

Merged
msukkari merged 2 commits intomainfrom
msukkarieh/restrict_apikey
Oct 28, 2025
Merged

feat(security): Add env var to restrict api key creation#577
msukkari merged 2 commits intomainfrom
msukkarieh/restrict_apikey

Conversation

@msukkari
Copy link
Copy Markdown
Contributor

Adds experimental env var to prevent non-admins to create API Keys: EXPERIMENT_DISABLE_API_KEY_CREATION_FOR_NON_ADMIN_USERS. Allows teams to control usage of Sourcebot with MCP server.

In the future we'll want to have a more useful dashboard to be able to audit API keys, scope, and usage.

@github-actions

This comment has been minimized.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Oct 28, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch msukkarieh/restrict_apikey

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@brendan-kellam brendan-kellam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@msukkari msukkari merged commit 5b1caae into main Oct 28, 2025
9 checks passed
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.

2 participants