Hide Gitea's version in production #2492

Closed
opened 2025-11-02 04:38:25 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @Deuchnord on GitHub (Nov 4, 2018).

  • Gitea version (or commit ref): 1.5.3 (8733384)

Description

As an administrator of my Gitea instance, I'd like to hide its version (or the commit hash). It is a common practice to do that, for instance on Web server and language interpreters, mainly for security purpose, so it would be less easy for a potential attacker to find vulnerabilities. Is it possible?

Screenshots

Currently

Screenshot of the footer of Gitea showing "© Gitea version: 8733384"

Expected

Screenshot of the footer of Gitea showing "© Powered by Gitea."

Originally created by @Deuchnord on GitHub (Nov 4, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.5.3 (8733384) ## Description As an administrator of my Gitea instance, I'd like to hide its version (or the commit hash). It is a common practice to do that, for instance on Web server and language interpreters, mainly for security purpose, so it would be less easy for a potential attacker to find vulnerabilities. Is it possible? ## Screenshots ### Currently ![Screenshot of the footer of Gitea showing "© Gitea version: 8733384"](https://user-images.githubusercontent.com/7600265/47963018-de224600-e025-11e8-9f44-b867291ea03d.png) ### Expected ![Screenshot of the footer of Gitea showing "© Powered by Gitea."](https://user-images.githubusercontent.com/7600265/47963035-17f34c80-e026-11e8-8c5c-6093151646fb.png)
GiteaMirror added the type/question label 2025-11-02 04:38:25 -06:00
Author
Owner

@ghost commented on GitHub (Nov 4, 2018):

8733384e20/custom/conf/app.ini.sample (L616-L621)

@ghost commented on GitHub (Nov 4, 2018): https://github.com/go-gitea/gitea/blob/8733384e20b31f887cb8d8d4196cab939d49ab4b/custom/conf/app.ini.sample#L616-L621
Author
Owner

@Deuchnord commented on GitHub (Nov 4, 2018):

Worked like a charm, thank you ☺️

@Deuchnord commented on GitHub (Nov 4, 2018): Worked like a charm, thank you ☺️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2492