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

Unified Diff: common/proto/logdog/logpb/butler.proto

Issue 1906023002: LogDog: Add project namespace to Butler/Collector. (Closed) Base URL: https://github.com/luci/luci-go@logdog-project-archivist
Patch Set: Also update bootstrap logic. Created 4 years, 8 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 | « client/logdog/butlerlib/streamproto/properties.go ('k') | common/proto/logdog/logpb/butler.pb.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/proto/logdog/logpb/butler.proto
diff --git a/common/proto/logdog/logpb/butler.proto b/common/proto/logdog/logpb/butler.proto
index 565cb7f70c4540a6019a47689c1994a85a1bbf5d..9daee95e84025f9bfbd1e1e0f1fc22a41763a907 100644
--- a/common/proto/logdog/logpb/butler.proto
+++ b/common/proto/logdog/logpb/butler.proto
@@ -77,21 +77,8 @@ message ButlerLogBundle {
*/
logpb.LogStreamDescriptor desc = 1;
- /*
- * The log prefix's secret value (required).
- *
- * The secret is generated by the Butler and unique to this specific log
- * stream. The Coordinator will record the secret associated with a given
- * log Prefix/Stream, but will not share the secret with a client.
- *
- * The Collector will check the secret prior to ingesting logs. If the
- * secret doesn't match the value recorded by the Coordinator, the log
- * will be discarded.
- *
- * This ensures that only the Butler instance that generated the log stream
- * can emit log data for that stream.
- */
- bytes secret = 2;
+ /* (DEPRECATED) Per-entry secret replaced with Butler-wide secret. */
+ bytes deprecated_entry_secret = 2;
/*
* Whether this log entry terminates its stream.
@@ -125,4 +112,31 @@ message ButlerLogBundle {
* Each Entry is an individual set of log records for a given log stream.
*/
repeated Entry entries = 3;
+
+ /** Project specifies which luci-config project this stream belongs to. */
+ string project = 4;
+
+ /**
+ * The log stream prefix that is shared by all bundled streams.
+ *
+ * This prefix is valid within the supplied project scope.
+ */
+ string prefix = 5;
+
+ /*
+ * The log prefix's secret value (required).
+ *
+ * The secret is bound to all log streams that share the supplied Prefix, and
+ * The Coordinator will record the secret associated with a given log Prefix,
+ but will not share the secret with a client.
Vadim Sh. 2016/04/25 18:51:52 also, who exactly is meant by "a client" here? Log
Vadim Sh. 2016/04/25 18:51:52 nit: add "* " :)
+ *
+ * The Collector will check the secret prior to ingesting logs. If the
+ * secret doesn't match the value recorded by the Coordinator, the log
+ * will be discarded.
+ *
+ * This ensures that only the Butler instance that generated the log stream
Vadim Sh. 2016/04/25 18:51:52 Is knowing secret alone sufficient to push message
dnj 2016/04/25 19:30:26 The secret is: - At the moment, generated by this
+ * can emit log data for that stream. It also ensures that only authenticated
+ * users can write to a Prefix.
+ */
+ bytes secret = 6;
}
« no previous file with comments | « client/logdog/butlerlib/streamproto/properties.go ('k') | common/proto/logdog/logpb/butler.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698