Skip to content

Update cloud-templates controller to support multi-public-key verification#1919

Merged
MarceloRGonc merged 2 commits intomainfrom
mg/OPS-3586
Feb 6, 2026
Merged

Update cloud-templates controller to support multi-public-key verification#1919
MarceloRGonc merged 2 commits intomainfrom
mg/OPS-3586

Conversation

@MarceloRGonc
Copy link
Contributor

Fixes OPS-3586.

Copilot AI review requested due to automatic review settings February 6, 2026 15:30
@linear
Copy link

linear bot commented Feb 6, 2026

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the cloud templates controller to support verification against multiple public keys instead of a single key. The change allows the authentication system to try multiple public keys when verifying JWT tokens, improving flexibility for key rotation or multi-tenant scenarios.

Changes:

  • Introduced a helper function verifyUserWithPublicKeys that iterates through multiple public keys for JWT verification
  • Updated authentication calls to use the new multi-key verification function
  • Wrapped the existing single public key in an array to maintain backward compatibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2026

@MarceloRGonc MarceloRGonc merged commit 8d8a9b1 into main Feb 6, 2026
21 checks passed
@MarceloRGonc MarceloRGonc deleted the mg/OPS-3586 branch February 6, 2026 15:42
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