feat: add allow list to API keys#19972
Merged
ThomasK33 merged 1 commit intoOct 24, 2025
Merged
Conversation
This was referenced Sep 25, 2025
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
05cdebd to
5442fcd
Compare
1fea0d8 to
8013625
Compare
da32dec to
f2fbea4
Compare
8013625 to
4382587
Compare
f2fbea4 to
847f52e
Compare
4382587 to
fb2440e
Compare
847f52e to
1361b86
Compare
fb2440e to
ce693c0
Compare
1361b86 to
581bc52
Compare
581bc52 to
6d17ef1
Compare
ce693c0 to
f1a4e56
Compare
f1a4e56 to
a591e0a
Compare
6d17ef1 to
6fa5fe1
Compare
5dd3400 to
5a6e8cc
Compare
d38ed5b to
5cb53f7
Compare
5a6e8cc to
73a65fa
Compare
5cb53f7 to
6248fff
Compare
7d422aa to
d590c1d
Compare
6248fff to
67ed32b
Compare
d590c1d to
49af2b4
Compare
4beef99 to
86f7de9
Compare
49af2b4 to
fa53285
Compare
86f7de9 to
854efb0
Compare
fa53285 to
d7df2aa
Compare
87fb51c to
3bdb267
Compare
Emyrk
reviewed
Oct 7, 2025
d7df2aa to
a1346f5
Compare
Emyrk
requested changes
Oct 9, 2025
This was referenced Oct 9, 2025
Emyrk
reviewed
Oct 15, 2025
Emyrk
reviewed
Oct 23, 2025
Add allow_list field to API key data structures and ensure proper JSON serialization across backend and frontend. Initialize with default wildcard entry (*:*) for backward compatibility with existing API keys that don't have explicit resource restrictions. Fixes #19854
Emyrk
approved these changes
Oct 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add API key allow list to the SDK
This PR adds an allow list to API keys in the SDK. The allow list is a list of targets that the API key is allowed to access. If the allow list is empty, a default allow list with a single entry that allows access to all resources is created.
The changes include:
Fixes #19854