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

Maintainers should be allowed to add environment variables at a project level #3015

Closed
seanhamlin opened this issue Feb 3, 2022 · 1 comment · Fixed by #3075
Closed

Maintainers should be allowed to add environment variables at a project level #3015

seanhamlin opened this issue Feb 3, 2022 · 1 comment · Fixed by #3075
Labels
1-api-auth API & Authentication subsystem priority-high

Comments

@seanhamlin
Copy link
Contributor

Describe the bug

From https://docs.lagoon.sh/administering-lagoon/rbac/#maintainer

Maintainer
The maintainer role can do everything within a group and its associated projects except deleting the project itself or the production environment.

Yet when a maintainer attempts to update the environment variable at a project level, they can delete it, just not add it.

To Reproduce

Steps to reproduce the behavior:

% lagoon add variable -p example --name REDIS_HOST --scope runtime --value 'banana.0001.apse2.cache.amazonaws.com'
Error: graphql: Unauthorized: You don't have permission to "project:add" on "env_var".

% lagoon delete variable -p example --name REDIS_HOST                                                               1 ↵
✔ Yes
Result: success

% lagoon add variable -p example --name REDIS_HOST --scope runtime --value 'banana.0001.apse2.cache.amazonaws.com'
Error: graphql: Unauthorized: You don't have permission to "project:add" on "env_var".

Expected behavior

Maintainers can add environment variables at the project level

@seanhamlin seanhamlin added the 1-api-auth API & Authentication subsystem label Feb 3, 2022
@grahamethompson
Copy link

This would be very helpful.

@seanhamlin seanhamlin changed the title Maintainers should be allowed to add environments at a project level Maintainers should be allowed to add environment variables at a project level Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-api-auth API & Authentication subsystem priority-high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants