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

Secrets for workers vs web container - not working #341

Open
luis-n4489 opened this issue Aug 22, 2023 · 0 comments
Open

Secrets for workers vs web container - not working #341

luis-n4489 opened this issue Aug 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@luis-n4489
Copy link

luis-n4489 commented Aug 22, 2023

Describe the bug

After installing the helm chart - and everything was working great... secrets from workers are pulling in just fine from secrets in k8's. but then i noticed when I was using webhooks on ex: github resource - i started to see errors in the logs with for ex:
pipeline_name.secret_name .. the secrets are in the correct namespace and etc, but still a webhook being triggered wont work and its giving me that error in the logs.

So i decided to add the same secret but named it with the name of the pipeline.name_of_secret and it worked! why would i need to add the secret 2 times?

Reproduction steps

Install chart, add a secret , call it from a task. works fine and you can see it for ex: environment variable
add the same secret to webhook_token in git resource and trigger the webhook via curl command and you will get a 401 error. look at the kubectl logs and find pipeline_name.secret_name not found. create secret just like the one being asked and hit the webhook 1 more time. errors goes away and 200 success code.

Expected behavior

using the same secret a worker grabs from secrets in k8's vs. creating duplicates

Additional context

Sorry, i am the worst when it comes to writing these reports out :|

@luis-n4489 luis-n4489 added the bug Something isn't working label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant