1syntax = "proto3";
2
3package config;
4
5option go_package = "github.com/hashicorp/consul/proto/pbconfig";
6
7message Config {
8   string      Datacenter = 1;
9   string      PrimaryDatacenter = 2;
10   string      NodeName = 3;
11   string      SegmentName = 4;
12   ACL         ACL = 5;
13   AutoEncrypt AutoEncrypt = 6;
14   Gossip      Gossip = 7;
15   TLS         TLS = 8;
16}
17
18message Gossip {
19   GossipEncryption Encryption = 1;
20   repeated string  RetryJoinLAN = 2;
21}
22
23message GossipEncryption {
24   string Key = 1;
25   bool   VerifyIncoming = 2;
26   bool   VerifyOutgoing = 3;
27}
28
29message TLS {
30   bool   VerifyOutgoing = 1;
31   bool   VerifyServerHostname = 2;
32   string CipherSuites = 3;
33   string MinVersion = 4;
34   bool   PreferServerCipherSuites = 5;
35}
36
37message ACL {
38   bool      Enabled = 1;
39   string    PolicyTTL = 2;
40   string    RoleTTL = 3;
41   string    TokenTTL = 4;
42   string    DownPolicy = 5;
43   string    DefaultPolicy = 6;
44   bool      EnableKeyListPolicy = 7;
45   ACLTokens Tokens = 8;
46   string    DisabledTTL = 9;
47   bool      EnableTokenPersistence = 10;
48   bool      MSPDisableBootstrap = 11;
49}
50
51message ACLTokens {
52   string   Master = 1;
53   string   Replication = 2;
54   string   AgentMaster = 3;
55   string   Default = 4;
56   string   Agent = 5;
57   repeated ACLServiceProviderToken ManagedServiceProvider = 6;
58}
59
60message ACLServiceProviderToken {
61   string AccessorID = 1;
62   string SecretID = 2;
63}
64
65message AutoEncrypt {
66   bool            TLS = 1;
67   repeated string DNSSAN = 2;
68   repeated string IPSAN = 3;
69   bool            AllowTLS = 4;
70}