Skip to content

Commit a59bf27

Browse files
committed
litrpc+proto: add ReadOnly param to BakeSuperMacaroon
1 parent a3e8c17 commit a59bf27

File tree

6 files changed

+91
-32
lines changed

6 files changed

+91
-32
lines changed

app/src/types/generated/proxy_pb.d.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/types/generated/proxy_pb.js

Lines changed: 31 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

litrpc/proxy.pb.go

Lines changed: 42 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

litrpc/proxy.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ message BakeSuperMacaroonRequest {
3030
be used to create the macaroon.
3131
*/
3232
uint32 root_key_id_suffix = 1;
33+
34+
/*
35+
Whether the macaroon should only contain read permissions.
36+
*/
37+
bool read_only = 2;
3338
}
3439

3540
message BakeSuperMacaroonResponse {

litrpc/proxy.swagger.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@
114114
"type": "integer",
115115
"format": "int64",
116116
"description": "The root key ID suffix is the 4-byte suffix of the root key ID that will\nbe used to create the macaroon."
117+
},
118+
"read_only": {
119+
"type": "boolean",
120+
"description": "Whether the macaroon should only contain read permissions."
117121
}
118122
}
119123
},

proto/proxy.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ message BakeSuperMacaroonRequest {
3030
be used to create the macaroon.
3131
*/
3232
uint32 root_key_id_suffix = 1;
33+
34+
/*
35+
Whether the macaroon should only contain read permissions.
36+
*/
37+
bool read_only = 2;
3338
}
3439

3540
message BakeSuperMacaroonResponse {

0 commit comments

Comments
 (0)