grafeas / kritis

Deploy-time Policy Enforcer for Kubernetes applications
https://github.com/grafeas/kritis/blob/master/docs/binary-authorization.md
Apache License 2.0
696 stars 133 forks source link

Generate keyID automatically for PKIX and JWT keys #541

Open acamadeo opened 4 years ago

acamadeo commented 4 years ago

For PKIX and JWT keys, generate the key id automatically in NewPublicKey() whenever keyID is left blank. The generated ID should be based on the DER encoding of the public key.

Reference: https://cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.attestors#attestorpublickey