gitea/services/asymkey
LyricWulf da5ce5c8e7
Some checks are pending
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Instance signing rule pubkey should allow all public keys, not just GPG (#35357)
Instance signing rule `pubkey` is described as "Only sign if the user
has a public key", however if the user only has SSH public keys, this
check will fail, as it only checks for GPG keys.

Changed the `pubkey` checks to call a helper `userHasPubkeys` which
sequentially checks for GPG, then SSH keys.

Related #34341

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-08-26 15:06:37 -07:00
..
commit_test.go Fix user's sign email check (#35045) 2025-07-12 15:13:01 +08:00
commit.go Fix user's sign email check (#35045) 2025-07-12 15:13:01 +08:00
deploy_key.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
main_test.go Move delete deploy keys into service layer (#32201) 2024-12-18 04:10:38 +00:00
sign_test.go Instance signing rule pubkey should allow all public keys, not just GPG (#35357) 2025-08-26 15:06:37 -07:00
sign.go Instance signing rule pubkey should allow all public keys, not just GPG (#35357) 2025-08-26 15:06:37 -07:00
ssh_key_authorized_keys.go Move some asymkey functions to service layer (#28894) 2024-03-04 08:57:39 +00:00
ssh_key_authorized_principals.go Fix some pending problems (#29985) 2024-03-22 19:17:30 +08:00
ssh_key_principals.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
ssh_key_test.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
ssh_key.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00