Where does Gitea use cryptography, and why record it now?
A platform team running Gitea uses it for source hosting, pull request workflows, webhooks and commit verification, and each of these depends on cryptography in a different place. Gitea uses public-key cryptography in its protocols (SSH and HTTPS), in the certificates and keys that terminate those protocols, in management access such as the JWT signing key used by [oauth2], in commit signing under [repository.signing], and in outbound integrations such as webhook TLS. An inventory entry records which of these areas apply to your deployment, so the readiness review can see where keys and algorithms actually sit. The entry should be owned by the platform engineer who runs the Gitea instance, with the security lead or vendor-risk reviewer approving it, because that pair is responsible for both the configuration and the evidence.
The entry must name the version it covers. The sources used for this page describe Gitea v28.4.0, published 2026-11-15, and the Gitea config cheat sheet and signing documentation as checked on 2026-12-04. Settings and defaults can change between releases: for example, the SSH key exchange list in the cheat sheet has not been updated to include an ML-KEM entry, while Gitea's source leaves the key exchange lists nil when unset and defers to golang.org/x/crypto. Record the release tag, the Go toolchain version it was built with and any non-default values in your configuration file, and repeat the check whenever the instance is upgraded. Also record that the signing documentation verifies commit signatures only against keys in the Gitea database or TRUSTED_SSH_KEYS, and does not check expiry or revocation, since those facts affect any later assessment of signing trust.
Recording the entry now gives you a baseline to confirm with the vendor and with your own environment. Check your running instance, not only the documentation: confirm the active PROTOCOL value, whether ENABLE_ACME is set, whether SSH_SERVER_KEY_EXCHANGES has been set by hand, and which Gitea image (rootless or rootful) you run, since issue 35653 shows the two images behave differently. Mark any point the sources do not settle, such as whether a post-quantum key exchange is negotiated in your exact configuration, as an open question to confirm, not as a finding.
Which Gitea components use cryptography, and do they depend on public-key algorithms?
This table lists each Gitea area that uses cryptography, the algorithm family the sources name, whether it depends on public-key algorithms and the setting that configures it. Read the rows as a starting inventory: where the sources are silent, the row is marked not documented and should be confirmed with the vendor. Most rows that depend on public keys do so through RSA, ECDSA or ED25519 defaults that can be changed.
| Area | What it protects | Algorithm family and public-key dependence | Configuring setting |
|---|---|---|---|
| Built-in SSH server | Git over SSH and shell access to the Gitea SSH endpoint | Key exchange includes curve25519 and ECDH; public-key dependent through host and user keys | [server] SSH_SERVER_KEY_EXCHANGES, SSH_SERVER_CIPHERS, SSH_SERVER_MACS |
| HTTPS listener | Browser and client traffic to the Gitea web interface and API | Go crypto/tls defaults; certificate authentication is public-key dependent; ML-KEM hybrid present in Go 1.24 defaults | [server] PROTOCOL, CERT_FILE, KEY_FILE, SSL_MIN_VERSION, SSL_CURVE_PREFERENCES |
| ACME certificate issuance | Automatic issuance of the server certificate from an ACME CA | Certificates are public-key based; the sources do not name the key algorithm used for issued certificates | [server] ENABLE_ACME, ACME_URL |
| SSH host keys | Identity of the built-in SSH server to clients | RSA, ECDSA and ED25519; public-key dependent by design | [server] SSH_SERVER_HOST_KEYS; default files gitea.rsa, gitea.ecdsa, gitea.ed25519 |
| SSH user key acceptance | Which user public keys the SSH server accepts | ED25519, ECDSA and RSA accepted above minimum sizes; DSA disabled; public-key dependent | [ssh.minimum_key_sizes] |
| OAuth2 JWT signing | Integrity of access and OAuth2 tokens issued by Gitea | RS256 default; HS, RS and ES algorithms accepted; RSA or ECDSA key is public-key dependent, HS options are not | [oauth2] JWT_SIGNING_ALGORITHM; jwt/private.pem |
| Commit signing | Authenticity of commits signed by users | OpenPGP by default; SSH signing uses ed25519 per the signing documentation; public-key dependent | [repository.signing] SIGNING_FORMAT, SIGNING_KEY, TRUSTED_SSH_KEYS |
| Webhooks | Certificate checks on outbound webhook calls | TLS certificate verification; public-key dependent on the receiver certificate; the sources do not name the algorithm | Webhook SKIP_TLS_VERIFY (default false) |
| Mailer TLS | Certificate checks on outbound mail server connections | TLS certificate verification; public-key dependent on the mail server certificate; the sources do not name the algorithm | [mailer] FORCE_TRUST_SERVER_CERT (default false) |
| Go-based libraries in the dependency list | Cryptographic functions the Gitea code calls, including JWT, WebAuthn, ACME and cloudflare/circl | Libraries include golang-jwt, go-webauthn, certmagic, acmez and circl; post-quantum support in these is not documented in the sources | Set by go.mod versions; confirm library support with the Gitea project |
Which protocols does Gitea terminate, and which settings choose their algorithms?
When [server] PROTOCOL is set to https, Gitea terminates TLS itself for the web interface, the HTTP API and Git over HTTP. The certificate and private key come from CERT_FILE and KEY_FILE, which default to https/cert.pem and https/key.pem. If ENABLE_ACME is turned on, Gitea obtains certificates from an ACME certificate authority instead, and CERT_FILE and KEY_FILE are ignored. The cipher and version choices are made by the TLS settings SSL_MIN_VERSION, SSL_MAX_VERSION, SSL_CURVE_PREFERENCES and SSL_CIPHER_SUITES.
- Defaults are empty: all four SSL settings default to empty, and the documentation says an unset value uses Go's default.
- Version range:
SSL_MIN_VERSIONaccepts TLSv1.0 through TLSv1.3 according to the documentation. - Release change: the v28.0.0 release notes include the entry "Enhance(tls): use go's tls defaults", which moved the TLS behavior onto Go's defaults.
- Hybrid key exchange: Go 1.24 added X25519MLKEM768 to
crypto/tlsand enables it by default whenCurvePreferencesis nil. TheGODEBUGsettingtlsmlkem=0reverts that default, so the Go version a Gitea build was compiled with decides whether the hybrid group is offered. - Certificates are separate: the key exchange setting does not change the certificate or signature algorithm. Check the certificate type and any CA process separately.
Confirm which Go toolchain your Gitea release was built with, and whether tlsmlkem is set in your environment.
When Gitea runs its own SSH server, it handles git clone and git push over SSH and the SSH key checks for user logins. The [server] settings SSH_SERVER_CIPHERS, SSH_SERVER_KEY_EXCHANGES, SSH_SERVER_MACS and SSH_SERVER_HOST_KEYS control this server. The documentation says these settings have no effect when the system OpenSSH server is used instead.
- Key exchange defaults: the cheat sheet, checked 2026-12-04, lists curve25519-sha256, the ECDH groups and two Diffie-Hellman group 14 options, with no
mlkementry. - Code leaves lists unset: the main-branch source leaves
SSH_SERVER_KEY_EXCHANGES,SSH_SERVER_CIPHERSandSSH_SERVER_MACSas nil when unset, so the listed defaults are not set by Gitea's code. - Library default: PR 34667, merged 2025-06-09, updated the x/crypto package and made the built-in SSH server use default parameters. In x/crypto master, an unset key exchange list falls back to a default list whose first entry is mlkem768x25519-sha256, which requires Go 1.24 or later.
- Host keys: if no host key files exist, Gitea generates RSA, ECDSA and ED25519 keys named
gitea.rsa,gitea.ecdsaandgitea.ed25519, with documented sizes of 4096-bit RSA and 256-bit ECDSA. - User key minimums:
[ssh.minimum_key_sizes]defaults to ED25519 256, ECDSA 256 and RSA 3071, and DSA is disabled.
The cheat sheet has no mlkem entry for SSH key exchange, so do not read that page as a record of what the server negotiates. Confirm the negotiated key exchange against a live connection, and check the image type: issue 35653 says the rootful Docker image uses OpenSSH, and the rootless image uses the built-in server.
Gitea also makes outbound TLS connections: webhook deliveries to other services and SMTP connections to a mail server. These are client connections, so Gitea does not terminate them. The settings here decide whether Gitea checks the remote certificate, not which algorithms it uses. The webhook setting SKIP_TLS_VERIFY and the mailer setting FORCE_TRUST_SERVER_CERT both default to false.
- Webhook verification:
SKIP_TLS_VERIFYunder the webhook section defaults to false, so Gitea verifies the receiver's certificate by default. - Mailer trust:
FORCE_TRUST_SERVER_CERTdefaults to false and the documentation describes it as unsafe, because it accepts any server certificate. - Algorithms on the outbound side: the sources listed on this page do not say which key exchange or signature algorithms Gitea offers on these outbound connections, beyond what Go's TLS defaults provide.
- Scope of the check: the verification settings control trust in the remote certificate, so review them with the certificate authorities your webhook receivers and mail servers use.
Confirm with your receivers and mail provider which TLS versions and groups they accept, since the sources listed here do not say what they negotiate.
Gitea uses public-key cryptography for commit signature checks and for signing OAuth2 tokens. These are not transport settings, so they sit outside the TLS and SSH tabs. Commit signing is set under [repository.signing], and OAuth2 token signing is set under [oauth2].
- Commit signing formats:
SIGNING_FORMATdefaults to openpgp and can be set to ssh. TheSIGNING_KEYsetting accepts none, default, a GPG key ID or an SSH public key path. - SSH signing algorithm: the only SSH signing algorithm the signing documentation mentions is ed25519.
- Verification scope: Gitea checks signatures against keys in its database or
TRUSTED_SSH_KEYS, and does not check expiry, revocation or keyservers. - Token signing:
JWT_SIGNING_ALGORITHMdefaults to RS256 and accepts HS256 through HS512, RS256 through RS512, and ES256 through ES512. The filejwt/private.pemmust be a PKCS8 RSA or ECDSA key, and a 4096-bit key is created if none exists. - Open feature request: issue 35502, opened 2025-09-16, asks for the system GPG binary because the OpenPGP library does not support post-quantum algorithms. It was still open with no maintainer reply when checked.
Record these in your inventory as separate items, since each has its own key type and rotation process. The signing documentation and cheat sheet, checked 2026-12-04, do not mention post-quantum algorithms.
How do administrators and tools reach Gitea, and what protects each path?
Administrators and tools reach Gitea through four paths, and each one is protected by different settings. The web interface and API run over HTTP by default, and the [server] setting PROTOCOL must be set to https for Gitea to serve TLS itself, using CERT_FILE and KEY_FILE, or ENABLE_ACME to obtain certificates automatically. The TLS version and cipher options (SSL_MIN_VERSION, SSL_MAX_VERSION, SSL_CURVE_PREFERENCES, SSL_CIPHER_SUITES) default to empty, which the documentation says means Go's defaults apply. Go 1.24 enables X25519MLKEM768 in crypto/tls by default when no curve preferences are set, but the sources here do not confirm which Gitea releases pick that up through the TLS path, so confirm that in your own build and with the vendor.
Git access over SSH has two possible servers, and the record must name which one runs. Gitea has a built-in SSH server configured through SSH_SERVER_CIPHERS, SSH_SERVER_KEY_EXCHANGES, SSH_SERVER_MACS and SSH_SERVER_HOST_KEYS, but the documentation says these settings have no effect when the system OpenSSH server is used. The built-in server generates RSA, ECDSA and ED25519 host keys if none exist. Gitea's source leaves the key exchange list nil when unset, and golang.org/x/crypto then falls back to a default list that places mlkem768x25519-sha256 first. The Gitea config cheat sheet still lists key exchanges without any mlkem entry, so the documentation and code disagree. Note also that the rootful Docker image uses OpenSSH, and issue #35653 was closed on 2026-08-03 on that basis.
API tokens and OAuth2 access depend on the [oauth2] signing key, and webhooks and commit signing depend on their own settings. JWT_SIGNING_ALGORITHM defaults to RS256 and the key file jwt/private.pem must be a PKCS8 RSA or ECDSA key. The dependency list includes go-webauthn/webauthn v0.18.2 for WebAuthn logins. Webhooks verify server certificates unless SKIP_TLS_VERIFY is set, which defaults to false. Commit signing uses OpenPGP by default and can use SSH keys. The sources do not describe a separate management plane, cluster link or cloud management path, so confirm with the vendor or in your own deployment whether any exists.
How are Gitea releases and dependencies updated, and who controls the versions in use?
Gitea's release, dependency and image choices decide which SSH and TLS code actually runs on your server. The cards below cover what the sources state about the current release, the Go and crypto library versions, the Docker image options and the signing of releases, so you can record which version and which key exchange defaults apply to your deployment.
Current release channel
As of 2026-12-04, the latest stable release marked Latest on GitHub is v28.4.0, published 2026-11-15. The release list is the place to confirm what is current on the day you record your inventory, since later releases will replace this one. Record the exact tag you run, not the channel name, because the SSH and TLS defaults discussed on this page depend on the build you deploy. Check the release notes for each version you adopt.
Gitea releases pageGo toolchain and x/crypto versions
Gitea's go.mod at tag v28.4.0 declares Go 1.27 with toolchain go1.27.4 and golang.org/x/crypto v0.58.0. The Go toolchain sets the TLS and SSH defaults your binary inherits, including whether X25519MLKEM768 is enabled, so the toolchain version is part of your inventory record. Compare these values in go.mod for the tag you run, because a version upgrade of the toolchain can change default behavior without any change to Gitea's own settings.
Gitea go.mod v28.4.0Rootless or rootful Docker image
The rootless image runs the built-in Go SSH server, so its key exchange follows the x/crypto defaults and the SSH_SERVER_* settings you apply. The rootful image runs the OpenSSH server instead. Issue #35653 was closed on 2026-08-03 because the rootful image is based on an Alpine release that ships OpenSSH 10.3. Pick the image deliberately, then confirm which SSH server answers on port 22 of your host, because the two images handle key exchange through different code.
Gitea issue 35653Dependency versions on main
The main-branch go.mod lists the crypto-related dependencies that Gitea builds on, including ProtonMail/go-crypto v1.5.2, 42wim/httpsig v1.3.0, golang-jwt/jwt/v5 v5.3.1, caddyserver/certmagic v0.25.6 and cloudflare/circl v1.6.3. Main is a moving target, so these versions describe development code and may differ from the tag you run. Treat the list as an input for your own dependency inventory, and confirm each version against the release tag rather than assuming main matches your build.
Gitea go.mod mainWho controls the version in use
You control the version and image you run, and that choice sets which code, defaults and dependencies are in force on your server. The sources do not describe vendor-signed firmware or license channels for a self-hosted application, so do not assume that a license or vendor channel gates your updates. Confirm the signing and verification steps for the release artifacts you download, and confirm with the Gitea project any signing practice the public sources do not describe.
Gitea signing documentationWhat should the inventory record for each Gitea cryptographic item?
This table lists each field an inventory should capture for a Gitea cryptographic item, with where to read the value in Gitea's config file or image. Use it to build one row per SSH key, TLS setting, JWT key, signing key or webhook setting. The main takeaway is that the version, the image variant and the setting key must be recorded together, because the same setting can behave differently between rootless and rootful images.
| Field | What to record | Where to read it |
|---|---|---|
| Product and version | Gitea product name and the exact release, such as v28.4.0 as the latest stable release on 2026-12-04 | Run the Gitea binary with the version flag, or read the tag on the release page |
| Edition or image variant | Whether the deployment is the rootless or rootful image, since the SSH server differs between them | Read the image tag and the container definition used to start Gitea |
| Component | SSH server, HTTPS, JWT, commit signing or webhooks, with one row per component | Gitea config file sections [server], [oauth2], [repository.signing] and [webhook] |
| Setting key and value | The exact key, such as PROTOCOL, SSH_SERVER_KEY_EXCHANGES or JWT_SIGNING_ALGORITHM, and its effective value | The app.ini file in the custom configuration directory, or the environment variables set on the container |
| Algorithm or key type | The algorithm in use, such as RS256 for JWT, ED25519 for SSH signing or ECDSA for host keys | The same config key, or the key file header in the data directory |
| Key size | The bit length of RSA or ECDSA keys, and the minimum accepted user key size | Inspect the key file with your key tooling, and read [ssh.minimum_key_sizes] in the config file |
| Certificate issuer and expiry | The issuing CA, or the ACME service, and the expiry date, when HTTPS is used | Read ENABLE_ACME and ACME_URL in config, or inspect the certificate at CERT_FILE with openssl |
| Owner | The team or person accountable for renewing and changing the item | Your internal asset register or change management records, not Gitea itself |
| File or key location | The path to the file that holds the key or certificate | Read CERT_FILE, KEY_FILE, the SSH host key paths and jwt/private.pem in the data or custom directory |
| Configurable or fixed in code | Whether the item can be changed in config, or is set by Gitea's code or a library default | Check the config cheat sheet, and confirm with the release source for any setting the documentation does not describe |
| Confidentiality period | How long the data protected by this item must stay confidential, which the owner sets from the data's retention and sensitivity | Set by your data classification policy, not a Gitea setting; confirm with the data owner |
Which Gitea items depend on public-key algorithms and so fall in scope for migration?
The items in Gitea that depend on public-key algorithms are the ones a migration plan must cover first. They are the HTTPS certificate and its key exchange when PROTOCOL is set to https, the built-in SSH server's host keys and key exchange, the SSH user keys Gitea accepts, JWT signing for OAuth2, commit signing, and the OpenPGP library that verifies those signatures. Gitea's main-branch go.mod lists ProtonMail/go-crypto v1.5.2 for OpenPGP, and the signing documentation confirms that OpenPGP is the default SIGNING_FORMAT. Each of these is an inventory line to record with its component and version, since the same product can use different algorithms depending on settings.
On the SSH side, the built-in server generates RSA, ECDSA and ED25519 host keys named gitea.rsa, gitea.ecdsa and gitea.ed25519 when no host key files exist. The defaults in [ssh.minimum_key_sizes] accept ED25519 at 256, ECDSA at 256 and RSA at 3071, and DSA is disabled. For JWT signing, [oauth2] JWT_SIGNING_ALGORITHM defaults to RS256 and also accepts ES256, ES384 and ES512, so an RSA or ECDSA private key in jwt/private.pem is in scope. Commit signing under [repository.signing] can use OpenPGP or SSH keys, where the only SSH signing algorithm the documentation mentions is ed25519. Items that rely only on symmetric algorithms and hashes include HS256, HS384 and HS512 JWT signing, which is an option in the same setting, and the SSH MAC settings. Confirm in your own deployment which JWT_SIGNING_ALGORITHM value is set, because the default changes the answer.
Two notes help scope this work. The Gitea config cheat sheet and signing documentation do not mention post-quantum algorithms, and the feature request in issue #35502 notes that ProtonMail/go-crypto does not support them. Gitea's SSH key exchange defaults come from the Go x/crypto library, which lists mlkem768x25519-sha256 first in its default list, so the key exchange in use depends on the Go version and whether SSH_SERVER_KEY_EXCHANGES is set manually. The detail of which Gitea functions depend on these keys belongs on the sibling page covering that question.
How do you gather Gitea's cryptographic settings for an inventory?
This sequence records which Gitea version is running, which cryptographic settings it uses for SSH, HTTPS, OAuth2, signing, webhooks and mail, and which key files and libraries sit underneath. The result is an inventory you can check against the vendor's documentation and your own deployment.
Confirm the running Gitea version
Start by identifying the exact version in use, because the defaults and dependencies described in these pages apply to specific releases. For a binary install, run the gitea binary with the version flag. For a container, read the image tag and compare it with the release list on the Gitea releases page, which is the authoritative source for release numbers. As of 2026-12-04 the latest stable release listed on GitHub is v28.4.0, published 2026-11-15. Record the version and the image digest in your inventory, and mark it as the baseline for every later step.
Export the app.ini configuration file
Locate the live configuration file, usually app.ini in the custom directory of the Gitea installation, and copy it into your evidence folder. For containers, read it from the mounted volume or from the container's custom path. Keep a copy of the file as it is, and note any settings that override the defaults. The Gitea configuration cheat sheet lists every key and its default, so compare each value you find against that page. Mark any setting that is absent from the file as using its default, since Gitea reads defaults when a key is not written.
Read the cryptographic sections of app.ini
Within the exported file, read the [server], [ssh], [oauth2], [repository.signing], [webhook] and [mailer] sections. In [server], check PROTOCOL, CERT_FILE, KEY_FILE, ENABLE_ACME, SSL_MIN_VERSION, SSL_MAX_VERSION, SSL_CURVE_PREFERENCES and SSL_CIPHER_SUITES. In [ssh], check the built-in SSH server settings, including SSH_SERVER_KEY_EXCHANGES, SSH_SERVER_CIPHERS, SSH_SERVER_MACS and SSH_SERVER_HOST_KEYS. In [oauth2], check JWT_SIGNING_ALGORITHM. In [repository.signing], check SIGNING_FORMAT and SIGNING_KEY. In [webhook], check SKIP_TLS_VERIFY, and in [mailer], check FORCE_TRUST_SERVER_CERT. Record each value next to its documented default in the cheat sheet.
List the certificate, key and host key files
On disk, list the files that hold keys for HTTPS, JWT signing and SSH, using the paths from your configuration. Check the HTTPS certificate and key named by CERT_FILE and KEY_FILE, which default to https/cert.pem and https/key.pem, and note whether ENABLE_ACME is set, since that makes those two files unused. List the JWT private key at jwt/private.pem and the SSH host key files, which Gitea names gitea.rsa, gitea.ecdsa and gitea.ed25519 when it generates them. Record each file's path, owner, permissions and modification date, and confirm the key type with a tool such as openssl or ssh-keygen. Do not copy private keys into the inventory document.
Identify the SSH server implementation in use
Determine whether Gitea runs its built-in SSH server or relies on the system OpenSSH server, because the SSH_SERVER_* settings have no effect in the second case. Inspect the image or host for a running sshd process, and check the deployment for a container or service that handles port 22. For the rootful Docker image, the Gitea issue tracker records that it uses the OpenSSH server on an Alpine base, so confirm the OpenSSH version inside the image with the appropriate version command. Record which server handles SSH, its version, and where its key exchange settings live.
Check the Go and x/crypto versions at the deployed tag
Open the go.mod file at the tag you deployed, using the Gitea repository on GitHub, and record the Go version, the toolchain and the golang.org/x/crypto version. At tag v28.4.0, go.mod declares go 1.27, toolchain go1.27.4 and golang.org/x/crypto v0.58.0. Also record the crypto-related dependencies it lists, including ProtonMail/go-crypto, golang-jwt/jwt/v5, go-webauthn/webauthn and cloudflare/circl. If you run a custom build, read the go.mod in your own source tree instead. The dependency versions determine which algorithms the binary can negotiate, so this record is what you compare against vendor statements later.
Ask the vendor about items the configuration cannot show
Some items do not appear in the configuration or on disk, such as the algorithms that the compiled binary actually negotiates, the effect of the GODEBUG setting tlsmlkem, and the signing algorithms accepted by the OpenPGP library. Write these as questions for the Gitea project or your support provider, and record each answer with its date and version. Note that the cheat sheet and signing documentation contained no mention of post-quantum algorithms when checked on 2026-12-04, and that the feature request in issue #35502 had no maintainer reply at that time. Keep these unresolved items in a separate section of the inventory so reviewers can see what is confirmed and what is still open.
Where Gitea's cryptographic paths sit in client, SSH and signing traffic
The diagram starts with Git users and browsers. HTTPS traffic enters the TLS listener when PROTOCOL is set to https, and certificates come from CERT_FILE and KEY_FILE or from ACME when ENABLE_ACME is on. SSH traffic goes to the built-in SSH server, which uses the [server] SSH_SERVER_* settings and host keys unless the system OpenSSH server is used. Commit signatures are checked against keys in the Gitea database or TRUSTED_SSH_KEYS, and OAuth2 tokens are signed with the JWT key. Outbound webhook and mailer connections each carry their own trust setting, SKIP_TLS_VERIFY and FORCE_TRUST_SERVER_CERT, and both default to false. Check each setting against your own configuration.
Client traffic, built-in SSH, JWT signing, commit signing and outbound connections in Gitea.
What do engineers and vendor-risk reviewers ask about Gitea's cryptographic inventory?
Is Gitea quantum safe?
The sources in this inventory do not support calling Gitea quantum safe. The Gitea config cheat sheet and the signing documentation, both checked on 2026-12-04, contain no mention of post-quantum, ML-KEM, ML-DSA or SLH-DSA. Some post-quantum key exchange is present in the code path: Pull request #34667, merged on 2025-06-09, states that Go's x/crypto provides a post-quantum key exchange by default, and in x/crypto the mlkem768x25519-sha256 algorithm is the first default. That default applies to the built-in SSH server and depends on the Go and x/crypto versions in the build. Confirm the behavior in your own build and do not record the whole product as quantum safe on this basis.
Which Gitea version should we record in the inventory?
Record the exact version you run, along with the build type, because the SSH behavior differs by image. As of 2026-12-04 the latest stable release marked Latest on GitHub is v28.4.0, published on 2026-11-15, and its go.mod declares go 1.27 with golang.org/x/crypto v0.58.0. Issue #35653 shows that the rootless image with the built-in Go SSH server and the rootful Docker image, which uses OpenSSH, behave differently, and the rootful image was based on an Alpine release shipping OpenSSH 10.3 when the issue closed on 2026-08-03. Record the image tag, the SSH mode (built-in or system OpenSSH) and the Go toolchain in use, along with the Gitea version.
Does gathering the Gitea cryptographic inventory cost extra?
The sources do not state a price or effort figure for this work, so ask for one in writing. The cost drivers are the number of Gitea instances, whether each runs the built-in SSH server or the system OpenSSH, whether HTTPS terminates in Gitea or at a proxy, and how many webhook, mailer and signing settings are in use. Most of the work is reading configuration and checking the running build, which the operations team can do in-house. Ask the vendor or service provider to separate a one-time inventory from any recurring review, and to state what is included in the quote.
What can a Gitea cryptographic inventory not show?
An inventory shows what the configuration and source say, not what a running instance negotiates on the wire. The Gitea SSH settings are blank by default, and the documentation lists defaults that the source does not set, so the effective key exchange has to be checked on a live server. The inventory also cannot show the cryptography in the Go runtime and dependencies unless you record those versions, or the behavior of a reverse proxy or external certificate authority that terminates TLS. The sources list no post-quantum entries for the signing and webhook features, so the inventory cannot confirm support there. Pair the inventory with live testing and record the gaps.
What should we ask Gitea or its vendor about post-quantum support?
Ask whether a release or setting supports post-quantum algorithms in each of the four areas: the built-in SSH server, TLS for HTTPS, commit signing and JWT signing. For SSH, ask which key exchange algorithms are active by default in each image, and whether the documentation will be updated to list them, since the cheat sheet does not yet show a mlkem entry. For signing, ask about the status of the feature request in issue #35502, opened on 2025-09-16, which says the OpenPGP library ProtonMail/go-crypto does not support post-quantum algorithms and remained open with no maintainer reply when checked. Ask for dated written answers that name the version and component.
Can our team build the Gitea inventory itself or do we need outside help?
Your own engineers can build the inventory if they have access to the configuration files, the running builds and the dependency manifests. The work is a structured review of the [server] settings, the built-in SSH settings, the [repository.signing] and [oauth2] settings, webhook and mailer TLS settings, and the Go and x/crypto versions. Outside help is useful when a reviewer needs live testing of the negotiated SSH and TLS parameters, an independent check of the findings, or a repeatable process across many instances. DeployOpen can plan, run and document this kind of review as a fixed-scope engagement with written deliverables, and the scope and timeline are agreed before work starts.
Which official pages can a reader check each Gitea claim against?
Every statement in this section can be checked against four official places, and the reader should check them on the day they run the inventory. Start with the Gitea config cheat sheet at docs.gitea.com configuration reference, which lists the [server], [ssh.minimum_key_sizes], [oauth2], [webhook] and [mailer] settings, their defaults and the TLS and SSH options discussed above. Use the Gitea signing documentation for commit signing under [repository.signing], including the formats it supports and how it checks keys. The Gitea releases page shows which version is marked Latest and what each release changed, such as the entry that moved TLS settings to Go's defaults. Confirm the version your instance runs before you trust any default, because the cheat sheet and release notes change between versions.
The source files on the main branch are the most direct check on what Gitea does at runtime, but they describe the development line, not your release. The SSH settings file in modules/setting/ssh.go shows that unset key exchange, cipher and MAC lists stay nil in Gitea's code, which is why the documented defaults can differ from what the server negotiates. Compare the go.mod file for your tag with the one on main to see which Go toolchain and golang.org/x/crypto version your build uses. For the post-quantum key exchange itself, read the Go 1.24 release notes, which describe X25519MLKEM768 in crypto/tls and the tlsmlkem=0 setting, and the x/crypto ssh common.go source, which shows the default key exchange list and that mlkem768x25519-sha256 requires Go 1.24 or later.
Treat these pages as the evidence trail for your inventory record: note the URL, the version and the date you checked each one. Where the cheat sheet and the source disagree, or where a page says nothing about a point, record that gap and confirm it with the Gitea project or in your own test environment before you rely on it. The sources listed here do not say whether a future Gitea release will add ML-KEM to the documented SSH key exchange defaults, so that question belongs on your vendor follow-up list rather than in your inventory as a settled fact.
How DeployOpen works on this
DeployOpen builds a cryptographic inventory of a Gitea deployment by mapping each public-key use to the setting, binary or dependency that controls it. The work covers the built-in SSH server, HTTPS, webhooks and commit signing, and ends with a written record your security and compliance teams can review and keep current.
How we scope
- Confirm the Gitea version in use, since the release on GitHub marked Latest as of 2026-12-04 is v28.4.0.
- Record whether SSH is served by Gitea's built-in server or the system OpenSSH server, because the SSH_SERVER_* settings have no effect under OpenSSH.
- Agree the written scope in advance, covering which [server], [ssh], [oauth2], [repository.signing] and webhook settings are inventoried.
How we build
- Trace TLS termination, whether Gitea serves TLS itself with PROTOCOL=https or sits behind a proxy, and record the certificate and key sources.
- Read the effective SSH key exchange, cipher, MAC and host key settings, and check the Go and x/crypto versions the build uses.
- Document the OAuth2 JWT signing algorithm, commit signing format and key sources, and the webhook and mailer TLS verification settings.
How we hand over
- Deliver an inventory listing each public-key use, its setting or dependency, its version and the source you used to confirm it.
- Flag items the sources do not cover, such as post-quantum support for OpenPGP commit signing, and list what to confirm with Gitea directly.
- Provide a dated record and a retest plan so the inventory can be refreshed when Gitea, Go or the proxy changes.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer to keep the inventory accurate between reviews.
- A quote follows from the written scope, and DeployOpen does not publish a price list.

