Serge Bazanski | f0b4da5 | 2021-06-21 20:05:59 +0200 | [diff] [blame] | 1 | package curator |
| 2 | |
| 3 | import ( |
Serge Bazanski | 3379a5d | 2021-09-09 12:56:40 +0200 | [diff] [blame] | 4 | "source.monogon.dev/metropolis/node/core/identity" |
Serge Bazanski | f0b4da5 | 2021-06-21 20:05:59 +0200 | [diff] [blame] | 5 | "source.monogon.dev/metropolis/pkg/pki" |
| 6 | ) |
| 7 | |
| 8 | var ( |
| 9 | // pkiNamespace is the etcd/pki namespace in which the Metropolis cluster CA |
| 10 | // data will live. |
| 11 | pkiNamespace = pki.Namespaced("/cluster-pki/") |
| 12 | // pkiCA is the main cluster CA, stored in etcd. It is used to emit cluster, |
| 13 | // node and user certificates. |
Serge Bazanski | 5253884 | 2021-08-11 16:22:41 +0200 | [diff] [blame] | 14 | pkiCA = &pki.Certificate{ |
| 15 | Namespace: &pkiNamespace, |
| 16 | Issuer: pki.SelfSigned, |
Serge Bazanski | 3379a5d | 2021-09-09 12:56:40 +0200 | [diff] [blame] | 17 | Template: identity.CACertificate("Metropolis Cluster CA"), |
Serge Bazanski | 5253884 | 2021-08-11 16:22:41 +0200 | [diff] [blame] | 18 | Name: "cluster-ca", |
| 19 | } |
Serge Bazanski | f0b4da5 | 2021-06-21 20:05:59 +0200 | [diff] [blame] | 20 | ) |