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

unable to add or delete environment variables to project or environment #1244

Closed
twardnw opened this issue Sep 11, 2019 · 1 comment · Fixed by #1259 or #1335
Closed

unable to add or delete environment variables to project or environment #1244

twardnw opened this issue Sep 11, 2019 · 1 comment · Fixed by #1259 or #1335
Assignees
Labels

Comments

@twardnw
Copy link
Contributor

twardnw commented Sep 11, 2019

Describe the bug
Post RBAC integration, a user is unable to add any environment variables to a project or environment, the operation performs as expected for a user with an existing admin token.

To Reproduce
Steps to reproduce the behavior:

  1. As a user who is of OWNER|MAINTAINER|DEVELOPER attempt to add an environment variable to a project or environment
mutation mutation1 {
  addEnvVariable(input:{
    type:PROJECT
    typeId:11
    scope:GLOBAL
    name:"TESTING"
    value:"CHECK"
  }) {
    id
  }
}

For all cases, attempting to add a PROJECT environment variable results in

Unauthorized: You don't have permission to \"project:add\" on \"env_var\".

Attempting to add an ENVIRONMENT environment variable results in

Unauthorized: You don't have permission to \"environment:add:undefined\" on \"env_var\".

For the deleteEnvVariable mutation the results are similar.

Expected behavior
Environment variable should be saved\deleted to\from the API

@twardnw twardnw added the bug label Sep 11, 2019
@twardnw twardnw changed the title unable to add environment variables to project or environment unable to add or delete environment variables to project or environment Sep 11, 2019
@twardnw
Copy link
Contributor Author

twardnw commented Oct 7, 2019

Appears that the issue is still there for OWNER adding a project level env var

"message": "Unauthorized: You don't have permission to \"project:add\" on \"env_var\".",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants