-
Notifications
You must be signed in to change notification settings - Fork 931
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
Auth: Prune pending TLS identities #14261
Merged
tomponline
merged 16 commits into
canonical:main
from
markylaing:prune-pending-tls-identities
Oct 31, 2024
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
be1ec61
lxd/state: Add LeaderInfo type and function to state.
markylaing 2220cde
lxd: Set LeaderInfo function in `(*Daemon).State`.
markylaing 7fe7737
lxd: Update ACME handlers to use `(*State).LeaderInfo`.
markylaing afbd115
lxd: Update cluster handlers to use `(*State).LeaderInfo`.
markylaing 15591e9
lxd: Update image sync task to use `(*State).LeaderInfo`.
markylaing 458e458
lxd: Update instance handlers to use `(*State).LeaderInfo`.
markylaing 5093829
lxd: Update operation prune task to use `(*State).LeaderInfo`.
markylaing 07a7c8f
lxd: Update database patch to use `(*State).LeaderInfo`.
markylaing b2dd68e
lxd/db/cluster: Differentiate errors returned by PendingTLSMetadata.
markylaing de48dc3
lxd: Remove expired pending TLS identities in token prune task.
markylaing 11bc5a3
lxd: Change log level to 'warn' for the token prune task.
markylaing effd497
lxd: Opportunistically remove invalid/expired pending TLS identities.
markylaing a8f95c5
lxd: Add internal testing handler to trigger token prune task.
markylaing efb7028
test/suites: Test that expired pending identities are removed when to…
markylaing f20f62d
test/suites: Test the token pruning task removes expired pending TLS …
markylaing 86b65fe
test/suites: Test token prune task for certificate add token operations.
markylaing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this be better classified as a
BadRequest
?This does impact the metrics so just making sure we are getting this right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that but I didn't want to change the existing HTTP code as that's technically an API change