Skip to content
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

View users unable to use 'tw runs view -i [id]' #371

Closed
markpanganiban opened this issue Dec 11, 2023 · 1 comment · Fixed by #372
Closed

View users unable to use 'tw runs view -i [id]' #371

markpanganiban opened this issue Dec 11, 2023 · 1 comment · Fixed by #372
Assignees

Comments

@markpanganiban
Copy link

markpanganiban commented Dec 11, 2023

Seeing the following error when using tw runs view -i.

tower-backend-1      | Dec-11 21:43:44.839 [io-executor-thread-3] 104.28.208.123 DEBUG i.s.t.s.r.AbstractAuthRequiredInterceptor - Operation 'DescribeLaunch' rejected
tower-backend-1      | Request URI: /launch/3pUuGa7dlgQmXb7EoktpKd?workspaceId=40141464937493
tower-backend-1      | Request data: {authenticatedUserId=3, roles=[user], launchId=3pUuGa7dlgQmXb7EoktpKd, workspaceId=40141464937493, sourceWorkspaceId=null}
tower-backend-1      | User scopes: [usr:user, wsp:view]
tower-backend-1      | Context: {scope="usr:user", checkers=[LaunchBelongsToUserChecker], result="Rejected: Launch belongs to a workspace"}
tower-backend-1      | Context: {scope="wsp:owner", checkers=[LaunchBelongsToWorkspaceChecker], result="Rejected: Scope 'wsp:owner' not found among user scopes"}
tower-backend-1      | Context: {scope="wsp:admin", checkers=[LaunchBelongsToWorkspaceChecker], result="Rejected: Scope 'wsp:admin' not found among user scopes"}
tower-backend-1      | Context: {scope="wsp:maintain", checkers=[LaunchBelongsToWorkspaceChecker], result="Rejected: Scope 'wsp:maintain' not found among user scopes"}
tower-backend-1      | Context: {scope="wsp:launch", checkers=[LaunchBelongsToWorkspaceChecker], result="Rejected: Scope 'wsp:launch' not found among user scopes"}
tower-backend-1      | Dec-11 21:43:44.843 [io-executor-thread-9] 104.28.208.123 WARN  i.s.t.c.GlobalErrorController - Operation 'DescribeLaunch' not allowed to user 3 with roles usr:user,wsp:view
mark@ubuntu:~/scripts/tw$ ./tw runs view -i 37iBJYsvHoamxx

 ERROR: Pipeline run '37iBJYsvHoamxx' not found at [longs / department] workspace

Upgrading the permission to Launch enables the use of the command.

@markpanganiban
Copy link
Author

Expected Behavior: User with view roles can view runs using tower-cli
Version: 0.9.0
Steps to reproduce:

  • Create a user with View role. Generate a tower API key.
  • Run the tower-cli ./tw runs view -i [id]

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 a pull request may close this issue.

2 participants