-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update RBAC rules, remove old APIs #3779
Conversation
/approve |
@@ -141,8 +141,6 @@ FROM build AS generate-build | |||
COPY ./api/vendor/ /api/vendor/ | |||
COPY ./api/common/common.proto /api/common/common.proto | |||
RUN protoc -I/api -I/api/vendor/ --go_out=paths=source_relative:/api --go-grpc_out=paths=source_relative:/api common/common.proto | |||
COPY ./api/health/health.proto /api/health/health.proto | |||
RUN protoc -I/api -I/api/vendor/ --go_out=paths=source_relative:/api --go-grpc_out=paths=source_relative:/api health/health.proto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wasn't hooked to anything
@@ -68,9 +68,9 @@ service MachineService { | |||
rpc Restart(RestartRequest) returns (RestartResponse); | |||
rpc Rollback(RollbackRequest) returns (RollbackResponse); | |||
rpc Reset(ResetRequest) returns (ResetResponse); | |||
rpc Recover(RecoverRequest) returns (RecoverResponse); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It did nothing since Talos 0.9
rpc RemoveBootkubeInitializedKey(google.protobuf.Empty) | ||
returns (RemoveBootkubeInitializedKeyResponse); | ||
rpc RemoveBootkubeInitializedKey(google.protobuf.Empty) returns (RemoveBootkubeInitializedKeyResponse) { | ||
option deprecated = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not removed yet, but documented as deprecated
|
||
"/time.TimeService/Time": role.MakeSet(role.Admin, role.Reader), | ||
"/time.TimeService/TimeCheck": role.MakeSet(role.Admin, role.Reader), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I now wonder if we need prefix handling at all. Maybe it would be better to require all methods there in full
@@ -167,6 +176,10 @@ func NewServer(r Registrator, setters ...Option) *grpc.Server { | |||
server := grpc.NewServer(opts.ServerOptions...) | |||
r.Register(server) | |||
|
|||
if opts.Reflection { | |||
reflection.Register(server) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be useful in the future, but not enabled now
Refs siderolabs#3421. Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
What was the health api used for? |
It was used in now gone |
/lgtm |
Refs #3421.
This change is