Skip to content

v0.11#180

Draft
zachmann wants to merge 16 commits into
mainfrom
v11
Draft

v0.11#180
zachmann wants to merge 16 commits into
mainfrom
v11

Conversation

@zachmann

Copy link
Copy Markdown
Collaborator

No description provided.

@deepsource-io

deepsource-io Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

DeepSource Code Review

We reviewed changes in c448801...1dc08ac on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Coverage  

Code Review Summary

Analyzer Status Updated (UTC) Details
Go Jul 20, 2026 8:48a.m. Review ↗
Code coverage Jul 20, 2026 8:48a.m. Review ↗

Code Coverage Summary

Language Line Coverage (New Code) Line Coverage (Overall)
Aggregate
49.3%
49.8%
[▲ up 4.6% from main]
Go
49.3%
49.8%
[▲ up 4.6% from main]

➟ Additional coverage metrics may have been reported. See full coverage report ↗


Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

zachmann added 4 commits July 16, 2026 10:54
In rotationStep, the rotation-evaluation loop over kms.Algs ran before
pending scheduled algorithm/default changes were applied. After a scheduled
alg switch became effective and the old alg's key had expired (e.g. during
downtime), the loop still iterated the old alg set and regenerated a key
for the no-longer-configured algorithm.

Move the scheduled-state application (applyAlg/applyDef) to run before the
rotation-evaluation loop, and re-fetch active keys afterwards so the loop
operates on the up-to-date alg set and loaded keys. Also derive the sleep
wait from the injected 'now' instead of time.Until for consistency.

Applies to both PEMStorageKMS and PKCS11KMS. Adds a regression test.
…and validations

Introducing `SubordinateJWKSRefresher`, which automates subordinate JWKS polling and updates, ensuring changes are detected and updated in storage. Includes tests for key scenarios like signature verification, polling intervals, and KID conflicts.
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.

1 participant