with-ssh-and-acme.yml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # Helm template
  2. inject:
  3. enabled: true
  4. # Config contains the configuration files ca.json and defaults.json
  5. config:
  6. files:
  7. ca.json:
  8. root: /home/step/certs/root_ca.crt
  9. federateRoots: []
  10. crt: /home/step/certs/intermediate_ca.crt
  11. key: /home/step/secrets/intermediate_ca_key
  12. ssh:
  13. hostKey: /home/step/secrets/ssh_host_ca_key
  14. userKey: /home/step/secrets/ssh_user_ca_key
  15. address: 127.0.0.1:9000
  16. dnsNames:
  17. - 127.0.0.1
  18. logger:
  19. format: json
  20. db:
  21. type: badgerv2
  22. dataSource: /home/step/db
  23. authority:
  24. enableAdmin: false
  25. provisioners:
  26. - {"type":"JWK","name":"step-cli","key":{"use":"sig","kty":"EC","kid":"zsUmysmDVoGJ71YoPHyZ-68tNihDaDaO5Mu7xX3M-_I","crv":"P-256","alg":"ES256","x":"Pqnua4CzqKz6ua41J3yeWZ1sRkGt0UlCkbHv8H2DGuY","y":"UhoZ_2ItDen9KQTcjay-ph-SBXH0mwqhHyvrrqIFDOI"},"encryptedKey":"eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjdHkiOiJqd2sranNvbiIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjEwMDAwMCwicDJzIjoiZjVvdGVRS2hvOXl4MmQtSGlMZi05QSJ9.eYA6tt3fNuUpoxKWDT7P0Lbn2juxhEbTxEnwEMbjlYLLQ3sxL-dYTA.ven-FhmdjlC9itH0.a2jRTarN9vPd6F_mWnNBlOn6KbfMjCApmci2t65XbAsLzYFzhI_79Ykm5ueMYTupWLTjBJctl-g51ZHmsSB55pStbpoyyLNAsUX2E1fTmHe-Ni8bRrspwLv15FoN1Xo1g0mpR-ufWIFxOsW-QIfnMmMIIkygVuHFXmg2tFpzTNNG5aS29K3dN2nyk0WJrdIq79hZSTqVkkBU25Yu3A46sgjcM86XcIJJ2XUEih_KWEa6T1YrkixGu96pebjVqbO0R6dbDckfPF7FqNnwPHVtb1ACFpEYoOJVIbUCMaARBpWsxYhjJZlEM__XA46l8snFQDkNY3CdN0p1_gF3ckA.JLmq9nmu1h9oUi1S8ZxYjA","claims":{"enableSSHCA":true,"disableRenewal":false,"allowRenewalAfterExpiry":false,"disableSmallstepExtensions":false},"options":{"x509":{},"ssh":{}}}
  27. - {"type":"ACME","name":"acme"}
  28. - {"type":"SSHPOP","name":"sshpop","claims":{"enableSSHCA":true}}
  29. tls:
  30. cipherSuites:
  31. - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
  32. - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
  33. minVersion: 1.2
  34. maxVersion: 1.3
  35. renegotiation: false
  36. defaults.json:
  37. ca-url: https://127.0.0.1
  38. ca-config: /home/step/config/ca.json
  39. fingerprint: e543cad8e9f6417076bb5aed3471c588152118aac1e0ca7984a43ee7f76da5e3
  40. root: /home/step/certs/root_ca.crt
  41. # Certificates contains the root and intermediate certificate and
  42. # optionally the SSH host and user public keys
  43. certificates:
  44. # intermediate_ca contains the text of the intermediate CA Certificate
  45. intermediate_ca: |
  46. -----BEGIN CERTIFICATE-----
  47. dGhlc2UgYXJlIGp1c3Qgc29tZSBmYWtlIGludGVybWVkaWF0ZSBDQSBjZXJ0IGJ5
  48. dGVz
  49. -----END CERTIFICATE-----
  50. # root_ca contains the text of the root CA Certificate
  51. root_ca: |
  52. -----BEGIN CERTIFICATE-----
  53. dGhlc2UgYXJlIGp1c3Qgc29tZSBmYWtlIHJvb3QgQ0EgY2VydCBieXRlcw==
  54. -----END CERTIFICATE-----
  55. # ssh_host_ca contains the text of the public ssh key for the SSH root CA
  56. ssh_host_ca: ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJ0IdS5sZm6KITBMZLEJD6b5ROVraYHcAOr3feFel8r1Wp4DRPR1oU0W00J/zjNBRBbANlJoYN4x/8WNNVZ49Ms=
  57. # ssh_user_ca contains the text of the public ssh key for the SSH root CA
  58. ssh_user_ca: ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEWA1qUxaGwVNErsvEOGe2d6TvLMF+aiVpuOiIEvpMJ3JeJmecLQctjWqeIbpSvy6/gRa7c82Ge5rLlapYmOChs=
  59. # Secrets contains the root and intermediate keys and optionally the SSH
  60. # private keys
  61. secrets:
  62. # ca_password contains the password used to encrypt x509.intermediate_ca_key, ssh.host_ca_key and ssh.user_ca_key
  63. # This value must be base64 encoded.
  64. ca_password:
  65. provisioner_password:
  66. x509:
  67. # intermediate_ca_key contains the contents of your encrypted intermediate CA key
  68. intermediate_ca_key: |
  69. -----BEGIN EC PRIVATE KEY-----
  70. dGhlc2UgYXJlIGp1c3Qgc29tZSBmYWtlIGludGVybWVkaWF0ZSBDQSBrZXkgYnl0
  71. ZXM=
  72. -----END EC PRIVATE KEY-----
  73. # root_ca_key contains the contents of your encrypted root CA key
  74. # Note that this value can be omitted without impacting the functionality of step-certificates
  75. # If supplied, this should be encrypted using a unique password that is not used for encrypting
  76. # the intermediate_ca_key, ssh.host_ca_key or ssh.user_ca_key.
  77. root_ca_key: |
  78. -----BEGIN EC PRIVATE KEY-----
  79. dGhlc2UgYXJlIGp1c3Qgc29tZSBmYWtlIHJvb3QgQ0Ega2V5IGJ5dGVz
  80. -----END EC PRIVATE KEY-----
  81. ssh:
  82. # ssh_host_ca_key contains the contents of your encrypted SSH Host CA key
  83. host_ca_key: |
  84. -----BEGIN EC PRIVATE KEY-----
  85. ZmFrZSBzc2ggaG9zdCBrZXkgYnl0ZXM=
  86. -----END EC PRIVATE KEY-----
  87. # ssh_user_ca_key contains the contents of your encrypted SSH User CA key
  88. user_ca_key: |
  89. -----BEGIN EC PRIVATE KEY-----
  90. ZmFrZSBzc2ggdXNlciBrZXkgYnl0ZXM=
  91. -----END EC PRIVATE KEY-----