feat: add static key file support for OIDC authentication with per-issuer configuration#874
Merged
mattisonchao merged 6 commits intomainfrom Jan 29, 2026
Merged
Conversation
- Add StaticKeyFile field to OIDCOptions - Implement loadPublicKeysFromFile function to load PEM-encoded keys - Update NewOIDCProvider to support both static keys and remote JWKS - Add comprehensive unit tests for static key functionality - Update CLI help text with new parameter - Maintain full backward compatibility with existing OIDC configuration Co-authored-by: mattisonchao <74767115+mattisonchao@users.noreply.github.com>
- Remove unused ErrInvalidKeyFile error - Improve key parsing logic to handle different key types properly - Add strings.TrimSpace() for issuer URLs and audiences - Add comprehensive tests for ECDSA keys and certificates - Improve error messages with more specific context Co-authored-by: mattisonchao <74767115+mattisonchao@users.noreply.github.com>
Co-authored-by: mattisonchao <74767115+mattisonchao@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for loading static key file in OIDC auth
feat: add static key file support for OIDC authentication
Jan 29, 2026
Member
|
HI @copilot We should consider the load public key for different issuers. You have to split them into a map structure. |
- Change StaticKeyFile (string) to StaticKeyFiles (map[string]string) - Support different key files for different issuers - Allow mixing static keys and remote JWKS per issuer - Add comprehensive tests for multiple issuers with different keys - Update CLI documentation with map example Co-authored-by: mattisonchao <74767115+mattisonchao@users.noreply.github.com>
Contributor
Author
Changed to use a map structure! Now
Commit: 085b1f7 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
feat: add static key file support for OIDC authentication
feat: add static key file support for OIDC authentication with per-issuer configuration
Jan 29, 2026
mattisonchao
approved these changes
Jan 29, 2026
Member
|
Hi @copilot please fix the golanglint. |
- Add default case to switch statement in loadPublicKeysFromFile - Preallocate pemData slice in test to avoid unnecessary allocations - All golangci-lint checks now pass Co-authored-by: mattisonchao <74767115+mattisonchao@users.noreply.github.com>
Contributor
Author
Fixed all golangci-lint issues:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Plan for Static Key File Support in OIDC Authentication
StaticKeyFilesmap field toOIDCOptionsstructSecurity Summary
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.