forgejo/models/asymkey
Gusted df5d656827 feat: consider WebAuthn & SSH for instance signing (#7693)
- Currently the options `pubkey` and `twofa` only consider TOTP and GPG keys respectively. Adjust the code to also consider WebAuthn credentials and SSH keys.
- While adding the new unified functions I noticed that certain places also benefited from using these unified functions and took the liberty (where it was either a trivial translation or it was covered under testing) to use the new unified functions.
- Resolves forgejo/forgejo#7658
- Adds unit and integration tests.

Documentation PR: https://codeberg.org/forgejo/docs/pulls/1166

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7693
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-04-29 10:34:07 +00:00
..
asymkey.go feat: consider WebAuthn & SSH for instance signing (#7693) 2025-04-29 10:34:07 +00:00
asymkey_test.go feat: consider WebAuthn & SSH for instance signing (#7693) 2025-04-29 10:34:07 +00:00
error.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gpg_key.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gpg_key_add.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gpg_key_commit_verification.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gpg_key_common.go Fix linting issues 2024-08-18 16:25:13 +02:00
gpg_key_import.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gpg_key_list.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gpg_key_object_verification.go feat(sec): Add SSH signing support for instances (#6897) 2025-04-11 13:25:35 +00:00
gpg_key_tag_verification.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gpg_key_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
gpg_key_verify.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
ssh_key.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
ssh_key_authorized_keys.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
ssh_key_authorized_principals.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
ssh_key_deploy.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
ssh_key_fingerprint.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
ssh_key_object_verification.go feat(sec): Add SSH signing support for instances (#6897) 2025-04-11 13:25:35 +00:00
ssh_key_object_verification_test.go feat(sec): Add SSH signing support for instances (#6897) 2025-04-11 13:25:35 +00:00
ssh_key_parse.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
ssh_key_principals.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
ssh_key_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
ssh_key_verify.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00