-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Enable hardware key support in the WebUI #32781
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
Changes from all commits
a39b7ab
f3f8dd2
513d937
e2c4c7c
0048bb7
daadaf1
81e9395
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2351,10 +2351,8 @@ func (a *ServerWithRoles) WebSessions() types.WebSessionInterface { | |
|
|
||
| // Get returns the web session specified with req. | ||
| func (r *webSessionsWithRoles) Get(ctx context.Context, req types.GetWebSessionRequest) (types.WebSession, error) { | ||
| if err := r.c.currentUserAction(req.User); err != nil { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was this check not needed?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only the Proxy Role needs to retrieve web sessions for the WebUI to function correctly, so yes the check can be removed. Previously, this would allow users to retrieve their own web session (and secret private key / certs) directly using the |
||
| if err := r.c.action(apidefaults.Namespace, types.KindWebSession, types.VerbRead); err != nil { | ||
| return nil, trace.Wrap(err) | ||
| } | ||
| if err := r.c.action(apidefaults.Namespace, types.KindWebSession, types.VerbRead); err != nil { | ||
| return nil, trace.Wrap(err) | ||
| } | ||
| return r.ws.Get(ctx, req) | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.