Skip to content

Conversation

@markylaing
Copy link
Contributor

These were also part of #16223 but can be merged separately to ease it's review. This will need to be rebased when #16255 is merged.

The response writer is not referenced in the block, so there is no need
for the nil check.

Signed-off-by: Mark Laing <[email protected]>
We rely on the authorizer to check if the identity is in the cache during
each access check. We will soon stop doing this and instead add the
identity to the request context. So we need to restrict this further so
that PKI is only set when `core.trust_ca_certificates` is true, the client
certificate is signed by the CA, and the certificate is not present in the
identity cache.

Signed-off-by: Mark Laing <[email protected]>
This was starting a transaction unnecessarily if the request was not a
cluster notification.

Signed-off-by: Mark Laing <[email protected]>
Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

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

Thanks

@tomponline tomponline merged commit e550da9 into canonical:main Aug 19, 2025
29 checks passed
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