-
-
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
An unknown error occurred on repository setting page (access to global secrets) #3013
Comments
Is this from a user without admin permissions on the WP instance? |
Yes, just general user. |
Corrections:
|
Ahh, the issue is we query instance secrets to show if the user overrides them, but unfortunately we don't allow normal users to access that endpoint. Not sure why the org endpoint is failing your case. 🤔 Are you not an admin of your org? |
It was OK 200, I think. I just didn't look carefully inside, my bad. ^ there are
Don't know, if I wasn't, but now I am :)
Yeah. Seems, that's the cause. |
I am currently checking how to fix this one. We can either skip the api request in case the user is not an admin or we allow every user to get (read-only) the global secrets as they don't include the actual value and will be available in the pipeline anyway. |
I'd go with this way. |
Component
server, web-ui
Describe the bug
There are two requests to the
secrets?page=1
: one with HTTP 200, another HTTP 403.If there is at least one secret, then there is no error and only one request to the
secrets?page=1
with HTTP 200.System Info
Additional context
No response
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: