Skip to content

fix(mecatui): skip unchanged login confirmation - #1279

Merged
jhrozek merged 1 commit into
mainfrom
no-confirm
Sep 9, 2026
Merged

jhrozek merged 1 commit into
mainfrom
no-confirm

Conversation

@jhrozek

@jhrozek jhrozek commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Why: A repeated login should not require another approval when the freshly discovered enrollment is exactly the one the operator already confirmed, while any changed or unreadable enrollment must remain default-deny.

How: Read the existing registry without creating state and bypass confirmation only for an exact canonical resource, complete identity and scopes, issuer CA, and issuer-address-policy match. Keep lookup errors fail-closed; cover clean, corrupt, and empty registry paths and document the behavior.

Co-Authored-By: mecatl [email protected]

Why: A repeated login should not require another approval when the freshly discovered enrollment is exactly the one the operator already confirmed, while any changed or unreadable enrollment must remain default-deny.

How: Read the existing registry without creating state and bypass confirmation only for an exact canonical resource, complete identity and scopes, issuer CA, and issuer-address-policy match. Keep lookup errors fail-closed; cover clean, corrupt, and empty registry paths and document the behavior.

Co-Authored-By: mecatl <[email protected]>
@jhrozek
jhrozek merged commit 1e114fc into main Sep 9, 2026
31 checks passed
@jhrozek
jhrozek deleted the no-confirm branch September 9, 2026 09:26
JAORMX pushed a commit that referenced this pull request Sep 9, 2026
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