Describe session auth as SSH and VNC, cover the conflicting key path, fix de and ru wording

This commit is contained in:
Viktor Liu
2026-08-27 21:08:20 +02:00
parent 1e923ccb31
commit ee05fb33de
4 changed files with 51 additions and 7 deletions
+5 -3
View File
@@ -27,7 +27,9 @@ var (
ErrSessionKeyNotKnown = errors.New("session pubkey not registered")
)
// Authorizer handles SSH fine-grained access control authorization
// Authorizer handles fine-grained access control authorization for the
// remote-access servers: SSH by hashed user identity and OS login name, VNC by
// the session public key management issued for a temporary-access grant.
type Authorizer struct {
// UserIDClaim is the JWT claim to extract the user ID from
userIDClaim string
@@ -53,7 +55,7 @@ type Authorizer struct {
mu sync.RWMutex
}
// Config contains configuration for the SSH authorizer
// Config contains configuration for the session authorizer
type Config struct {
// UserIDClaim is the JWT claim to extract the user ID from (e.g., "sub", "email")
UserIDClaim string
@@ -80,7 +82,7 @@ type SessionPubKey struct {
DisplayName string
}
// NewAuthorizer creates a new SSH authorizer with empty configuration
// NewAuthorizer creates a new session authorizer with empty configuration
func NewAuthorizer() *Authorizer {
a := &Authorizer{
userIDClaim: DefaultUserIDClaim,