-
Notifications
You must be signed in to change notification settings - Fork 11
/
constants.go
31 lines (29 loc) · 1010 Bytes
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
Copyright (C) 2021-2023, Kubefirst
This program is licensed under MIT.
See the LICENSE file for more details.
*/
package vault
const (
// Rate at which to check for Vault health
checkInterval int = 10
// Vault API endpoints
vaultHealthEndpoint string = "/v1/sys/health"
vaultInitEndpoint string = "/v1/sys/init"
vaultRaftEndpoint string = "/sys/storage/raft"
vaultUnsealEndpoint string = "/v1/sys/unseal"
// For raft, vault-0 will always be primary referenced by its endpoint
vaultRaftPrimaryAddress string = "http://vault-0.vault-internal"
// Name for the Secret that gets created that contains root auth data
VaultSecretName string = "vault-unseal-secret"
// Namespace that Vault runs in
VaultNamespace string = "vault"
// number of recovery shares for Vault unseal
RecoveryShares int = 5
// number of recovery keys for Vault
RecoveryThreshold int = 3
// number of secret shares for Vault unseal
SecretShares = 5
// number of secret threshold Vault unseal
SecretThreshold = 3
)