Skip to content

Commit

Permalink
Merge Log Level API work into the next branch (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: Edwin Buck <[email protected]>
  • Loading branch information
edwbuck authored and azdagron committed Mar 25, 2024
1 parent 54e821e commit 2e20525
Show file tree
Hide file tree
Showing 9 changed files with 1,306 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ protos := \
proto/spire/api/types/federateswith.proto \
proto/spire/api/types/jointoken.proto \
proto/spire/api/types/jwtsvid.proto \
proto/spire/api/types/logger.proto \
proto/spire/api/types/selector.proto \
proto/spire/api/types/spiffeid.proto \
proto/spire/api/types/status.proto \
Expand All @@ -32,11 +33,13 @@ protos := \
apiprotos := \
proto/spire/api/agent/debug/v1/debug.proto \
proto/spire/api/agent/delegatedidentity/v1/delegatedidentity.proto \
proto/spire/api/agent/logger/v1/logger.proto \
proto/spire/api/server/agent/v1/agent.proto \
proto/spire/api/server/bundle/v1/bundle.proto \
proto/spire/api/server/debug/v1/debug.proto \
proto/spire/api/server/entry/v1/entry.proto \
proto/spire/api/server/localauthority/v1/localauthority.proto \
proto/spire/api/server/logger/v1/logger.proto \
proto/spire/api/server/trustdomain/v1/trustdomain.proto \
proto/spire/api/server/svid/v1/svid.proto \

Expand Down
288 changes: 288 additions & 0 deletions proto/spire/api/agent/logger/v1/logger.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions proto/spire/api/agent/logger/v1/logger.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
syntax = "proto3";
package spire.api.agent.logger.v1;
option go_package = "github.com/spiffe/spire-api-sdk/proto/spire/api/agent/logger/v1;loggerv1";

import "spire/api/types/logger.proto";

service Logger {

// Gets the logger level.
//
// This message is intended for the Agent Admin Socket.
rpc GetLogger(GetLoggerRequest) returns (spire.api.types.Logger);

// Sets the logger to a specified log level.
//
// This message is intended for the Agent Admin Socket.
rpc SetLogLevel(SetLogLevelRequest) returns (spire.api.types.Logger);

// Resets the logger level to the level configured at launch.
//
// This message is intended for the Agent Admin Socket.
rpc ResetLogLevel(ResetLogLevelRequest) returns (spire.api.types.Logger);

}

// Empty Get Logger Request message for future extension
message GetLoggerRequest {
}

// Set Log Level Request message
message SetLogLevelRequest {

// The new level the logger should assume
spire.api.types.LogLevel new_level = 1;
}

// Empty Reset Log Level Request message for future extension
message ResetLogLevelRequest {
}

Loading

0 comments on commit 2e20525

Please sign in to comment.