-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
User secret not found when triggering deployment #3267
Comments
Interesting. We currently have a similar issue where our org secret is not recognized in tag events. Will investigate into the issue. |
#3271 might help with identifying the issue. |
@philipkozeny Can you check this again after #3271 has been merged? |
@qwerty287 running 2.3.0 there is no change, for user secrets I still get |
Can you check the column |
here is a secret for my user
|
Wait, your repo is owned by an organization?
This is the idea behind user secrets, they only work for repos owned by your user. |
Oh ... yes it is. Sorry, since I did not find anything in the docs my understanding was that the user secrets are available to the pipeline if the users triggers that a run (e.g. for deployment). My fault! |
Component
server, agent
Describe the bug
I am working on a pipeline configuration to enable each user to deploy to a server using their own private SSH key. These keys are intended to be stored as user secrets.
The users set up a user secret in their profile, named
ssh_deploy_prod_key
, containing their private SSH key.The deployment is triggered through the web interface.
Problem: Despite this setup, the deployment fails because the pipeline does not seem to recognize or access the user secrets as intended. Every time a deployment is triggered, I encounter the error:
Secret "ssh_deploy_prod_key" not found or not allowed to be used.
System Info
Additional context
Here's part of the pipeline:
here's the error message:
[generic] secret "ssh_deploy_prod_key" not found or not allowed to be used
here's the sqlite entry of the secret:
The reference org is
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: