Skip to content

template permissions: user with admin access cannot push or pull a template #4415

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

Closed
bpmct opened this issue Oct 7, 2022 · 1 comment · Fixed by #4500
Closed

template permissions: user with admin access cannot push or pull a template #4415

bpmct opened this issue Oct 7, 2022 · 1 comment · Fixed by #4500
Assignees

Comments

@bpmct
Copy link
Member

bpmct commented Oct 7, 2022

The Jane user is an admin for a template, but a "user" deployment-wide. I confirmed Jane can edit settings and delete the template, however, Jane cannot push to the template with coder templates push or pull with coder templates pull.

Screen Shot 2022-10-07 at 8 21 43 AM

➜  coder templates push 
> Upload "~/coder/examples/templates/docker"? (yes/no) yes
Forbidden.                                  
Run 'coder templates push --help' for usage.

This is for an enterprise feature that isn't live yet (we'll be ironing out some of the bugs before we kick off trials) #4235

@Emyrk
Copy link
Member

Emyrk commented Oct 7, 2022

If you can, there should be a log statement for the forbidden. If you could paste that here

https://github.com/coder/coder/blob/main/coderd/authorize.go#L76-L84

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.

3 participants