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

Register new scope 'cody_gateway::flaggedprompts::*' #11

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

chrsmith
Copy link
Contributor

@chrsmith chrsmith commented Apr 2, 2024

As part of some work I'm doing with battling abuse in Cody Gateway, I registered a new SAMS-authenticated REST API https://github.com/sourcegraph/sourcegraph/pull/61514/files. This new REST API performs authentication by looking for the "cody_gateway::flaggedprompts::read" scope.

No SAMS clients have that scope yet. Nor can I register one until after merging this PR and getting it integrated into Sourcegraph-accounts, and then deploying that to production.

... but once that is done, I'll register a new SAMS Client for abuse-ban-bot, and add that as one of the scopes the client is able to request. Thereby allowing to be make use of these new APIs.

Test plan

NA

@chrsmith chrsmith requested a review from a team as a code owner April 2, 2024 19:48
@chrsmith chrsmith merged commit 7549fe5 into main Apr 2, 2024
2 checks passed
@chrsmith chrsmith deleted the chrsmith/add-cody-gateway-scopes branch April 2, 2024 20:00
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