-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix Per-session MFA for leaf apps #51394
base: master
Are you sure you want to change the base?
Conversation
f4ac8f6
to
fa93b48
Compare
fa93b48
to
add9cc9
Compare
9ca5eae
to
e2d0ae8
Compare
lib/web/mfa.go
Outdated
// If the MFA requirement check is being performed for a leaf host, we must check directly | ||
// with the leaf cluster before the authentication challenge request through root. | ||
if req.IsMFARequiredRequest.ClusterID != "" && req.IsMFARequiredRequest.ClusterID != c.cfg.RootClusterName { |
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.
Can we add some test coverage for the fix?
2e285ab
to
5c887d6
Compare
…etupTrustedCluster.
eae69cf
to
de47e12
Compare
98892fa
to
d18d4ff
Compare
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.
Many thanks for the tests.
// If this is an mfa required check for a leaf host, we need to check the requirement through | ||
// the leaf cluster, rather than through root in the authenticate challenge request below | ||
// | ||
// TODO(Joerger): Currently, we only leafs hosts that we check mfa requirements for directly |
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.
nit: this commentry reads like its missing some words
MFA for app access in the WebUI mistakenly used the user's root client to check if mfa is required when connecting to a leaf app:
Fixes #51350
Changelog: Fix connecting to Apps in a leaf cluster when Per-session MFA is enabled.