Debian, alpine and rpm package registry private key stored in plain text #13556

Open
opened 2025-11-02 10:45:55 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @j123b567 on GitHub (Oct 1, 2024).

Description

Private keys for debian, alpine and rpm are stored in user_setting table under debian.key.private, alpine.key.private and rpm.key.private in plain text. All other secrets in gitea are encrypted by SECRET_KEY, before storing them in database.

Gitea Version

1.22.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Running gitea myself from github release.

Database

SQLite

Originally created by @j123b567 on GitHub (Oct 1, 2024). ### Description Private keys for debian, alpine and rpm are stored in `user_setting` table under `debian.key.private`, `alpine.key.private` and `rpm.key.private` in plain text. All other secrets in gitea are encrypted by `SECRET_KEY`, before storing them in database. ### Gitea Version 1.22.2 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Running gitea myself from github release. ### Database SQLite
GiteaMirror added the topic/packagestype/bug labels 2025-11-02 10:45:55 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13556