Closed AlexEndris closed 4 months ago
I have no idea... Could be an issue with the right of the user you are making the API call with. In most of there cases I suggest you try to verify the GitLab API and the used credentials by constructing a cURL call to do what you want/expect.
If that works and it doesn't work with this package then please post the info/output of your test so I can have a look.
First, I realised I'm in the wrong place... For what ever reason I thought I was in the github repository of External Secrets.
So, even though I did what you said (verify it with the same token through curl), I'm not sure it's go-gitlab that's the issue here or it's actual usage... I'll close this issue and re-open it where it properly belongs. Sorry for the inconvenience!
I'm facing the issue that ExternalSecrets doesn't seem to correctly filter the variables using Gitlab Variables. The SecretStore is capable of retrieving a secret of environment "b" even though it's being restricted to "a". Let's say I have the secrets "TEST_SECRET_A" (environment "a") and "TEST_SECRET_B" (environment "b"), neither secret exists in any other environment.
Using this secretstore:
Adding an ExternalSecret resource like this, actually retrieves the secret:
Trying the same using the gitlab API with the filter for the environment_scope of "a" correctly returns "404 Variable Not Found".
Am I doing something wrong or is this indeed a bug?