mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 08:34:30 +01:00 
			
		
		
		
	* Signed SSH commits can look in the UI like on GitHub, just like gpg keys today in Gitea * SSH format can be added in gitea config * SSH Signing worked before with DEFAULT_TRUST_MODEL=committer `TRUSTED_SSH_KEYS` can be a list of additional ssh public key contents to trust for every user of this instance Closes #34329 Related #31392 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			378 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			378 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright 2025 The Gitea Authors. All rights reserved.
 | 
						|
// SPDX-License-Identifier: MIT
 | 
						|
 | 
						|
package git
 | 
						|
 | 
						|
// Based on https://git-scm.com/docs/git-config#Documentation/git-config.txt-gpgformat
 | 
						|
const (
 | 
						|
	SigningKeyFormatOpenPGP = "openpgp" // for GPG keys, the expected default of git cli
 | 
						|
	SigningKeyFormatSSH     = "ssh"
 | 
						|
)
 | 
						|
 | 
						|
type SigningKey struct {
 | 
						|
	KeyID  string
 | 
						|
	Format string
 | 
						|
}
 |