Skip to content

Handle private key policy errors for the web UI#17651

Merged
kimlisa merged 3 commits intojoerger/fix-localagent-signersfrom
lisa/check-hardware-key-web
Oct 28, 2022
Merged

Handle private key policy errors for the web UI#17651
kimlisa merged 3 commits intojoerger/fix-localagent-signersfrom
lisa/check-hardware-key-web

Conversation

@kimlisa
Copy link
Copy Markdown
Contributor

@kimlisa kimlisa commented Oct 21, 2022

part of #16168

Description

Please see gravitational/webapps#1298, for UI and copy review. I've tried to target all edge cases, let me know if you folks come up with more.

  • When user registers or resets, when running into
    policy errors, we don't send back an error, but instead
    a 200 (to indicate user has successfully registered/resetted)
    and a flag to determine if policy was enabled
  • Send back policy configurations from cluster config,
    this will allow the web UI login page to just display
    redirection messages without allowing any login attempts
  • For role configured policy, login attempts will be
    required and a specific error will be returned so that
    the UI can then better redirect the user

- When user registers or resets, when running into
policy errors, we don't send back an error, but instead
a 200 (to indicate user has successfully registered/resetted)
and a flag to determine if policy was enabled
- Send back policy configurations for cluster config,
this will allow the web UI login page to just display
redirection messages without login attempts
- For role configured policy, login attempts will be
required and a specific error will be returned so that
the UI can then better redirect the user
@kimlisa kimlisa changed the base branch from master to joerger/fix-localagent-signers October 24, 2022 16:26
@kimlisa kimlisa requested review from Joerger and jakule October 25, 2022 07:36
@kimlisa kimlisa marked this pull request as ready for review October 25, 2022 07:36
Comment thread lib/auth/password.go Outdated
Comment thread lib/web/apiserver.go Outdated
Comment thread lib/web/apiserver.go Outdated
Comment thread lib/web/apiserver.go Outdated
Copy link
Copy Markdown
Contributor

@marcoandredinis marcoandredinis left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions Bot removed request for Joerger and jakule October 25, 2022 16:18
Copy link
Copy Markdown
Contributor

@Joerger Joerger left a comment

Choose a reason for hiding this comment

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

Can we backport this to v11?

Comment thread lib/auth/password.go Outdated
@kimlisa kimlisa merged commit ece1af5 into joerger/fix-localagent-signers Oct 28, 2022
@github-actions
Copy link
Copy Markdown
Contributor

@kimlisa See the table below for backport results.

Branch Result
branch/v11 Failed

kimlisa added a commit that referenced this pull request Oct 28, 2022
@zmb3 zmb3 deleted the lisa/check-hardware-key-web branch May 7, 2024 22:36
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.

Hardware key WebUI registration

4 participants