Does Gitea support post-quantum key exchange today?
If you are inventorying a self-hosted Gitea or answering a vendor questionnaire, split the question in two. For key exchange, the answer is yes, with conditions: on Gitea 1.25 and later, the built-in SSH server accepts the post-quantum hybrid algorithm mlkem768x25519-sha256 by default, because Gitea leaves its key exchange list unset and the golang.org/x/crypto defaults apply. Gitea's HTTPS server, built on Go, also negotiates the hybrid X25519MLKEM768 group by default because the Go runtime enables it when no curve preference is set. For post-quantum signatures and certificates, the sources listed on this page document no support in Gitea, and no post-quantum option exists in its SSH host keys, JWT signing, commit signing or OpenPGP library. Record these as two separate answers, not one yes.
Our check ran on 2026-12-04. The latest stable release marked Latest on GitHub was v28.4.0, published 2026-11-15, and its go.mod declares Go 1.27. Gitea's configuration cheat sheet, checked the same day, does not list the mlkem768x25519-sha256 entry among the SSH_SERVER_KEY_EXCHANGES defaults, and it still shows the older list. Do not treat that omission as evidence the algorithm is absent. The Gitea source leaves the setting nil, so the effective default comes from the x/crypto library. Confirm the actual negotiated algorithm on your own host with an SSH client in verbose mode, and confirm the TLS group with a handshake test against your deployment.
Before you write the answer, confirm three things in your environment: the exact Gitea version, that SSH_SERVER_KEY_EXCHANGES is not set to a manual list (a manual list overrides the default, as a Gitea contributor noted for the rootless image), and whether you run the built-in SSH server or the system OpenSSH server, since the SSH_SERVER_* settings have no effect with OpenSSH. The sources listed here do not say whether a future Gitea release will add post-quantum signatures, so ask the vendor directly and record the date of the reply.
Which Gitea releases and builds offer post-quantum key exchange
This table compares Gitea release lines and deployment builds on post-quantum key exchange, post-quantum signatures or certificates, and whether support is on by default. Read each row against the build you run, since the built-in Go SSH server and the rootful Docker image with OpenSSH 10.3 take different paths. The main takeaway is that key exchange support traces to the Go and x/crypto defaults, while no post-quantum signature or certificate support appears in the sources listed here.
| Release or build | Post-quantum key exchange | Post-quantum signatures or certificates | On by default or opt-in, source and date |
|---|---|---|---|
| Gitea 1.25 and later, built-in Go SSH server | Offered through x/crypto defaults, including mlkem768x25519-sha256, when SSH_SERVER_KEY_EXCHANGES is left unset | Not stated in the sources listed here | On by default when unset. Gitea PR 34667 (merged 2025-06-09). Issue 35653 comment (2025-10-15) |
| Gitea 1.25 and later, built-in SSH with a manually set key exchange list | Depends on the list entered, and a manual list must omit any entry that excludes mlkem768x25519-sha256 | Not stated in the sources listed here | Opt-in by configuration. Issue 35653 comment (2025-10-15) |
| Gitea v28.0.0 and later, TLS defaults for HTTPS | Go's TLS defaults apply when SSL_CURVE_PREFERENCES is unset, which Go 1.24 extended to X25519MLKEM768. Confirm the Go toolchain of your build | Not stated in the sources listed here | On by default when the setting is unset. Gitea releases page (v28.0.0). Go 1.24 release notes |
| Gitea v28.4.0, current stable release (published 2026-11-15) | Built with go 1.27 and golang.org/x/crypto v0.58.0, so the x/crypto SSH defaults apply. Confirm the release notes for any change to the key exchange defaults | Not stated in the sources listed here | Default behavior per the build. Gitea releases API (checked 2026-12-04) |
| Rootful Docker image with OpenSSH 10.3 (issue 35653 closed 2026-08-03) | Depends on the OpenSSH 10.3 defaults in the Alpine base image. Confirm the algorithms with ssh -Q kex on the running container | Not stated in the sources listed here | Default OpenSSH behavior, not a Gitea setting. Gitea issue 35653 (closed 2026-08-03) |
| Gitea signing for commits (OpenPGP and SSH signatures) | Not applicable to key exchange | None listed. The OpenPGP library lacks post-quantum algorithms per issue 35502 (opened 2025-09-16, open at check) | Not applicable. Gitea issue 35502 (2025-09-16) |
Which post-quantum algorithms Gitea's sources name
Gitea's own source names no post-quantum signature scheme, and its configuration docs mention none. The post-quantum key exchange that reaches Gitea comes from the Go runtime and golang.org/x/crypto, which changes which interface each algorithm covers.
X25519MLKEM768 for HTTPS via Go 1.24
Go 1.24 added the hybrid key exchange X25519MLKEM768 to crypto/tls and enables it by default when Config.CurvePreferences is nil. Gitea's SSL_CURVE_PREFERENCES defaults to empty, which means Go's default applies, so HTTPS served by a Gitea build compiled with Go 1.24 or later can negotiate this key exchange. The documentation says the GODEBUG setting tlsmlkem=0 reverts that default. Check the Go version and any GODEBUG value in your deployed binary or image, and confirm what the TLS handshake actually negotiates. This applies to TLS key exchange only, not to certificates.
Go 1.24 notesmlkem768x25519-sha256 for built-in SSH
The built-in SSH server uses golang.org/x/crypto/ssh. When Gitea's SSH_SERVER_KEY_EXCHANGES is left unset, the library falls back to its default list, and mlkem768x25519-sha256 is the first entry, requiring Go 1.24 or later. Gitea's configuration documentation does not list this algorithm among its SSH_SERVER_KEY_EXCHANGES defaults, and the sources do not say whether the documentation is out of date. Any manually set key exchange list overrides the default and must be removed to pick it up. Confirm the negotiated algorithm with an SSH client on your build. This applies to the built-in SSH server only, and to OpenSSH only through the system server's own configuration.
x/crypto SSH defaultsML-KEM-768 and ML-KEM-1024 in crypto/mlkem
Go 1.24 added a crypto/mlkem package implementing ML-KEM-768 and ML-KEM-1024, as specified in FIPS 203. This is a library capability in the Go standard library. The sources do not show Gitea calling crypto/mlkem directly, so the presence of the package does not by itself mean Gitea uses ML-KEM for any feature. Treat it as a building block that the TLS and SSH defaults above depend on, and confirm in the code path of your build whether any other Gitea function calls it.
Go 1.24 notesNo ML-DSA or SLH-DSA in configuration or signing
Neither Gitea's config cheat sheet nor its signing documentation mentions ML-DSA or SLH-DSA, and the sources name no post-quantum signature algorithm for commits, tags or JWTs. Commit signing uses OpenPGP by default, with SSH signing limited to ed25519 in the documentation, and JWT signing defaults to RS256 with ES256 through ES512 as other options. A feature request, issue 35502, asks for post-quantum support in the OpenPGP path because the ProtonMail/go-crypto library does not support ML-KEM, and it had no maintainer reply when checked. Do not treat these signing paths as post-quantum.
Issue 35502What the post-quantum key exchange depends on
Gitea does not implement post-quantum key exchange in its own code. Whatever post-quantum support a Gitea build has comes from the Go toolchain and the golang.org/x/crypto library it is compiled with. At tag v28.4.0, Gitea's go.mod declares go 1.27 with toolchain go1.27.4 and golang.org/x/crypto v0.58.0. Go 1.24 added the X25519MLKEM768 hybrid to crypto/tls, enabled by default when CurvePreferences is nil, and x/crypto's SSH defaults list mlkem768x25519-sha256 first. For a given binary, the practical question is therefore which toolchain and x/crypto version it was built with, and whether any setting overrides the defaults. Confirm both against the release you deploy.
The built-in SSH server is where the key exchange list is most likely to be changed by an operator. Gitea's source leaves SSH_SERVER_KEY_EXCHANGES, SSH_SERVER_CIPHERS and SSH_SERVER_MACS nil when unset, which lets x/crypto choose its defaults. However, the Gitea config cheat sheet still lists a fixed set of key exchanges with no mlkem entry, so the documentation and the code disagree about what the default is. Any manually set SSH_SERVER_KEY_EXCHANGES replaces the defaults, so an operator who copied an old value from documentation may have removed post-quantum support without noticing. Remove the setting, or confirm its value, before reading the server as either supporting or not supporting it. These settings have no effect when the system OpenSSH server is used.
Deployments that use the system OpenSSH server depend on the OpenSSH version in the container or host image instead. Issue #35653 was closed on 2026-08-03 because the rootful Docker image, which uses OpenSSH, is based on an Alpine release that ships OpenSSH 10.3. Check the OpenSSH version in your own image with ssh -V before assuming it matches. Commit signing is a separate path. Gitea's OpenPGP support uses ProtonMail/go-crypto v1.5.2, which does not support post-quantum algorithms, as feature request issue #35502 records (opened 2025-09-16, still open when checked). Signing with the default openpgp format therefore gives no post-quantum protection, and the sources listed here do not say whether that library will gain support.
How to enable post-quantum SSH key exchange in Gitea
This sequence confirms that a Gitea 1.25 or later instance uses its built-in SSH server with no manual key exchange override, so the server negotiates the defaults that the Go SSH library supplies, including the post-quantum hybrid algorithm mlkem768x25519-sha256 where the client also offers it. It also covers the HTTPS settings that control TLS, and how to check the result from an SSH client.
Confirm the Gitea release and SSH server
Check that the instance runs Gitea 1.25 or later, because pull request #34667, merged into the 1.25.0 milestone, updated the x/crypto package and made the built-in SSH server use default parameters. Confirm which SSH server is in use: the built-in Go server, or the system OpenSSH server in the rootful Docker image. The documentation states that the SSH_SERVER_* settings have no effect when the system OpenSSH server is used, so this step decides which configuration applies in the steps that follow. The step is complete when you have the exact version string and the server type written down for your change record. Confirm the release notes and image tags with the Gitea project if your deployment method differs from the standard images.
Remove any manual key exchange override
Open the app.ini file, or the environment variables that set it in a container, and locate SSH_SERVER_KEY_EXCHANGES under the [server] section. Leave the value empty, and remove any manually set value entirely. Issue #35653 records a Gitea contributor's statement from 2025-10-15 that, for the rootless image with the built-in Go SSH server on Gitea 1.25, leaving this option empty enables all recommended algorithms, and that any manually set value must be removed. The Gitea source code also leaves this setting as nil when unset. The step is complete when the setting is absent or empty in the active configuration. Note that the configuration cheat sheet still lists default values without an mlkem entry, so do not rely on that list to confirm the post-quantum algorithm is active.
Review the SSH ciphers and MAC settings
Check SSH_SERVER_CIPHERS and SSH_SERVER_MACS in the same [server] section, and confirm they are also unset unless your security policy requires otherwise. The Gitea source leaves these values as nil when unset, so the defaults from the Go SSH library apply. If your team has set them for compliance reasons, record that choice, because a restrictive value can change which algorithms the server offers during negotiation. The step is complete when you have a written record of the cipher and MAC values in use. Confirm with the Gitea project if you are unsure how a custom cipher list interacts with the key exchange defaults.
Restart Gitea to apply the configuration
Restart the Gitea service, or the container, so the new SSH settings load. Check the startup logs for errors related to SSH configuration or host key generation. If no SSH host key files exist, the built-in server generates RSA, ECDSA and ED25519 host keys named gitea.rsa, gitea.ecdsa and gitea.ed25519, so confirm those files were created in the expected directory. The step is complete when Gitea starts without SSH errors and the host keys are present. Record the restart time and the configuration file version for your audit trail.
Verify the negotiated key exchange with an SSH client
From a client machine, connect to the Gitea SSH endpoint with verbose logging, for example by running
ssh -vvagainst the Gitea host and port. Look in the output for the key exchange line that the client reports as negotiated with the server. The key exchange is post-quantum only if the negotiated algorithm is mlkem768x25519-sha256 and both the client and the server offer it. The step is complete when you have saved the fullssh -vvoutput showing the negotiated algorithm. Confirm the expected result with the client's documentation, because the client version determines which algorithms it offers. The sources do not provide any further verification commands, so do not assume other tools will show the same result.Configure HTTPS and confirm TLS defaults
For web access over TLS, set PROTOCOL to https under [server], and point CERT_FILE and KEY_FILE to the certificate and private key files. Their defaults are https/cert.pem and https/key.pem. If you use ENABLE_ACME, the certificate and key files are ignored, so choose one approach. Leave SSL_CURVE_PREFERENCES unset, because the documentation says an unset value uses Go's default TLS behavior. Go 1.24 enables X25519MLKEM768 by default in crypto/tls when CurvePreferences is nil, unless the GODEBUG setting tlsmlkem=0 reverts it. The step is complete when the instance serves HTTPS with the expected certificate and the curve preference remains unset. Confirm the exact Go runtime version used by your Gitea build with the Gitea project, because the release notes do not restate the TLS defaults for each version.
Record the result and open items
Write down the Gitea version, SSH server type, the empty SSH_SERVER_KEY_EXCHANGES value, the saved
ssh -vvoutput and the HTTPS settings. Record that the Gitea configuration cheat sheet, checked 2026-12-04, does not list mlkem or other post-quantum algorithms, so the server behavior rests on the source code and the Go defaults rather than on documented settings. Also record that the signing documentation does not cover post-quantum signatures, and that feature request #35502 remains open for OpenPGP. The step is complete when this record is stored with your change documentation. Ask the Gitea project to confirm any behavior you intend to rely on in a compliance review.
What Gitea does not document as post-quantum yet
Gitea's documentation and configuration reference, checked 2026-12-04, do not list post-quantum algorithms for signatures, certificates, commit signing or JWTs. The cards below separate the areas where the gap is documented from the areas where a stronger setting is available but not named in the documentation.
Post-quantum signatures and certificates
The Gitea config cheat sheet and signing documentation, checked 2026-12-04, do not mention ML-DSA or SLH-DSA. Certificates for HTTPS come from the PROTOCOL, CERT_FILE and KEY_FILE settings, or from ACME when ENABLE_ACME is set, and the documentation names no post-quantum certificate type or signature algorithm for them. Ask the Gitea project or your certificate authority whether a post-quantum certificate can be used with Gitea, and confirm it in a test environment before planning around it.
Config cheat sheetCommit and OpenPGP signing
Commit signing uses OpenPGP by default under [repository.signing], and the signing documentation covers only the keys in the Gitea database and TRUSTED_SSH_KEYS. Feature request issue #35502, opened 2025-09-16, asks for a way to use the system GPG binary because the ProtonMail/go-crypto library Gitea uses does not support post-quantum algorithms such as ML-KEM. The issue was still open with no maintainer reply when checked, so confirm its status before relying on any future change.
Issue 35502JWT signing algorithm options
The [oauth2] setting JWT_SIGNING_ALGORITHM defaults to RS256 and accepts HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384 and ES512. None of the listed options is a post-quantum signature algorithm. Check the value in your app.ini, since the default applies if the setting is left unset, and treat any token signed with these algorithms as depending on classical public-key or shared-secret cryptography.
Config cheat sheetThe config cheat sheet ML-KEM omission
The config cheat sheet 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, and the page, checked 2026-12-04, does not describe ML-KEM at all. Gitea's source leaves that setting nil when unset, and PR 34667 relied on x/crypto defaults that include mlkem768x25519-sha256. The documentation and the running behavior therefore differ, so check the negotiated key exchange on your own server rather than the cheat sheet.
Config cheat sheetHigher parameter sets in Gitea settings
Go 1.24 added crypto/mlkem with ML-KEM-768 and ML-KEM-1024, but the Gitea settings described in the cheat sheet expose no field to choose an ML-KEM parameter set. SSL_CURVE_PREFERENCES and SSH_SERVER_KEY_EXCHANGES are the nearest settings, and neither names ML-KEM-1024. Confirm with the Gitea project which parameter sets its build uses and whether a higher set can be selected before writing it into a compliance inventory.
Go 1.24 release notesUnpublished plans as of 2026-12-04
As of 2026-12-04 the latest stable release is v28.4.0, published 2026-11-15, and the Gitea sources listed here publish no post-quantum roadmap, migration guide or deprecation timeline. Treat the absence of a statement as a gap to confirm with the vendor, not as a commitment. Ask Gitea for a written position on ML-DSA, SLH-DSA and ML-KEM support in signing, certificates and JWTs, and record the date and version of its answer.
Gitea releasesHow support differs by Gitea deployment method
The built-in SSH server is the Go implementation Gitea runs itself, in the rootless image or as a binary. Its key exchange defaults come from the golang.org/x/crypto library rather than from the Gitea configuration file. Pull request #34667, merged into the 1.25.0 milestone, switched the server to those library defaults, and the author wrote that they include a post-quantum key exchange algorithm. The configuration cheat sheet still lists classical defaults for SSH_SERVER_KEY_EXCHANGES and does not mention an ML-KEM entry, which the sources describe as out of date for this path.
- Library defaults: When SSH_SERVER_KEY_EXCHANGES is left unset, Gitea's source passes nil through, and x/crypto falls back to a default list whose first entry is mlkem768x25519-sha256, which requires Go 1.24 or later.
- Documentation gap: The cheat sheet, checked 2026-12-04, lists curve25519-sha256 and Diffie-Hellman groups as defaults and contains no mlkem entry.
- Manual overrides: Issue #35653 states that a manually set SSH_SERVER_KEY_EXCHANGES must be removed on Gitea 1.25 for the defaults to apply.
- Host keys: Without host key files, the server generates RSA, ECDSA and ED25519 keys, and the sources do not say whether host key types change with the key exchange.
- Other settings: SSH_SERVER_CIPHERS and SSH_SERVER_MACS are unset in code and do not appear in any post-quantum statement in the sources.
Confirm the effective key exchange list by connecting with a client in verbose mode on your own build and version, and check that no override is set in app.ini or environment variables.
The rootful Docker image runs the system OpenSSH server rather than the built-in Go server. Per the configuration documentation, the SSH_SERVER_* settings have no effect in this case, so key exchange is governed by the OpenSSH build inside the image. Issue #35653 was closed as completed on 2026-08-03 because this image is based on an Alpine release that ships OpenSSH 10.3. The sources do not state which post-quantum key exchange OpenSSH 10.3 negotiates by default, or whether the image overrides its defaults.
- Version: The image is based on an Alpine release that ships OpenSSH 10.3, as stated in issue #35653.
- Settings ignored: 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.
- Image tags: The sources do not map specific Gitea release tags to specific Alpine or OpenSSH versions, so confirm the tag you deploy.
- Client side: The sources do not address which client versions negotiate post-quantum key exchange with this server.
- Host keys: Host key handling under OpenSSH is not described in the sources.
Run ssh -vv against the container's SSH port and read the negotiated kex algorithm, then confirm with the image's sshd -T output which key exchange list is active.
When PROTOCOL is set to https, Gitea terminates TLS itself using CERT_FILE and KEY_FILE, or certificates from ACME when ENABLE_ACME is true. Gitea uses Go's TLS stack, and the v28.0.0 release notes state that Gitea now uses Go's TLS defaults. Go 1.24 added X25519MLKEM768 to crypto/tls and enables it by default when CurvePreferences is nil, so Gitea builds that use this default are expected to offer it, unless the GODEBUG setting tlsmlkem=0 is applied. The sources do not confirm the Go version of each Gitea release at the TLS layer.
- Protocol: PROTOCOL=https makes Gitea serve TLS directly, with CERT_FILE defaulting to https/cert.pem and KEY_FILE to https/key.pem.
- Automatic certificates: ENABLE_ACME defaults to false, and when true CERT_FILE and KEY_FILE are ignored.
- TLS settings: SSL_MIN_VERSION, SSL_MAX_VERSION, SSL_CURVE_PREFERENCES and SSL_CIPHER_SUITES default to empty, which means Go's defaults apply.
- Certificates: The sources do not state which signature algorithm the default certificate or ACME certificates use, and they do not mention ML-DSA or SLH-DSA.
- Go version: Check the go.mod of your release, since the sources show go 1.27 at v28.4.0 and do not map earlier releases.
Set SSL_CURVE_PREFERENCES only after checking what your release offers by default, and test the negotiated group from a client with your own TLS tool.
In a reverse proxy deployment, the proxy terminates TLS for clients and forwards requests to Gitea, usually over plain HTTP on an internal network. In that case the key exchange and certificates that clients see are set by the proxy, not by Gitea, so Gitea's TLS settings do not govern the client connection. The sources do not describe any reverse proxy configuration for Gitea, so no proxy product or version is covered.
- TLS owner: The proxy controls the TLS settings, certificate and key exchange for connections from clients.
- Gitea settings: PROTOCOL, CERT_FILE, KEY_FILE and ENABLE_ACME are only relevant if Gitea itself serves HTTPS, so they may not apply here.
- SSH path: SSH is a separate connection. Whether it passes through the proxy depends on your network design, and the sources do not describe proxying SSH.
- Internal hop: The sources do not say whether traffic between the proxy and Gitea is encrypted.
- Proxy support: Confirm post-quantum support with the vendor of your proxy, using the section of this site for that product.
Write down which component terminates each connection (client to proxy, proxy to Gitea, client to SSH port), since each has its own owner and its own answer.
What changes when post-quantum key exchange is on
Turning on post-quantum key exchange in Gitea's built-in SSH server does not guarantee that every connection uses it. The hybrid group mlkem768x25519-sha256 is offered only when both sides support it, and a client that does not offer it falls back to a classical algorithm such as curve25519-sha256. A client on an older SSH implementation, or one configured to exclude the hybrid group, will still connect, but its key exchange is classical. Confirm which clients your users and automation run, and check their supported key exchange list, before describing any access path as post-quantum.
The more common way to lose the hybrid group is a configuration override. The Gitea config cheat sheet still lists SSH_SERVER_KEY_EXCHANGES defaults with no mlkem entry, and any value set manually replaces the default list. Gitea's code leaves that setting unset when it is absent, and the x/crypto/ssh default list places the hybrid group first. An administrator who copied an older list into app.ini may therefore remove the hybrid group without any error or warning. Issue 35653 reached the same conclusion: any manually set SSH_SERVER_KEY_EXCHANGES should be removed so the recommended algorithms apply. Audit the [server] section of every instance and record whether that key is present.
Larger key exchange messages can also affect network devices between clients and Gitea. A hybrid handshake carries more data than a classical one, and some firewalls, load balancers, SSH proxies and inspection appliances were built around smaller messages and may drop, truncate or reject them. The sources listed here do not give the size difference or name the devices affected, so ask your network team to test an SSH connection from each client network through every appliance on the path. Failures usually show up as connections that hang during key exchange rather than as clear errors, so record the test result alongside the Gitea version and configuration.
What to do next by Gitea situation
Each Gitea deployment falls into one of four situations, and each one has a different first check. Working through the matching sequence produces a dated record of the SSH key exchange, the OpenSSH version where it applies, and the answer you can give on signatures. The sources on this page do not show Gitea offering post-quantum signatures, so the record should say so.
Identify your Gitea release and SSH server
Confirm the Gitea version in use and whether SSH is served by the built-in Go server or by the system OpenSSH server. The sequence branches on these two facts, so the platform administrator should record them first. Check the version in the administration dashboard or on the server, and check the [server] settings for the SSH mode. The step is done when both values are written in the inventory with the date they were read.
Verify built-in SSH on Gitea 1.25 or later
If Gitea is 1.25 or later and uses the built-in SSH server, leave SSH_SERVER_KEY_EXCHANGES empty and remove any value set manually. The Gitea source leaves this list unset, and the x/crypto defaults then apply, with the mlkem768x25519-sha256 key exchange listed first. The Gitea documentation still lists key exchanges without an ML-KEM entry, so the source is the better reference here. Confirm the negotiated key exchange with an SSH client that reports it, and record the client version and the date of the test. The step is done when a test connection shows the expected algorithm.
Confirm OpenSSH version in the rootful Docker image
If Gitea runs from the rootful Docker image, which uses the OpenSSH server, confirm the OpenSSH version inside the running image rather than assuming it. Gitea issue 35653 records that the Alpine base of that image ships OpenSSH 10.3, but that statement describes the image at the time the issue was closed. Run the version command inside the container, record the image tag and digest, and note which key exchange methods that OpenSSH build supports. The step is done when the version string is saved with the image digest.
Plan upgrade for an older Gitea release
If Gitea is older than 1.25, the built-in SSH server does not get the default changes made in pull request 34667, so the current key exchange behavior should not be assumed. Record the running version, then check the release notes for the first release that includes the change. Plan the upgrade as a change under your normal process and confirm with the Gitea project or your support provider which release and settings you should move to. The step is done when the target version is written in the change record and the vendor or project confirmation is attached.
Test HTTPS and TLS settings separately from SSH
SSH key exchange and HTTPS are configured separately, so the team should not treat one result as covering the other. Check PROTOCOL, the certificate source, and the SSL_MIN_VERSION, SSL_CURVE_PREFERENCES and SSL_CIPHER_SUITES settings, which default to empty and then follow Go's defaults. Go 1.24 enables X25519MLKEM768 by default when no curve preferences are set, and the GODEBUG setting tlsmlkem=0 reverts that default. Confirm the Go toolchain used to build the running binary and record the settings. The step is done when the HTTPS handshake has been tested and the build toolchain is recorded.
Answer signature questions as not documented
When a customer questionnaire asks whether Gitea signs or verifies with post-quantum signatures, the sources on this page do not show that. Gitea's signing documentation covers OpenPGP and SSH commit signing, where the only SSH algorithm mentioned is ed25519, and the JWT signing setting defaults to RS256. Feature request issue 35502 notes that the OpenPGP library does not support ML-KEM, and it had no maintainer reply when checked. Answer that signatures are not documented as post-quantum, cite the signing documentation, and state the date of your check. The step is done when the answer is recorded with its sources.
Record results and confirm with the vendor
Gather the version, SSH mode, key exchange result, OpenSSH version where applicable, HTTPS settings and signature answer into one record. Mark which items were verified by testing and which were taken from documentation, since the Gitea configuration documentation and the source differ on some key exchange entries. Send the open questions to the Gitea project or your support provider, and ask them to confirm the statements that matter for your procurement. The step is done when the record is dated, signed off by the platform owner, and the vendor questions have been sent.
What to ask Gitea's maintainers and your distributor
The sources listed on this page show that Gitea's built-in SSH server and its signing and JWT features have no published post-quantum option as of 2026-12-04. The questions below cover the gaps that remain, and each one names the source where the gap appears so you can check it against the current release.
Post-quantum signature and certificate roadmap
Ask whether the Gitea Authors have a published roadmap for post-quantum signatures or certificates covering HTTPS, SSH host keys and commit signing. The config cheat sheet and signing documentation, both checked 2026-12-04, contain no mention of post-quantum, ML-KEM, ML-DSA or SLH-DSA, so any plan would have to come from the maintainers directly. Record the answer with its date, and ask whether it applies to the current v28.4.0 release, to the main branch or to both.
Config cheat sheetML-KEM in the SSH key exchange settings
Ask whether mlkem768x25519-sha256 will be added to the SSH_SERVER_KEY_EXCHANGES defaults. The cheat sheet, checked 2026-12-04, lists curve25519-sha256 and several Diffie-Hellman and ECDH entries with no mlkem entry, yet Gitea's source leaves that setting nil when unset, so golang.org/x/crypto/ssh chooses the algorithms. Confirm which of the two sources governs the built-in server in your release before you rely on either one.
Config cheat sheetPinned OpenSSH version in the Docker image
Ask which OpenSSH version the rootful Docker image will ship and whether that version will be pinned. Issue #35653 was closed as completed on 2026-08-03 because the rootful image uses the OpenSSH server from an Alpine release that ships OpenSSH 10.3, so the system SSH path and the built-in SSH path can differ in their key exchange behavior. Ask the maintainers to state in writing which path the image uses by default.
Issue 35653Post-quantum options for JWT and OpenPGP
Ask whether JWT_SIGNING_ALGORITHM and the OpenPGP signing path will gain post-quantum options. The JWT setting accepts only HS, RS and ES algorithms, and signing defaults to openpgp through ProtonMail/go-crypto. Feature request issue #35502, opened 2025-09-16, asks for a system GPG option because that library does not support post-quantum algorithms, and it had no maintainer reply when checked. Confirm whether a decision has been made on that request.
Issue 35502Validation and testing plans
Ask what validation, testing or third-party review the maintainers have planned for any post-quantum change in Gitea. The sources on this page do not describe any such plan, so there is no published test scope to compare against. Ask for the test scope, the release that would carry it and whether results will be published, and record the reply with its date.
Common questions about Gitea post-quantum readiness
Is Gitea quantum safe?
Gitea does not have a published post-quantum guarantee, and no source listed on this page supports calling it quantum safe. What the sources do show is partial support in its SSH path. Gitea's source leaves SSH key exchange options unset, so the built-in SSH server uses the defaults in golang.org/x/crypto, and in that library the first default key exchange is mlkem768x25519-sha256, which requires Go 1.24 or later. Gitea's configuration documentation does not list that algorithm. HTTPS and TLS settings follow Go's defaults in the v28.0.0 release, and Go 1.24 enables X25519MLKEM768 by default when no curve preference is set. Signing, JWT and host key algorithms show no post-quantum support in the sources. Confirm each path in your own deployment before describing it to anyone.
Which Gitea version do I need for post-quantum key exchange?
The sources do not name a single Gitea version as the minimum for post-quantum support. Pull request #34667, merged into the 1.25.0 milestone, updated the x/crypto package and made the built-in SSH server use library defaults, which include the post-quantum key exchange. Issue #35653 says that on Gitea 1.25 with the rootless image, leaving SSH_SERVER_KEY_EXCHANGES empty enables all recommended algorithms. The current stable release, v28.4.0 published 2026-11-15, declares go 1.27 and golang.org/x/crypto v0.58.0. Because the algorithm needs Go 1.24 or later in the build, check the Go toolchain in the release you run. The image or binary you deploy may not match the source, so confirm the build metadata.
Does enabling post-quantum support in Gitea cost extra?
The sources show no license fee or paid tier for the post-quantum behavior described here. Gitea is released under the MIT license, and the SSH and TLS defaults come from the open-source Go toolchain and golang.org/x/crypto. Your cost comes from the work around it: rebuilding or upgrading to a release with a current Go toolchain, testing SSH clients that may not offer the new key exchange, and reviewing any manual SSH_SERVER_KEY_EXCHANGES overrides you have set. Those tasks recur whenever you upgrade. Ask your team to estimate the effort from your current version, your build pipeline and the number of clients that connect over SSH.
What breaks if I change my Gitea SSH key exchange settings?
The main risk is setting SSH_SERVER_KEY_EXCHANGES manually. Issue #35653 notes that a manually set value must be removed so the defaults apply, because a fixed list can exclude the newer algorithm. The built-in SSH server ignores SSH_SERVER_CIPHERS, SSH_SERVER_KEY_EXCHANGES and SSH_SERVER_MACS when the system OpenSSH server is used. Clients that support only older algorithms will fail to connect if you narrow the list. Test with an actual client before and after any change, and keep a rollback copy of your app.ini.
What should I ask Gitea or its maintainers about post-quantum plans?
Ask whether there is a documented post-quantum policy, and whether the project or a commercial support provider will publish one. Ask which release first made the SSH key exchange post-quantum by default, and whether that holds for both the rootless and rootful Docker images. Ask whether TLS, signing and JWT algorithms have a roadmap, since the configuration reference and signing documentation do not mention ML-KEM, ML-DSA or SLH-DSA. Ask about the open request for system GPG support (issue #35502), which the maintainers have not answered. Get written answers and record the release and date each one refers to.
Can my team make Gitea post-quantum ready without outside help?
A team that already runs Gitea can handle the SSH key exchange check and the version upgrade itself, provided it has someone comfortable with app.ini, Docker image tags and SSH client testing. Outside help is more useful for the parts the sources do not cover: a full cryptographic inventory across TLS, signing, webhooks and JWT, a test plan for every client your organization uses, and evidence for a compliance review. DeployOpen can plan and implement self-hosted Gitea within your infrastructure and run security testing, and scope and deliverables are agreed in writing before work starts.
Does Gitea's TLS configuration support post-quantum key exchange?
Gitea's HTTPS server does not set its own curve list when SSL_CURVE_PREFERENCES is left empty, and the documentation says an unset value uses Go's default. Go 1.24 and later enable X25519MLKEM768 by default when the curve preference is nil, and the GODEBUG setting tlsmlkem=0 turns that off. Release v28.0.0 switched Gitea's TLS to Go's defaults. The sources do not state which Go version your binary was built with, so check the toolchain or inspect the handshake with a TLS client that reports the negotiated group. If you set SSL_CURVE_PREFERENCES or SSL_CIPHER_SUITES explicitly, verify those settings still include the hybrid group.
How DeployOpen helps plan and verify Gitea's post-quantum settings
DeployOpen starts from the settings your Gitea instance actually uses, then checks which post-quantum algorithms the running build negotiates for SSH and HTTPS. We turn that into a written, dated answer your security and vendor-risk teams can record, along with the configuration changes needed to verify it.
How we scope
- We confirm the Gitea version, the Docker image type and whether the built-in or system OpenSSH server is in use.
- We record which [server] SSH and TLS settings are set, left empty or overridden, since empty values change the result.
- Fixed-scope engagements agree in writing which Gitea functions, clients and hosts are covered before any testing starts.
How we build
- We test SSH key exchange and HTTPS handshakes against the deployed instance and compare them with the Go and OpenSSH defaults.
- We check the signing, webhook and OAuth2 settings, noting where the sources say post-quantum algorithms are not supported.
- We set up a staging copy of your configuration so changes to SSH or TLS settings can be verified before production.
How we hand over
- You receive a dated written report stating which algorithms were observed, the exact version and image tested, and open gaps.
- The report separates what the Gitea documentation says from what the running instance negotiates, with the evidence for each.
- Documented settings, retest steps and the list of items to confirm with the Gitea project are handed over in your repository.
How we support
- Ongoing support is available as a retainer for re-testing after each Gitea release or base image update.
- We can retest the instance after you change SSH or TLS settings, and update the written report to match.
- Questions about Gitea's published plans should go to the Gitea project; we record their answers in the report when provided.

