diff --git a/agent/auto-config/config_translate.go b/agent/auto-config/config_translate.go index 58721e0212..0c8939c557 100644 --- a/agent/auto-config/config_translate.go +++ b/agent/auto-config/config_translate.go @@ -65,14 +65,12 @@ func translateConfig(c *pbconfig.Config) config.Config { } result.ACL.Tokens = config.Tokens{ + InitialManagement: stringPtrOrNil(t.InitialManagement), + AgentRecovery: stringPtrOrNil(t.AgentRecovery), Replication: stringPtrOrNil(t.Replication), Default: stringPtrOrNil(t.Default), Agent: stringPtrOrNil(t.Agent), ManagedServiceProvider: tokens, - DeprecatedTokens: config.DeprecatedTokens{ - Master: stringPtrOrNil(t.Master), - AgentMaster: stringPtrOrNil(t.AgentMaster), - }, } } } diff --git a/agent/auto-config/config_translate_test.go b/agent/auto-config/config_translate_test.go index b306778d2b..c70ae20871 100644 --- a/agent/auto-config/config_translate_test.go +++ b/agent/auto-config/config_translate_test.go @@ -69,11 +69,11 @@ func TestTranslateConfig(t *testing.T) { EnableTokenPersistence: true, MSPDisableBootstrap: false, Tokens: &pbconfig.ACLTokens{ - Master: "99e7e490-6baf-43fc-9010-78b6aa9a6813", - Replication: "51308d40-465c-4ac6-a636-7c0747edec89", - AgentMaster: "e012e1ea-78a2-41cc-bc8b-231a44196f39", - Default: "8781a3f5-de46-4b45-83e1-c92f4cfd0332", - Agent: "ddb8f1b0-8a99-4032-b601-87926bce244e", + InitialManagement: "99e7e490-6baf-43fc-9010-78b6aa9a6813", + Replication: "51308d40-465c-4ac6-a636-7c0747edec89", + AgentRecovery: "e012e1ea-78a2-41cc-bc8b-231a44196f39", + Default: "8781a3f5-de46-4b45-83e1-c92f4cfd0332", + Agent: "ddb8f1b0-8a99-4032-b601-87926bce244e", ManagedServiceProvider: []*pbconfig.ACLServiceProviderToken{ { AccessorID: "23f37987-7b9e-4e5b-acae-dbc9bc137bae", @@ -129,19 +129,17 @@ func TestTranslateConfig(t *testing.T) { EnableKeyListPolicy: boolPointer(true), EnableTokenPersistence: boolPointer(true), Tokens: config.Tokens{ - Replication: stringPointer("51308d40-465c-4ac6-a636-7c0747edec89"), - Default: stringPointer("8781a3f5-de46-4b45-83e1-c92f4cfd0332"), - Agent: stringPointer("ddb8f1b0-8a99-4032-b601-87926bce244e"), + InitialManagement: stringPointer("99e7e490-6baf-43fc-9010-78b6aa9a6813"), + AgentRecovery: stringPointer("e012e1ea-78a2-41cc-bc8b-231a44196f39"), + Replication: stringPointer("51308d40-465c-4ac6-a636-7c0747edec89"), + Default: stringPointer("8781a3f5-de46-4b45-83e1-c92f4cfd0332"), + Agent: stringPointer("ddb8f1b0-8a99-4032-b601-87926bce244e"), ManagedServiceProvider: []config.ServiceProviderToken{ { AccessorID: stringPointer("23f37987-7b9e-4e5b-acae-dbc9bc137bae"), SecretID: stringPointer("e28b820a-438e-4e2b-ad24-fe59e6a4914f"), }, }, - DeprecatedTokens: config.DeprecatedTokens{ - Master: stringPointer("99e7e490-6baf-43fc-9010-78b6aa9a6813"), - AgentMaster: stringPointer("e012e1ea-78a2-41cc-bc8b-231a44196f39"), - }, }, }, AutoEncrypt: config.AutoEncrypt{ diff --git a/proto/pbconfig/config.pb.go b/proto/pbconfig/config.pb.go index 901e147ded..458fc54822 100644 --- a/proto/pbconfig/config.pb.go +++ b/proto/pbconfig/config.pb.go @@ -461,9 +461,9 @@ func (m *ACL) GetMSPDisableBootstrap() bool { } type ACLTokens struct { - Master string `protobuf:"bytes,1,opt,name=Master,proto3" json:"Master,omitempty"` + InitialManagement string `protobuf:"bytes,1,opt,name=InitialManagement,proto3" json:"InitialManagement,omitempty"` Replication string `protobuf:"bytes,2,opt,name=Replication,proto3" json:"Replication,omitempty"` - AgentMaster string `protobuf:"bytes,3,opt,name=AgentMaster,proto3" json:"AgentMaster,omitempty"` + AgentRecovery string `protobuf:"bytes,3,opt,name=AgentRecovery,proto3" json:"AgentRecovery,omitempty"` Default string `protobuf:"bytes,4,opt,name=Default,proto3" json:"Default,omitempty"` Agent string `protobuf:"bytes,5,opt,name=Agent,proto3" json:"Agent,omitempty"` ManagedServiceProvider []*ACLServiceProviderToken `protobuf:"bytes,6,rep,name=ManagedServiceProvider,proto3" json:"ManagedServiceProvider,omitempty"` @@ -505,9 +505,9 @@ func (m *ACLTokens) XXX_DiscardUnknown() { var xxx_messageInfo_ACLTokens proto.InternalMessageInfo -func (m *ACLTokens) GetMaster() string { +func (m *ACLTokens) GetInitialManagement() string { if m != nil { - return m.Master + return m.InitialManagement } return "" } @@ -519,9 +519,9 @@ func (m *ACLTokens) GetReplication() string { return "" } -func (m *ACLTokens) GetAgentMaster() string { +func (m *ACLTokens) GetAgentRecovery() string { if m != nil { - return m.AgentMaster + return m.AgentRecovery } return "" } @@ -687,58 +687,59 @@ func init() { func init() { proto.RegisterFile("proto/pbconfig/config.proto", fileDescriptor_aefa824db7b74d77) } var fileDescriptor_aefa824db7b74d77 = []byte{ - // 811 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x55, 0xdb, 0x8e, 0xe3, 0x44, - 0x10, 0xc5, 0xe3, 0x1d, 0xcf, 0xa4, 0x02, 0xab, 0xdd, 0xde, 0x25, 0x58, 0x5c, 0x42, 0x64, 0xa1, - 0xd5, 0x80, 0xd0, 0x0c, 0x1a, 0x04, 0x02, 0xc4, 0x4b, 0x26, 0x59, 0x41, 0xd8, 0x24, 0x44, 0x76, - 0x58, 0x24, 0x5e, 0x90, 0xe3, 0x54, 0x92, 0x16, 0x4e, 0xb7, 0xd5, 0xee, 0xec, 0x28, 0x7f, 0xc2, - 0xbf, 0xf0, 0x03, 0xbc, 0xc1, 0x27, 0xc0, 0xf0, 0x03, 0x7c, 0x02, 0xea, 0x8b, 0x6f, 0x43, 0xf2, - 0x94, 0xd4, 0x39, 0xa7, 0xab, 0xab, 0xba, 0x2e, 0x86, 0x77, 0x32, 0xc1, 0x25, 0xbf, 0xca, 0x16, - 0x09, 0x67, 0x2b, 0xba, 0xbe, 0x32, 0x3f, 0x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c, 0xf8, 0x2d, 0x33, 0x6e, 0x74, 0x8c, 0x6a, 0xfc, 0x4a, 0x84, 0x7c, 0x00, 0x6f, 0x0c, 0x71, - 0x15, 0xef, 0x52, 0x69, 0x25, 0x9e, 0x96, 0x34, 0x41, 0xf2, 0x09, 0x3c, 0x31, 0x41, 0xbe, 0xc0, - 0xfd, 0x98, 0xe6, 0x85, 0xf6, 0x4c, 0xc7, 0x7f, 0x88, 0x22, 0x1f, 0x82, 0xa7, 0x63, 0xc8, 0x6d, - 0x47, 0x3f, 0xae, 0xcd, 0x93, 0x21, 0x42, 0x2b, 0x20, 0x5f, 0x42, 0x67, 0x88, 0x99, 0xc0, 0x24, - 0x96, 0xb8, 0xfc, 0x79, 0x48, 0x73, 0xfd, 0x1a, 0x2a, 0x19, 0x3d, 0xa2, 0x37, 0x27, 0xbe, 0x13, - 0xbe, 0x59, 0x29, 0x6a, 0x02, 0xf2, 0x39, 0x74, 0xcc, 0xe5, 0xda, 0xd5, 0x4c, 0x55, 0x29, 0x97, - 0xc8, 0x12, 0xf4, 0x41, 0x87, 0x76, 0x84, 0x55, 0xf9, 0x4c, 0xa2, 0x99, 0xf5, 0x74, 0xc3, 0xb9, - 0xcc, 0xa5, 0x88, 0x33, 0xbf, 0x6d, 0xf2, 0x39, 0x40, 0x05, 0xff, 0x3a, 0xd0, 0x2a, 0x43, 0x27, - 0x1d, 0xf0, 0x26, 0x71, 0x5e, 0x2d, 0x34, 0x6b, 0xa9, 0x15, 0x14, 0x62, 0x96, 0xd2, 0x24, 0xd6, - 0xc3, 0x69, 0x6a, 0x58, 0x87, 0x94, 0xa2, 0xbf, 0x46, 0x26, 0xed, 0x71, 0x53, 0xc9, 0x3a, 0xa4, - 0xea, 0x6c, 0x1f, 0xdf, 0x16, 0xb3, 0x30, 0xc9, 0x53, 0x38, 0xd5, 0x42, 0x5b, 0x46, 0x63, 0x90, - 0x1f, 0xa1, 0x33, 0x89, 0x59, 0xbc, 0xc6, 0xa5, 0x6a, 0x3a, 0x9a, 0xe0, 0x4c, 0xf0, 0x57, 0x74, - 0x89, 0xc2, 0xf7, 0x7a, 0xee, 0x45, 0xfb, 0xfa, 0xfd, 0xda, 0xcb, 0xdf, 0x53, 0xe8, 0x6c, 0xc2, - 0x23, 0xc7, 0x83, 0x1f, 0xe0, 0xad, 0x23, 0x47, 0x54, 0x57, 0xf5, 0x93, 0x04, 0xf3, 0x9c, 0x8b, - 0xd1, 0xb0, 0x58, 0xea, 0x15, 0xa2, 0x3a, 0x32, 0xc2, 0x44, 0xa0, 0x1c, 0x0d, 0xed, 0x23, 0x94, - 0x76, 0x40, 0x1b, 0x7b, 0x54, 0x2d, 0x17, 0xb5, 0xf7, 0xcc, 0x28, 0xe8, 0x25, 0xd0, 0x01, 0x6f, - 0x38, 0x8d, 0xa2, 0x72, 0x41, 0x59, 0x4b, 0xa5, 0x3f, 0x9a, 0x29, 0xd8, 0xd5, 0xb0, 0x31, 0xd4, - 0x55, 0xfd, 0x34, 0xe5, 0xb7, 0xca, 0xc9, 0x03, 0xed, 0xa4, 0xb4, 0x6f, 0xbe, 0xfe, 0xfd, 0xae, - 0xeb, 0xfc, 0x79, 0xd7, 0x75, 0xfe, 0xba, 0xeb, 0x3a, 0xbf, 0xfe, 0xd3, 0x7d, 0xed, 0xa7, 0x8f, - 0xd6, 0x54, 0x6e, 0x76, 0x8b, 0xcb, 0x84, 0x6f, 0xaf, 0x36, 0x71, 0xbe, 0xa1, 0x09, 0x17, 0x99, - 0xfa, 0x86, 0xe5, 0xbb, 0xf4, 0xaa, 0xf9, 0x65, 0x5b, 0x78, 0xda, 0xfe, 0xf4, 0xbf, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x2f, 0xdd, 0x30, 0x50, 0xf2, 0x06, 0x00, 0x00, + // 823 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x55, 0xdd, 0x6e, 0xe3, 0x44, + 0x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ae, 0x86, 0x8d, 0x81, 0x57, 0xf5, 0xd3, 0x54, + 0xbc, 0x42, 0x27, 0x0f, 0xb4, 0x93, 0xca, 0xbe, 0xfa, 0xf6, 0xaf, 0xdb, 0xae, 0xf3, 0xcf, 0x6d, + 0xd7, 0xf9, 0xf7, 0xb6, 0xeb, 0xfc, 0xf1, 0x7f, 0xf7, 0x8d, 0x5f, 0x3e, 0x59, 0x31, 0xb5, 0xde, + 0xce, 0xcf, 0x13, 0xb1, 0xb9, 0x58, 0xc7, 0xf9, 0x9a, 0x25, 0x42, 0x66, 0xf8, 0x75, 0xcb, 0xb7, + 0xe9, 0x45, 0xf3, 0x9b, 0x37, 0xf7, 0xb4, 0xfd, 0xf9, 0xeb, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5d, + 0x66, 0xca, 0x39, 0x0c, 0x07, 0x00, 0x00, } func (m *Config) Marshal() (dAtA []byte, err error) { @@ -1197,10 +1198,10 @@ func (m *ACLTokens) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if len(m.AgentMaster) > 0 { - i -= len(m.AgentMaster) - copy(dAtA[i:], m.AgentMaster) - i = encodeVarintConfig(dAtA, i, uint64(len(m.AgentMaster))) + if len(m.AgentRecovery) > 0 { + i -= len(m.AgentRecovery) + copy(dAtA[i:], m.AgentRecovery) + i = encodeVarintConfig(dAtA, i, uint64(len(m.AgentRecovery))) i-- dAtA[i] = 0x1a } @@ -1211,10 +1212,10 @@ func (m *ACLTokens) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.Master) > 0 { - i -= len(m.Master) - copy(dAtA[i:], m.Master) - i = encodeVarintConfig(dAtA, i, uint64(len(m.Master))) + if len(m.InitialManagement) > 0 { + i -= len(m.InitialManagement) + copy(dAtA[i:], m.InitialManagement) + i = encodeVarintConfig(dAtA, i, uint64(len(m.InitialManagement))) i-- dAtA[i] = 0xa } @@ -1517,7 +1518,7 @@ func (m *ACLTokens) Size() (n int) { } var l int _ = l - l = len(m.Master) + l = len(m.InitialManagement) if l > 0 { n += 1 + l + sovConfig(uint64(l)) } @@ -1525,7 +1526,7 @@ func (m *ACLTokens) Size() (n int) { if l > 0 { n += 1 + l + sovConfig(uint64(l)) } - l = len(m.AgentMaster) + l = len(m.AgentRecovery) if l > 0 { n += 1 + l + sovConfig(uint64(l)) } @@ -2767,7 +2768,7 @@ func (m *ACLTokens) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Master", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field InitialManagement", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2795,7 +2796,7 @@ func (m *ACLTokens) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Master = string(dAtA[iNdEx:postIndex]) + m.InitialManagement = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -2831,7 +2832,7 @@ func (m *ACLTokens) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AgentMaster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AgentRecovery", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2859,7 +2860,7 @@ func (m *ACLTokens) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AgentMaster = string(dAtA[iNdEx:postIndex]) + m.AgentRecovery = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { diff --git a/proto/pbconfig/config.proto b/proto/pbconfig/config.proto index 19cb356e5d..8483c96269 100644 --- a/proto/pbconfig/config.proto +++ b/proto/pbconfig/config.proto @@ -52,9 +52,9 @@ message ACL { } message ACLTokens { - string Master = 1; + string InitialManagement = 1; string Replication = 2; - string AgentMaster = 3; + string AgentRecovery = 3; string Default = 4; string Agent = 5; repeated ACLServiceProviderToken ManagedServiceProvider = 6;