-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
After upgrading Gitea to the latest version, the actions secrets are lost #33535
Comments
Please check whether you changed the security key in the app.ini. |
But I noticed that the value of security.SECRET_KEY seems to be empty. How should I fix this? There are hundreds of repositories! 😂
|
If it's empty, a default value will be given and the code hasn't been changed in two years. |
Which version did you upgrade from? |
There was no problem in version 1.22. This issue did not exist before the upgrade, and this Gitea service has been running for quite a while. The recent upgrade path is as follows: You look at the database records. The owner of version 1.22 is 11, which is the organization ID. After upgrading to version 1.23, the value here is changed to 0. |
|
As a workaround, maybe update all owner_id = 0 if repo_id > 0 manually. Please backup this table before you do any operations. |
@wolfogre Is there any time you can take a look at this issue? |
Yes, it is caused by #31724, but it's not a bug; it's by design. ![]() Due to the special nature of secrets, I would rather choose to let Gitea forget some secrets as dirty data (which may bring some inconsistencies, sorry about that) than to let the secrets leak. @ysicing So please update the database table manually, or recreate those secrets. @lunny Maybe we can have a doctor tool to fix those dirty data, |
Description
After upgrading Gitea to the latest version, the pipeline keys are lost, but the database records are still present.
Gitea Version
1.23.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
The screenshots show my YAML configuration and the historical execution records, which were working fine before the upgrade. After the upgrade, I found that the environment variables are missing, so I manually added one. Finally, there is a screenshot of the database.
Git Version
No response
Operating System
docker
How are you running Gitea?
docker compose
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: