jwk-template-v2-external-secret.yaml 597 B

12345678910111213141516171819202122232425
  1. {% raw %}
  2. apiVersion: external-secrets.io/v1
  3. kind: ExternalSecret
  4. metadata:
  5. name: template
  6. spec:
  7. # ...
  8. target:
  9. template:
  10. engineVersion: v2
  11. data:
  12. # .myjwk is a json-encoded JWK string.
  13. #
  14. # this template will produce for jwk_pub a PEM encoded public key:
  15. # -----BEGIN PUBLIC KEY-----
  16. # MIIBI...
  17. # ...
  18. # ...AQAB
  19. # -----END PUBLIC KEY-----
  20. jwk_pub: "{{ .myjwk | jwkPublicKeyPem }}"
  21. # private key is a pem-encoded PKCS#8 private key
  22. jwk_priv: "{{ .myjwk | jwkPrivateKeyPem }}"
  23. {% endraw %}