You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
programmerq opened this issue
Jun 6, 2022
· 2 comments
· Fixed by #14506
Assignees
Labels
bugc-acInternal Customer ReferencediscoverIssues related to Teleport Discovergood-starter-issueGood starter issue to start contributing to TeleportrbacIssues related to Role Based Access ControluiuxwebassetsAutomated PRs for webassets submodules
A user with the create permission for tokens should be able to create a token in the web interface.
Current behavior:
The web interface complains that the user does not have the update permission when a user tries to create a token. It appears the web gui will create and then update. The same user is able to successfully do a tctl create command from the command line since that only issues an api call with the create verb.
Bug details:
Teleport version
Recreation steps
Debug logs
gz#5325
The text was updated successfully, but these errors were encountered:
There's a difference between tctl and web clients:
tctl uses GenerateToken - requires create verb on token resource
web uses UpsertToken - requires createandupdate verb on token resource
That's why we get this error
We can't use GenerateToken from web because it doesn't allow setting the JoinMethod required to generate a Provision Token for IAM joining.
I guess our usage of the Upsert<resource> methods leads to this situations, I'm sure there are other resources with this approach (roles comes to mind)
bugc-acInternal Customer ReferencediscoverIssues related to Teleport Discovergood-starter-issueGood starter issue to start contributing to TeleportrbacIssues related to Role Based Access ControluiuxwebassetsAutomated PRs for webassets submodules
Expected behavior:
A user with the
create
permission for tokens should be able to create a token in the web interface.Current behavior:
The web interface complains that the user does not have the
update
permission when a user tries to create a token. It appears the web gui will create and then update. The same user is able to successfully do atctl create
command from the command line since that only issues an api call with the create verb.Bug details:
gz#5325
The text was updated successfully, but these errors were encountered: