kubernetes/kops · error
error fingerprinting SSH public key: %v
Error message
error fingerprinting SSH public key: %v
What it means
Error "error fingerprinting SSH public key: %v" thrown in kubernetes/kops.
Source
Thrown at upup/pkg/fi/vfs_castore.go:290
if keyset.Items[primaryId].Certificate == nil {
return fmt.Errorf("keyset's primary id %q must have a certificate", primaryId)
}
{
p := c.buildPrivateKeyPoolPath(name)
if err := writeKeysetBundle(ctx, c.cluster, p, name, keyset); err != nil {
return fmt.Errorf("writing private bundle: %v", err)
}
}
return nil
}
// AddSSHPublicKey stores an SSH public key
func (c *VFSCAStore) AddSSHPublicKey(ctx context.Context, pubkey []byte) error {
id, err := sshcredentials.Fingerprint(strings.TrimSpace(string(pubkey)))
if err != nil {
return fmt.Errorf("error fingerprinting SSH public key: %v", err)
}
p := c.buildSSHPublicKeyPath(id)
acl, err := acls.GetACL(ctx, p, c.cluster)
if err != nil {
return err
}
return p.WriteFile(ctx, bytes.NewReader(pubkey), acl)
}
func (c *VFSCAStore) buildSSHPublicKeyPath(id string) vfs.Path {
// id is fingerprint with colons, but we store without colons
id = strings.ReplaceAll(id, ":", "")
return c.basedir.Join("ssh", "public", "admin", id)
}
View on GitHub (pinned to 4c8573c808)
When it happens
Trigger: Thrown at upup/pkg/fi/vfs_castore.go:290 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/a379bf743a3fa943.
Report an issue: GitHub.