Replace sanitized username with google pattern service account usernames

pull/1558/head
adantop 4 weeks ago
parent 0a43b55d53
commit 3ab951f963
No known key found for this signature in database
GPG Key ID: 0026BC0BA1D40CC2

@ -482,7 +482,7 @@ func (p *GCP) genHostOptions(_ context.Context, claims *gcpPayload) (SignSSHOpti
func (p *GCP) genUserOptions(_ context.Context, claims *gcpPayload) (SignSSHOptions, string, []string, sshutil.CertType, string) {
keyID := claims.Email
principals := []string{
SanitizeSSHUserPrincipal(claims.Email),
fmt.Sprintf("sa_%v", claims.Subject),
claims.Email,
}

Loading…
Cancel
Save