Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: common/logdog/types/streamsecret.go

Issue 1967273002: LogDog: Implement RegisterPrefix RPC. (Closed) Base URL: https://github.com/luci/luci-go@logdog-butler-register-coordinator-endpoint
Patch Set: Updated patchset dependency Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/logdog/types/streamname.go ('k') | common/proto/logdog/svcconfig/config.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/logdog/types/streamsecret.go
diff --git a/common/logdog/types/streamsecret.go b/common/logdog/types/streamsecret.go
index 74e0c28c8ccfb0c7e6facaf4916c6bcd7a7286fd..64415a8c83ee51ca7ebd347b7336f8635f5d2f42 100644
--- a/common/logdog/types/streamsecret.go
+++ b/common/logdog/types/streamsecret.go
@@ -18,8 +18,13 @@ const (
PrefixSecretLength = 36
)
-// PrefixSecret is the stream secret value. This is a Base64-encoded secret
-// value.
+// PrefixSecret is the prefix secret value. It is used to assert ownership of
+// a prefix space.
+//
+// The Prefix secret is generated by the Coordinator at prefix registration,
+// and is included by the Butler to prove that it is the entity that registered
+// the stream. The secret is asserted by microservices and the Coordinator
+// during Butler-initiated stream operations.
type PrefixSecret []byte
// NewPrefixSecret generates a new, default-length secret parameter.
« no previous file with comments | « common/logdog/types/streamname.go ('k') | common/proto/logdog/svcconfig/config.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698