Skip to content
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

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

AlekSi
Copy link
Contributor

@AlekSi AlekSi commented Jun 18, 2021

Refs #3421.


This change is Reviewable

@AlekSi
Copy link
Contributor Author

AlekSi commented Jun 18, 2021

/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
Copy link
Contributor Author

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);
Copy link
Contributor Author

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;
Copy link
Contributor Author

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),
}
Copy link
Contributor Author

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)
Copy link
Contributor Author

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

@AlekSi AlekSi marked this pull request as ready for review June 18, 2021 15:57
@AlekSi AlekSi added this to the 0.11 milestone Jun 18, 2021
Refs siderolabs#3421.

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
@andrewrynhard
Copy link
Member

What was the health api used for?

@smira
Copy link
Member

smira commented Jun 18, 2021

What was the health api used for?

It was used in now gone networkd

@AlekSi
Copy link
Contributor Author

AlekSi commented Jun 18, 2021

/lgtm

@talos-bot talos-bot merged commit 06209bb into siderolabs:master Jun 18, 2021
@AlekSi AlekSi deleted the rbac-rules branch June 18, 2021 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants