forked from networkservicemesh/deployments-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.conf
65 lines (63 loc) · 1.79 KB
/
server.conf
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
server {
bind_address = "0.0.0.0"
bind_port = "8081"
trust_domain = "nsm.cluster1"
data_dir = "/run/spire/data"
log_level = "DEBUG"
#AWS requires the use of RSA. EC cryptography is not supported
ca_key_type = "rsa-2048"
default_x509_svid_ttl = "1h"
default_jwt_svid_ttl = "1h"
ca_subject = {
country = ["US"],
organization = ["SPIFFE"],
common_name = "",
}
federation {
bundle_endpoint {
address = "0.0.0.0"
port = 8443
}
federates_with "nsm.cluster2" {
bundle_endpoint_url = "https://spire-server.spire.my.cluster2:8443"
bundle_endpoint_profile "https_spiffe" {
endpoint_spiffe_id = "spiffe://nsm.cluster2/spire/server"
}
}
federates_with "nsm.cluster3" {
bundle_endpoint_url = "https://spire-server.spire.my.cluster3:8443"
bundle_endpoint_profile "https_spiffe" {
endpoint_spiffe_id = "spiffe://nsm.cluster3/spire/server"
}
}
}
}
plugins {
DataStore "sql" {
plugin_data {
database_type = "sqlite3"
connection_string = "/run/spire/data/datastore.sqlite3"
}
}
NodeAttestor "k8s_psat" {
plugin_data {
clusters = {
# NOTE: Change this to your cluster name
"nsm.cluster1" = {
use_token_review_api_validation = true
service_account_allow_list = ["spire:spire-agent"]
}
}
}
}
KeyManager "disk" {
plugin_data {
keys_path = "/run/spire/data/keys.json"
}
}
Notifier "k8sbundle" {
plugin_data {
webhook_label = "spiffe.io/webhook"
}
}
}