Can not create secret
Opened this issue · 3 comments
Component
web-ui
Describe the bug
Creating a new secret using the web-ui results in the following error: : user not authorized
Can anyone confirm this?
Steps to reproduce
- Log in the web-ui
- Go to
settings
->secrets
->add secret
- add a secret, e.g. name
mail
and some random value likeabc
- click
add secret
- see error message
: user not authorized
. Also, the secret is not added.
Expected behavior
no error message, adding a secret works
System Info
`{"source":"https://github.com/woodpecker-ci/woodpecker","version":"2.8.0"}`
Additional context
No response
Validations
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Checked that the bug isn't fixed in the
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
Can you check your logs? Both server-side and browser console
I can't
However, I am hit by this error from time to time. In my case it is more general error, not specifically related to the secrets.
I open a tab with Woodpecker, do some work. After a couple of time (next day?) I come back to this tab and try to do something. I get exactly the same error. In the upper right corner I see my avatar (logged in like), but nothing is working.
Then I hit F5, see Login
button in the upper right corner, do log in and all works just fine.
The issue (#4545) might be the same as I described.