Which Gitea functions depend on public-key cryptography today
As of 2026-12-04, the latest stable Gitea release marked Latest on GitHub is v28.4.0, published 2026-11-15. Its public-key dependencies are the built-in SSH server (host keys and user key authentication), HTTPS when PROTOCOL is set to https (the TLS certificate and private key), JWT signing under [oauth2] with JWT_SIGNING_ALGORITHM (default RS256), commit and tag signing under [repository.signing] (OpenPGP by default, SSH optionally), and webhook and mailer TLS verification. Gitea's dependencies also include the Go crypto libraries that implement these flows, including golang.org/x/crypto v0.58.0 at that tag. The sources listed on this page do not say whether v28.4.0 uses ML-KEM for any of these functions, so confirm that before drawing a conclusion.
Security leads assessing exposure should read this page together with the inventory and upgrade pages. Platform engineers who run Gitea should check which functions are enabled in their own app.ini, because the dependency list changes with the features switched on. Two entries need particular attention. The built-in SSH server generates RSA, ECDSA and ED25519 host keys when none exist, and its default minimum user key size for RSA is 3071 bits. The OpenPGP library used for commit signing, ProtonMail/go-crypto v1.5.2, does not support post-quantum algorithms, and the open feature request in issue #35502 says so directly. Confirm which signing format each repository uses before assuming any signature type.
This page covers dependencies only: which functions rely on RSA, ECDSA or Ed25519 keys and what those keys are used for. It does not cover upgrade steps, configuration for post-quantum key exchange, or the vendor's plans, which the sibling pages on Gitea's cryptography inventory, upgrade requirements, support status and roadmap cover. Where this page says a setting has no mlkem entry or a default is unchanged, that is a statement about the documentation as checked on 2026-12-04, not a statement about the vendor's intent.
Gitea public-key dependencies by function, version and source
This table lists each Gitea function that relies on RSA, ECDSA or ED25519 keys, with its default, the setting that changes it, the version it applies to, and the source and date of each fact. Use it to decide which settings to review first. Defaults can differ between the rootful and rootless images, so confirm the image you run.
| Function | Default and governing setting | Version and scope | Source and date |
|---|---|---|---|
| Built-in SSH host keys | If no host key files exist, RSA (4096-bit), ECDSA (256-bit) and ED25519 keys named gitea.rsa, gitea.ecdsa and gitea.ed25519 are generated. Key files are set under SSH_SERVER_HOST_KEYS. | Applies to the built-in Go SSH server only. The settings have no effect when the system OpenSSH server is used. | Gitea SSH source and Gitea config cheat sheet, checked 2026-12-04 |
| SSH key exchange (built-in server) | The cheat sheet lists curve25519-sha256, ECDH and DH group14 defaults with no mlkem entry. The Gitea code leaves SSH_SERVER_KEY_EXCHANGES unset, so the x/crypto default list applies, which starts with mlkem768x25519-sha256. | Gitea 1.25 and later. The documentation and the code disagree, so confirm the effective list on your own instance. | Gitea PR 34667 (merged 2025-06-09), x/crypto ssh common.go, Gitea config cheat sheet, checked 2026-12-04 |
| SSH user key minimums | ED25519 256, ECDSA 256 and RSA 3071 bits. DSA is disabled (-1). Set under [ssh.minimum_key_sizes]. | Enforced by the built-in server settings. Confirm the values in your release. | Gitea config cheat sheet, checked 2026-12-04 |
| JWT signing (OAuth2) | JWT_SIGNING_ALGORITHM defaults to RS256 with a 4096-bit RSA key in jwt/private.pem. ES256, ES384 and ES512 are accepted, as are HMAC options. | Set under [oauth2]. The private key must be PKCS8 RSA or ECDSA. | Gitea config cheat sheet, checked 2026-12-04 |
| Commit signing | SIGNING_FORMAT defaults to openpgp. SSH signing is available with ed25519 as the only SSH algorithm the page names. Verification does not check expiry, revocation or keyservers. | Set under [repository.signing]. Confirm which algorithms your release accepts. | Gitea signing documentation, checked 2026-12-04 |
| HTTPS certificates | PROTOCOL defaults to http. With https, the certificate and key come from CERT_FILE and KEY_FILE. Go's TLS default applies when SSL_MIN_VERSION, SSL_CURVE_PREFERENCES and related settings are unset. | Go 1.24 enables X25519MLKEM768 by default when curve preferences are nil. The GODEBUG setting tlsmlkem=0 reverts this. | Gitea config cheat sheet; Gitea v28.0.0 release notes; Go 1.24 release notes |
| ACME certificate issuance | ENABLE_ACME defaults to false. When enabled, ACME_URL left empty means the Let's Encrypt production CA, and CERT_FILE and KEY_FILE are ignored. | Set under [server]. Certificates come from the CA, so key types depend on that CA. | Gitea config cheat sheet, checked 2026-12-04 |
| Webhooks and mailer trust | Webhook SKIP_TLS_VERIFY defaults to false. Mailer FORCE_TRUST_SERVER_CERT defaults to false and the documentation calls it unsafe. | Both are per-feature settings. Verify the values in your configuration file. | Gitea config cheat sheet, checked 2026-12-04 |
Which Gitea components use RSA, ECDSA or Ed25519 keys
Gitea uses public-key cryptography in several separate places: the built-in SSH server, user SSH keys, OAuth2 token signing, commit signing, HTTPS serving and outbound TLS checks. Each has its own key types and its own defaults, so exposure has to be assessed one component at a time.
Built-in SSH server host keys
When no host key files exist, the built-in SSH server generates RSA, ECDSA and ED25519 host keys named gitea.rsa, gitea.ecdsa and gitea.ed25519. The documented defaults are a 4096-bit RSA key, a 256-bit ECDSA key and an ED25519 key. Host keys authenticate the server to clients, so a team should record which of these keys each deployment uses and confirm whether the signature algorithm is the same in every version it runs. Check the host key files on each instance.
Gitea config cheat sheetSSH user key minimums
Gitea's default minimum accepted sizes for user SSH keys are 256 bits for ED25519, 256 bits for ECDSA and 3071 bits for RSA, and DSA is disabled. These values set which client keys the server accepts, not which algorithms the connection uses. Raising the RSA minimum or disabling weaker types changes which user keys can log in, so it should be tested against real client populations before a change. Review the minimums under the ssh.minimum_key_sizes setting.
Gitea config cheat sheetOAuth2 JWT signing
Gitea signs OAuth2 access tokens with the algorithm set by JWT_SIGNING_ALGORITHM, which defaults to RS256 and also accepts HS256 through HS512, RS384, RS512, ES256, ES384 and ES512. The default private key file, jwt/private.pem, must be a PKCS8 RSA or ECDSA key, and a 4096-bit RSA key is created if none exists. Anything that verifies these tokens depends on the public key or shared secret, so changing the algorithm affects every relying party. Confirm the algorithm and key file before changing either.
Gitea config cheat sheetRepository commit signing
Commit signing is configured under the repository signing section. The format defaults to OpenPGP and can be set to SSH, and the only SSH signing algorithm the documentation names is ED25519. Gitea checks signatures against keys in its database or the TRUSTED_SSH_KEYS list, but it does not check key expiry, revocation or keyservers. Verify which signing format each repository and each trusted key uses.
Gitea signing documentationHTTPS certificates and ACME
With PROTOCOL set to https, Gitea serves TLS using the certificate and key at CERT_FILE and KEY_FILE, which default to https/cert.pem and https/key.pem. With ENABLE_ACME set, Gitea obtains certificates automatically from an ACME CA and ignores those two files. The certificate key type and the minimum and maximum TLS versions are set separately, and the SSL curve and cipher settings default to Go's own defaults when left empty. Record the certificate key type and the TLS version range on each instance.
Gitea config cheat sheetOutbound TLS verification
Webhook deliveries check the server certificate by default, because SKIP_TLS_VERIFY defaults to false. The mailer setting FORCE_TRUST_SERVER_CERT also defaults to false, and the documentation describes it as unsafe. Turning either off lets Gitea accept any certificate on those connections, which removes server authentication for that path. Check both settings and list every webhook target that relies on verification.
Gitea config cheat sheetDoes the built-in SSH server negotiate post-quantum key exchange by default?
For the built-in Go SSH server, Gitea does not set a key exchange list of its own, so the defaults from the golang.org/x/crypto/ssh library apply. Pull request #34667, merged on 2025-06-09 into milestone 1.25.0, made the built-in SSH server use those defaults, and its author wrote that Go's x/crypto provides good defaults including a post-quantum key exchange algorithm. In x/crypto master, an unset key exchange list falls back to a default list in which mlkem768x25519-sha256 is the first entry. That algorithm requires Go 1.24 or later. Gitea's main-branch source leaves SSH_SERVER_KEY_EXCHANGES as nil when it is unset, which is consistent with this behavior.
The documentation does not match the code. The Gitea config cheat sheet, checked on 2026-12-04, still lists classical defaults for SSH_SERVER_KEY_EXCHANGES (curve25519-sha256, the ecdh-sha2 curves and two diffie-hellman-group14 methods) and has no mlkem entry. Confirm the negotiated algorithm in your own environment rather than relying on the cheat sheet. Setting SSH_SERVER_KEY_EXCHANGES manually overrides the x/crypto default, so an administrator who copied the cheat sheet list into an older config may be excluding the post-quantum option without knowing it. Issue #35653 includes a contributor's 2025-10-15 statement that any manually set SSH_SERVER_KEY_EXCHANGES must be removed to get all recommended algorithms.
These settings apply only to the built-in SSH server. The cheat sheet states that SSH_SERVER_CIPHERS, SSH_SERVER_KEY_EXCHANGES, SSH_SERVER_MACS and SSH_SERVER_HOST_KEYS have no effect when the system OpenSSH server is used. The rootful Docker image uses OpenSSH, so its key exchange is governed by the OpenSSH build in the image. Issue #35653 was closed on 2026-08-03 because that image is based on an Alpine release shipping OpenSSH 10.3. Check which SSH server your deployment runs, then confirm the negotiated key exchange with a client that reports it, such as ssh -vv against the Gitea SSH port.
How the dependency differs by deployment path
When Gitea runs its own built-in SSH server and no key exchange list is set, the server uses the defaults in the x/crypto library that Gitea builds against. Gitea's code leaves SSH_SERVER_KEY_EXCHANGES, SSH_SERVER_CIPHERS and SSH_SERVER_MACS as nil when unset, so the values in the configuration cheat sheet are not written by the code. Pull request #34667, merged 2025-06-09 into milestone 1.25.0, states that x/crypto provides defaults including a post-quantum key exchange. In x/crypto master, an unset list falls back to a default list whose first entry is mlkem768x25519-sha256, which requires Go 1.24 or later. On the rootless image, a contributor stated in issue #35653 on 2025-10-15 that leaving the option empty on Gitea 1.25 enables all recommended algorithms.
- Host keys: If no host key files exist, Gitea generates
gitea.rsa(documented as 4096-bit RSA),gitea.ecdsa(256-bit) andgitea.ed25519. - User key minimums:
[ssh.minimum_key_sizes]defaults are ED25519 256, ECDSA 256 and RSA 3071, with DSA disabled. - Documented key exchange list: The cheat sheet still lists
curve25519-sha256, the ECDH and Diffie-Hellman group entries, and nomlkementry. - Source of the default: The
mlkem768x25519-sha256behavior comes from x/crypto and Go, not from a Gitea setting.
Confirm the Gitea version, the Go toolchain of your build, and whether SSH_SERVER_KEY_EXCHANGES is set in your app.ini, because a manual list overrides this default.
If an operator sets SSH_SERVER_KEY_EXCHANGES by hand, that list replaces the x/crypto default for the built-in SSH server. The cheat sheet documents the list without any mlkem entry, so a list copied from the documentation can drop the post-quantum hybrid that the default would otherwise offer. Issue #35653 says any manually set SSH_SERVER_KEY_EXCHANGES must be removed for the default algorithms to apply on the rootless image. The SSH_SERVER_CIPHERS and SSH_SERVER_MACS settings are separate, and the documentation says all three have no effect when the system OpenSSH server is used.
- Replacement, not addition: Setting the list replaces the default, so it does not add to it.
- Documented values: The cheat sheet lists curve25519-sha256, ECDH on the NIST curves, and two Diffie-Hellman group entries.
- Host key types: Host keys are controlled by
SSH_SERVER_HOST_KEYSand are independent of the key exchange list. - System server exception: With the system OpenSSH server in use, these settings do nothing, so the key exchange comes from OpenSSH.
Check your app.ini for the SSH_SERVER_KEY_EXCHANGES line and record the exact values in use. A missing or empty line means the default applies.
The rootful Docker image runs the system OpenSSH server rather than Gitea's built-in SSH server. In that case the SSH_SERVER_* cipher, MAC and key exchange settings have no effect, and the key exchange is determined by the OpenSSH build in the image. Issue #35653 was closed as completed on 2026-08-03 because the rootful image is based on an Alpine release that ships OpenSSH 10.3. The issue does not state which post-quantum key exchange OpenSSH 10.3 negotiates by default, so confirm that with the OpenSSH release notes and by testing your image.
- Image base: The rootful image is based on an Alpine release shipping OpenSSH 10.3, per issue #35653.
- Settings with no effect: The documentation says the built-in server settings have no effect with the system server.
- Host keys: Host keys come from the OpenSSH server configuration in the image, not from Gitea's generated
gitea.rsa,gitea.ecdsaandgitea.ed25519files. - Image tag: Record the exact image tag and digest, since the Alpine and OpenSSH versions change with each image build.
Confirm the OpenSSH version and key exchange your image negotiates by connecting with a client and inspecting the handshake, and check the Gitea release that produced your image.
Gitea's HTTPS path depends on whether it terminates TLS itself. With PROTOCOL=https, Gitea serves TLS from CERT_FILE (default https/cert.pem) and KEY_FILE (default https/key.pem). Setting ENABLE_ACME to true makes Gitea obtain certificates from an ACME CA, with an empty ACME_URL pointing to the Let's Encrypt production CA, and in that case CERT_FILE and KEY_FILE are ignored. The SSL_MIN_VERSION, SSL_MAX_VERSION, SSL_CURVE_PREFERENCES and SSL_CIPHER_SUITES settings default to empty, which the documentation says uses Go's defaults. Release v28.0.0 includes the entry "Enhance(tls): use go's tls defaults". Go 1.24 added X25519MLKEM768 to crypto/tls and enables it by default when Config.CurvePreferences is nil, which can be reverted with GODEBUG=tlsmlkem=0.
- Gitea-terminated TLS: Gitea uses its certificate files and the Go TLS defaults when the SSL settings are empty.
- ACME path: Certificates are issued and renewed by Gitea itself, and the certificate and key files are not read.
- Reverse proxy path: When a proxy terminates TLS, the proxy's TLS library and configuration decide the key exchange and certificate keys, and Gitea's SSL settings do not apply to clients.
- Certificate keys: The sources listed here do not state which key type ACME issues by default, so confirm the certificate key type with the CA.
Confirm which component terminates TLS for your users, and record the Go version used to build Gitea if Gitea is the terminating endpoint.
Where public-key operations sit in a Gitea deployment
The diagram starts at a client that connects to Gitea over SSH or HTTPS. Gitea's built-in SSH server presents host keys, which the source generates as RSA, ECDSA and ED25519 when none exist, and HTTPS uses the certificate from CERT_FILE or from ACME when ENABLE_ACME is on. From Gitea, outbound edges go to webhook targets over TLS and to mail servers, and an internal node signs JWTs with the key in jwt/private.pem, using RS256 by default. Check which algorithm each edge negotiates in your own deployment, because the sources do not confirm post-quantum key exchange for every path.
Public-key touchpoints in a Gitea deployment, from client connections to internal signing.
What to check in your Gitea deployment next
Work through these checks in order to establish which Gitea version and SSH configuration you run, which host and signing keys exist, and how JWT, webhook and mailer certificate settings are set. The sequence produces a written record of each setting and its value, which you can use to decide where public-key dependencies sit and what needs review before any upgrade planning.
Confirm the installed version and Go toolchain
The Gitea administrator on the host runs the Gitea binary with the version flag, then records the release number. Compare it with the current stable release, v28.4.0, published 2026-11-15, and note whether your install is older. For a source build, check the go.mod file at your tag, which declares the Go toolchain used to build it (v28.4.0 declares go1.27.4). Record both values. The step is closed when you have a written version number and, for source builds, the Go toolchain line that matches it.
Check whether SSH key exchange is set manually
Open the app.ini file and search for SSH_SERVER_KEY_EXCHANGES under the [server] section. If the key is absent or empty, Gitea does not set the list in its own code, so the library default applies. If the key is present, record the exact value. The Gitea documentation still lists default values without an ML-KEM entry, but the main-branch source leaves the setting nil when unset, and pull request 34667 relies on x/crypto defaults that put mlkem768x25519-sha256 first. Remove any manual value if you want those defaults, as a contributor advised for the built-in server on Gitea 1.25. The step is closed when you have recorded either the absent state or the exact manual list.
Identify whether the built-in or OpenSSH server handles SSH
Determine which SSH server answers on port 22 or your configured SSH port, and which image or package you deployed. The built-in Go server reads the SSH_SERVER settings described above, while the system OpenSSH server ignores them, according to the configuration documentation. Check your deployment method: the rootless image uses the built-in server, and the rootful Docker image uses OpenSSH, which in the Alpine base shipped with OpenSSH 10.3 per issue 35653. Confirm on the running host with a connection banner or process listing. The step is closed when you can name the active SSH server and its version.
List host key files and their types
Inspect the directory that holds SSH host keys, which the app.ini SSH_SERVER_HOST_KEYS setting points to. Look for gitea.rsa, gitea.ecdsa and gitea.ed25519, and note any other key files. If no host key files exist, the built-in server generates RSA, ECDSA and ED25519 keys at startup, with RSA at 4096 bits by default. Record each filename, its key type and, where your tooling reports it, its size. Run the key type command on each file to confirm what it contains. The step is closed when you have a list of host key files with their algorithms and sizes.
Review the JWT signing algorithm and key file
Open the [oauth2] section of app.ini and read JWT_SIGNING_ALGORITHM. The default is RS256, and the accepted values include HS256, RS384, ES256 and ES384 among others. Then check the key file at the path Gitea uses for JWT signing, which the documentation names as jwt/private.pem. The file must be a PKCS8 RSA or ECDSA key, and Gitea creates a 4096-bit RSA key if none exists. Confirm the file format with your key inspection tools and note whether the algorithm matches the key type. The step is closed when you have recorded the algorithm and confirmed the key file matches it.
Review commit signing format and trusted keys
Open the [repository.signing] section and read SIGNING_FORMAT, which defaults to openpgp and can be set to ssh. Read SIGNING_KEY, which accepts none, default, a GPG key ID or an SSH public key path. If you trust SSH keys for commit verification, check the TRUSTED_SSH_KEYS entry and list the keys it names. Gitea verifies signatures against keys stored in its database or in TRUSTED_SSH_KEYS, and it does not check expiry, revocation or keyservers, so record that limitation. The step is closed when you have the signing format, the signing key setting and the list of trusted keys.
Record webhook and mailer TLS verification settings
In app.ini, find the webhook section and check whether SKIP_TLS_VERIFY is set. Its default is false, meaning certificates are verified. Then check the mailer section for FORCE_TRUST_SERVER_CERT, which defaults to false and is described as unsafe. Record the value of each setting, and where either is set to true, record which endpoints or mail servers it affects. Confirm the values by reviewing the file on the host, not from memory. The step is closed when you have written down both settings and any non-default values with their scope.
What the Gitea sources do not say about post-quantum support
Does the Gitea configuration cheat sheet mention post-quantum algorithms?
No. The Gitea configuration cheat sheet, checked on 2026-12-04, contains no mention of post-quantum algorithms, ML-KEM, ML-DSA or SLH-DSA. The SSH key exchange defaults it lists are curve25519-sha256, the ECDH curves and two Diffie-Hellman group options, with no mlkem entry. That silence does not prove the server never negotiates a hybrid key exchange, because Gitea's code leaves the SSH key exchange lists unset and defers to the x/crypto defaults. Confirm the actual negotiated algorithm in your own environment, for example with an SSH client's verbose output, rather than reading the cheat sheet as a complete list.
Does the Gitea signing documentation cover post-quantum signature schemes?
No. The signing documentation, checked on 2026-12-04, does not mention ML-DSA, SLH-DSA or any post-quantum signature scheme. It describes OpenPGP as the default signing format, with SSH as an alternative, and the only SSH signing algorithm it names is ed25519. It also states that commit signatures are verified against keys in the Gitea database or TRUSTED_SSH_KEYS, without checking expiry, revocation or keyservers. Treat signing support as unconfirmed until the Gitea project states otherwise, and ask it directly which signature algorithms the signing path accepts.
Is there a feature request for post-quantum GPG signing in Gitea?
Yes. Issue #35502, opened on 2025-09-16 and labeled type/proposal, asks for an option to use the system GPG binary. The reason given is that Gitea's OpenPGP library, ProtonMail/go-crypto, does not support post-quantum algorithms such as Kyber/ML-KEM. When checked on 2026-12-04 the issue was still open and had no maintainer reply. An open proposal is not a roadmap commitment, so it should not be read as a planned delivery. Record the issue number and its status in your inventory, and check it again before any planning decision.
Does Gitea have a post-quantum setting for JWT signing?
The sources do not list one. The [oauth2] JWT_SIGNING_ALGORITHM setting defaults to RS256 and accepts HS256 through HS512, RS256 through RS512 and ES256 through ES512. None of these options is a post-quantum algorithm, and the documentation names no post-quantum option for JWT signing. Note that the private key file must be a PKCS8 RSA or ECDSA key. Confirm with the Gitea project whether any post-quantum JWT algorithm is planned before you assume one exists, and keep the current RS256 default in your inventory as the documented baseline.
Can Gitea HTTPS be set to a post-quantum key exchange?
The sources do not name a post-quantum TLS setting for Gitea's own HTTPS. Setting PROTOCOL to https makes Gitea serve TLS using CERT_FILE and KEY_FILE. The SSL_CURVE_PREFERENCES and SSL_CIPHER_SUITES settings default to empty, and the documentation says an unset value uses Go's default. Gitea's release notes record a switch to Go's TLS defaults, and Go 1.24 added X25519MLKEM768 to crypto/tls by default. Whether a given Gitea build negotiates that hybrid exchange depends on the Go toolchain it was compiled with. Confirm the negotiated group from a client against your running instance.
Do the Gitea sources confirm post-quantum SSH key exchange?
Only partly, and the sources do not settle it. A 2025 pull request notes that Go's x/crypto provides a post-quantum key exchange by default, and x/crypto lists mlkem768x25519-sha256 first in its default list. A contributor also said on 2025-10-15 that leaving SSH_SERVER_KEY_EXCHANGES empty enables all recommended algorithms on the built-in server. However, the cheat sheet still omits any mlkem entry, and issue #35653 was closed as completed on 2026-08-03 for the rootful image, which uses OpenSSH 10.3. Confirm the negotiated key exchange on the exact image and server you run.
What should I confirm with the Gitea project before relying on any of this?
Ask the project to confirm, in writing and against a named release, the following points:
- Whether any post-quantum algorithm is available for JWT signing, commit signing or the SSH host and user keys.
- Whether the built-in SSH server negotiates a hybrid post-quantum key exchange by default on the image you deploy, and which Go version it is built with.
- The status and planned milestone of issue #35502, and whether the project will accept a system GPG option.
- Whether the configuration cheat sheet will be updated to list the actual defaults, including any mlkem entry.
Record each answer with its date, release and issue reference. Until the project confirms them, treat the points above as unverified.
What can go wrong when reading these dependencies
Reading Gitea's configuration to find public-key dependencies can produce a wrong picture in several ways. The most direct risk is that a setting which looks like it controls the key exchange does not do so. The Gitea config cheat sheet, checked on 2026-12-04, lists SSH_SERVER_KEY_EXCHANGES defaults of curve25519-sha256, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group14-sha256 and diffie-hellman-group14-sha1, with no mlkem entry. The Gitea main-branch source leaves SSH_SERVER_KEY_EXCHANGES nil when unset, so those documented values are not what Gitea sets in code. Before recording an answer, check the running instance's effective settings and the x/crypto defaults it actually uses.
Two further sources of error affect the same reading. The documentation says SSH_SERVER_CIPHERS, SSH_SERVER_KEY_EXCHANGES, SSH_SERVER_MACS and SSH_SERVER_HOST_KEYS have no effect when the system OpenSSH server is used, so an administrator who reads these keys in the cheat sheet and assumes they govern SSH access may be looking at settings that are not in force. A setting that the team has set manually can also override the default. Issue #35653 records a contributor stating that a manually set SSH_SERVER_KEY_EXCHANGES must be removed on Gitea 1.25 for the rootless image with the built-in server to enable all recommended algorithms. Confirm which SSH server a deployment runs, and whether any key exchange list has been set in app.ini, before treating the defaults as the answer.
Toolchain age matters too. The Go 1.24 release notes say crypto/tls enables X25519MLKEM768 by default when Config.CurvePreferences is nil, and that GODEBUG=tlsmlkem=0 reverts this. The x/crypto ssh default list places mlkem768x25519-sha256 first and requires Go 1.24 or later. A build made with an older Go toolchain, or a deployment that sets GODEBUG to disable the default, will not offer the hybrid key exchange even when the Gitea version is current. Check the toolchain in the release build (Gitea v28.4.0 declares go 1.27 and toolchain go1.27.4) and the GODEBUG environment of the running process, and record each as a separate fact.
Questions security leads ask about Gitea's public-key dependencies
Is Gitea quantum safe?
The sources do not support calling Gitea quantum safe, and nothing on this page should be read as a compliance or safety claim. As of 2026-12-04, the Gitea config cheat sheet and signing documentation contain no mention of post-quantum, ML-KEM, ML-DSA or SLH-DSA. Gitea's built-in SSH key exchange can use mlkem768x25519-sha256 through the x/crypto defaults when the setting is left empty, which is a post-quantum key exchange, but that covers only one protocol path. HTTPS depends on Go's TLS defaults and the certificates you supply, and JWT signing and commit signing still rely on RSA, ECDSA, ED25519 or OpenPGP keys. Ask the vendor for a written statement covering each of these paths before you record an answer.
Which Gitea version carries the ML-KEM SSH default?
The sources do not name a Gitea release that sets an ML-KEM default for SSH. Pull request #34667, merged 2025-06-09 into milestone 1.25.0, changed the built-in SSH server to use x/crypto defaults, and the author noted that these include a post-quantum key exchange. Issue #35653 states that on Gitea 1.25 with the rootless image, an empty key exchange option enables all recommended algorithms. The Gitea config cheat sheet, checked 2026-12-04, still lists the older default key exchange list without any mlkem entry, so the documentation and the code disagree. The rootful Docker image uses the system OpenSSH server, which is set separately. Check the sshd version and key exchange list on your own image, since the sources do not settle which release makes it the default.
Does enabling post-quantum SSH key exchange cost extra?
The sources do not state a licence or subscription fee for this setting. Gitea is MIT-licensed open-source software, so enabling an algorithm that the Go and x/crypto libraries already provide does not add a licence cost. The cost comes from the work: confirming the running version, checking whether your image uses the built-in Go SSH server or system OpenSSH, removing any manually set SSH_SERVER_KEY_EXCHANGES value that overrides the default, testing SSH clients that must negotiate the new algorithm, and retesting after upgrades. Those tasks recur whenever you upgrade. If you pay a partner for this work, ask for a fixed-scope quote that lists each of these items separately, and ask who maintains the configuration after handover.
Do Gitea's HTTPS and JWT use post-quantum algorithms?
The sources do not show that either path uses post-quantum algorithms. For HTTPS, setting PROTOCOL to https makes Gitea serve TLS with the certificate and key you provide, or with certificates from an ACME certificate authority when ENABLE_ACME is set. The TLS version and curve settings default to empty, so Go's defaults apply, and Go 1.24 added X25519MLKEM768 as a default key exchange in crypto/tls when no curve preferences are set. That covers the key exchange only. Your certificate signatures remain whatever your CA issues. For JWT, JWT_SIGNING_ALGORITHM defaults to RS256 and accepts only RSA and ECDSA signing algorithms, and the sources list no post-quantum option. Confirm the TLS key exchange your deployed Go version negotiates and record the JWT algorithm as classical.
What should we ask Gitea's vendor about post-quantum support?
Ask for written answers to specific questions, not a general statement. Ask which Gitea release first enabled a post-quantum key exchange by default for the built-in SSH server, and whether the official rootful and rootless images behave the same. Ask whether a post-quantum signing algorithm for commits is planned, since the OpenPGP library used for signing has an open request for post-quantum support (issue #35502, still open with no maintainer reply as checked). Ask whether JWT signing will gain a post-quantum option, and whether the project publishes a timeline for any of these. Request a copy of any published roadmap or notice, and record the date of each answer. Where the sources have no answer, record that the vendor has not published one.
Can our team check Gitea's public-key settings ourselves?
Yes. Your team can check most of this without outside help. Confirm the running version with the release page, and check the [server] and [ssh] settings in your app.ini for any manually set SSH_SERVER_KEY_EXCHANGES, SSH_SERVER_CIPHERS or SSH_SERVER_MACS values, since a manual list can override the defaults. Run ssh -Q kex against the server or check the key exchange negotiated by a client to see the algorithm in use. Check PROTOCOL, SSL_MIN_VERSION, CERT_FILE and ENABLE_ACME for HTTPS, and JWT_SIGNING_ALGORITHM for tokens. Outside help makes sense when you need an independent test report, when the image or build differs from the official one, or when the changes must be done inside a regulated change process. Record what you tested, which version you tested, and the date.
How DeployOpen works on this
DeployOpen works on Gitea public-key dependencies as a fixed-scope engagement inside your own infrastructure. We map which SSH, HTTPS, webhook, signing and token flows use RSA or elliptic-curve keys, then document what each configuration setting actually controls in your version of Gitea.
How we scope
- Agree in writing which Gitea version, SSH mode (built-in or system OpenSSH) and deployment type are in scope.
- Confirm which public-key flows your instance uses: SSH access, HTTPS, webhooks, commit signing and OAuth2 JWT signing.
- Define which settings and host keys are reviewed, and what evidence the written scope will deliver.
How we build
- Inspect your deployed configuration against the Gitea config cheat sheet, noting which defaults you have overridden.
- Check which key exchange, cipher and host key types are actually negotiated by your running SSH server.
- Test signing, webhook and OAuth2 behaviour in a staging copy so findings reflect your real setup.
How we hand over
- Deliver a dependency inventory listing each public-key flow, its setting, its current value and its source.
- Document which items the vendor has not yet addressed, such as commit signing algorithms and post-quantum support in OpenPGP.
- Provide a list of questions to confirm with the Gitea project or your distribution before any change is made.
How we support
- Offer retesting after your Gitea upgrades, since key exchange defaults have changed between releases.
- Keep the inventory current through an ongoing retainer, which is available alongside the fixed-scope engagement.
- Repeat the configuration review when you change SSH mode, TLS settings or the signing format.

