| Index: tokenserver/api/admin/v1/admin.pb.go
|
| diff --git a/tokenserver/api/admin/v1/admin.pb.go b/tokenserver/api/admin/v1/admin.pb.go
|
| index ad8a66457f974a504b1361315246b24db8bb3e55..412a3bd8e74a7e3d08df75f918f6e00f9ed7bc3f 100644
|
| --- a/tokenserver/api/admin/v1/admin.pb.go
|
| +++ b/tokenserver/api/admin/v1/admin.pb.go
|
| @@ -256,10 +256,18 @@ const _ = grpc.SupportPackageIsVersion3
|
| type AdminClient interface {
|
| // ImportCAConfigs makes the server read CA configs from luci-config.
|
| //
|
| + // This reads 'tokenserver.cfg' file.
|
| + //
|
| // Note that regularly configs are read in background each 5 min.
|
| // ImportCAConfigs can be used to force config reread immediately. It will
|
| // block until the configs are read.
|
| ImportCAConfigs(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ImportedConfigs, error)
|
| + // ImportDelegationConfigs makes the server read 'delegation.cfg' config.
|
| + //
|
| + // Note that regularly configs are read in background each 5 min.
|
| + // ImportDelegationConfigs can be used to force config reread immediately. It
|
| + // will block until the configs are read.
|
| + ImportDelegationConfigs(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ImportedConfigs, error)
|
| // InspectMachineToken decodes a machine token and verifies it is valid.
|
| //
|
| // It verifies the token was signed by a private key of the token server and
|
| @@ -294,6 +302,15 @@ func (c *adminPRPCClient) ImportCAConfigs(ctx context.Context, in *google_protob
|
| return out, nil
|
| }
|
|
|
| +func (c *adminPRPCClient) ImportDelegationConfigs(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ImportedConfigs, error) {
|
| + out := new(ImportedConfigs)
|
| + err := c.client.Call(ctx, "tokenserver.admin.Admin", "ImportDelegationConfigs", in, out, opts...)
|
| + if err != nil {
|
| + return nil, err
|
| + }
|
| + return out, nil
|
| +}
|
| +
|
| func (c *adminPRPCClient) InspectMachineToken(ctx context.Context, in *InspectMachineTokenRequest, opts ...grpc.CallOption) (*InspectMachineTokenResponse, error) {
|
| out := new(InspectMachineTokenResponse)
|
| err := c.client.Call(ctx, "tokenserver.admin.Admin", "InspectMachineToken", in, out, opts...)
|
| @@ -320,6 +337,15 @@ func (c *adminClient) ImportCAConfigs(ctx context.Context, in *google_protobuf.E
|
| return out, nil
|
| }
|
|
|
| +func (c *adminClient) ImportDelegationConfigs(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ImportedConfigs, error) {
|
| + out := new(ImportedConfigs)
|
| + err := grpc.Invoke(ctx, "/tokenserver.admin.Admin/ImportDelegationConfigs", in, out, c.cc, opts...)
|
| + if err != nil {
|
| + return nil, err
|
| + }
|
| + return out, nil
|
| +}
|
| +
|
| func (c *adminClient) InspectMachineToken(ctx context.Context, in *InspectMachineTokenRequest, opts ...grpc.CallOption) (*InspectMachineTokenResponse, error) {
|
| out := new(InspectMachineTokenResponse)
|
| err := grpc.Invoke(ctx, "/tokenserver.admin.Admin/InspectMachineToken", in, out, c.cc, opts...)
|
| @@ -334,10 +360,18 @@ func (c *adminClient) InspectMachineToken(ctx context.Context, in *InspectMachin
|
| type AdminServer interface {
|
| // ImportCAConfigs makes the server read CA configs from luci-config.
|
| //
|
| + // This reads 'tokenserver.cfg' file.
|
| + //
|
| // Note that regularly configs are read in background each 5 min.
|
| // ImportCAConfigs can be used to force config reread immediately. It will
|
| // block until the configs are read.
|
| ImportCAConfigs(context.Context, *google_protobuf.Empty) (*ImportedConfigs, error)
|
| + // ImportDelegationConfigs makes the server read 'delegation.cfg' config.
|
| + //
|
| + // Note that regularly configs are read in background each 5 min.
|
| + // ImportDelegationConfigs can be used to force config reread immediately. It
|
| + // will block until the configs are read.
|
| + ImportDelegationConfigs(context.Context, *google_protobuf.Empty) (*ImportedConfigs, error)
|
| // InspectMachineToken decodes a machine token and verifies it is valid.
|
| //
|
| // It verifies the token was signed by a private key of the token server and
|
| @@ -378,6 +412,24 @@ func _Admin_ImportCAConfigs_Handler(srv interface{}, ctx context.Context, dec fu
|
| return interceptor(ctx, in, info, handler)
|
| }
|
|
|
| +func _Admin_ImportDelegationConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
| + in := new(google_protobuf.Empty)
|
| + if err := dec(in); err != nil {
|
| + return nil, err
|
| + }
|
| + if interceptor == nil {
|
| + return srv.(AdminServer).ImportDelegationConfigs(ctx, in)
|
| + }
|
| + info := &grpc.UnaryServerInfo{
|
| + Server: srv,
|
| + FullMethod: "/tokenserver.admin.Admin/ImportDelegationConfigs",
|
| + }
|
| + handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
| + return srv.(AdminServer).ImportDelegationConfigs(ctx, req.(*google_protobuf.Empty))
|
| + }
|
| + return interceptor(ctx, in, info, handler)
|
| +}
|
| +
|
| func _Admin_InspectMachineToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
| in := new(InspectMachineTokenRequest)
|
| if err := dec(in); err != nil {
|
| @@ -405,6 +457,10 @@ var _Admin_serviceDesc = grpc.ServiceDesc{
|
| Handler: _Admin_ImportCAConfigs_Handler,
|
| },
|
| {
|
| + MethodName: "ImportDelegationConfigs",
|
| + Handler: _Admin_ImportDelegationConfigs_Handler,
|
| + },
|
| + {
|
| MethodName: "InspectMachineToken",
|
| Handler: _Admin_InspectMachineToken_Handler,
|
| },
|
| @@ -418,36 +474,37 @@ func init() {
|
| }
|
|
|
| var fileDescriptor0 = []byte{
|
| - // 493 bytes of a gzipped FileDescriptorProto
|
| - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x52, 0xcd, 0x6e, 0xd3, 0x40,
|
| - 0x10, 0x26, 0x2d, 0x09, 0xed, 0x24, 0x6a, 0xd3, 0xa5, 0xaa, 0x2c, 0x57, 0x88, 0x2a, 0xe2, 0x50,
|
| - 0x09, 0x65, 0x2d, 0xc2, 0x91, 0x5e, 0x4a, 0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x13, 0xe6, 0x8e, 0xf1, 0xcc, 0x71, 0xc0, 0x62, 0xe3, 0xe4, 0xb3, 0x3d, 0xc9,
|
| - 0x35, 0x10, 0xeb, 0x28, 0xb6, 0x61, 0x9f, 0xe0, 0xd8, 0xf0, 0xba, 0xff, 0x78, 0xe0, 0xf7, 0x32,
|
| - 0xab, 0x3f, 0x3e, 0x89, 0xfb, 0xb6, 0x75, 0x03, 0xef, 0xad, 0xdf, 0x69, 0xf4, 0xa3, 0x05, 0xed,
|
| - 0x4b, 0xeb, 0x23, 0xb3, 0xa6, 0x31, 0xe2, 0xf8, 0x72, 0x69, 0xc4, 0x13, 0xea, 0x7d, 0x4f, 0x97,
|
| - 0xbe, 0xa7, 0x57, 0xd6, 0xf7, 0xe1, 0xe0, 0xff, 0x36, 0x24, 0x1a, 0x9e, 0x6f, 0xb9, 0x1c, 0xd9,
|
| - 0xea, 0xe0, 0xbf, 0x9a, 0x2a, 0xa4, 0x8f, 0xa5, 0x7b, 0x43, 0x4c, 0x3b, 0x4e, 0xe9, 0xdb, 0x5f,
|
| - 0x01, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x3b, 0x4f, 0xb9, 0x02, 0x04, 0x00, 0x00,
|
| + // 509 bytes of a gzipped FileDescriptorProto
|
| + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x53, 0xc1, 0x6e, 0xd3, 0x40,
|
| + 0x10, 0x25, 0x29, 0x09, 0xed, 0x24, 0x6a, 0xd3, 0xa5, 0x2a, 0x96, 0x2b, 0x44, 0x14, 0x71, 0x88,
|
| + 0x84, 0xb2, 0x16, 0xe1, 0x48, 0x2e, 0x25, 0x14, 0x11, 0xa1, 0x70, 0xb0, 0x8a, 0xc4, 0x6d, 0xe5,
|
| + 0xd8, 0x53, 0x77, 0x15, 0x7b, 0x77, 0xb1, 0x37, 0x16, 0xfe, 0x1e, 0x4e, 0x7c, 0x15, 0xbf, 0x82,
|
| + 0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