Skip to content

ATLANTIS_GITLAB_GROUP_ALLOWLIST with does not have permissions to execute #5314

Open
@dshershov

Description

@dshershov

Hi, team!
Thanks for your product!
I have some troubles with gitlab_group_allowlist
Maybe I'm not passing the group correctly?

Overview of the Issue

I try to use ATLANTIS_GITLAB_GROUP_ALLOWLIST parameter from here https://www.runatlantis.io/docs/server-configuration#gitlab-group-allowlist
When I check example with:
ATLANTIS_GITLAB_GROUP_ALLOWLIST="myorg/mygroup:plan, myorg/secteam:apply, myorg/devops:apply, myorg/devops:import"
I'm confusing because in gitlab doesn't have concept with ORGANISATION

Reproduction Steps

When I try to add my env var with:

ATLANTIS_GITLAB_GROUP_ALLOWLIST="DevOps:plan"

and try to use that - I get an error message
with

Error: User <SOMEUSER> does not have permissions to execute 'plan' command.

Logs

atlantis-0:/$ echo $ATLANTIS_GITLAB_GROUP_ALLOWLIST 
DevOps:plan
<!---{"level":"info","ts":"2025-02-11T13:06:36.209Z","caller":"events/events_controller.go:692","msg":"Handling 'plan' comment","json":{"repo":"devops/atlantis-test","pull":20}}
{"level":"info","ts":"2025-02-11T13:06:36.209Z","caller":"events/events_controller.go:736","msg":"Running comment command 'plan' for user 'USER'.","json":{"repo":"devops/atlantis-test","pull":20}}

Environment details

  • gitlab enterprise configuration
  • Atlantis version: 0.33.0
  • Deployment method: helm

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions