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

Add AutoUpdate gRPC service implementation #46544

Merged
merged 4 commits into from
Sep 16, 2024
Merged

Conversation

vapopov
Copy link
Contributor

@vapopov vapopov commented Sep 12, 2024

In this PR implemented gRPC service for auto updates resources (config/version)

@vapopov vapopov added the no-changelog Indicates that a PR does not require a changelog entry label Sep 12, 2024
@vapopov vapopov marked this pull request as draft September 12, 2024 18:15
@vapopov vapopov marked this pull request as ready for review September 12, 2024 18:33
autoUpdateServiceServer, err := autoupdatev1.NewService(autoupdatev1.ServiceConfig{
Authorizer: cfg.Authorizer,
Backend: cfg.AuthServer.Services,
Cache: cfg.AuthServer.Services,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this going to be replaced to cfg.AuthServer.Cache in next pr with cache implementation

Comment on lines 916 to 917
types.NewRule(types.KindAutoUpdateConfig, services.RO()),
types.NewRule(types.KindAutoUpdateVersion, services.RO()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to update any of the preset roles?

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'll move this one to client and cache implementation, we need to have this to be able access resources without auth for find endpoint

lib/auth/autoupdate/v1/service.go Outdated Show resolved Hide resolved
lib/auth/autoupdate/v1/service.go Outdated Show resolved Hide resolved
lib/auth/grpcserver.go Outdated Show resolved Hide resolved
@vapopov vapopov added this pull request to the merge queue Sep 16, 2024
Merged via the queue into master with commit 4708e65 Sep 16, 2024
40 checks passed
@vapopov vapopov deleted the vapopov/autoupdate-grpc branch September 16, 2024 22:05
@public-teleport-github-review-bot

@vapopov See the table below for backport results.

Branch Result
branch/v14 Failed
branch/v15 Failed
branch/v16 Failed

vapopov added a commit that referenced this pull request Sep 16, 2024
* Add gRPC service implementation

* CR changes

* Add auth for read operation
vapopov added a commit that referenced this pull request Sep 16, 2024
* Add gRPC service implementation

* CR changes

* Add auth for read operation
vapopov added a commit that referenced this pull request Sep 16, 2024
* Add gRPC service implementation

* CR changes

* Add auth for read operation
vapopov added a commit that referenced this pull request Sep 16, 2024
* Add gRPC service implementation

* CR changes

* Add auth for read operation
github-merge-queue bot pushed a commit that referenced this pull request Sep 18, 2024
* Add AutoUpdate gRPC service implementation (#46544)

* Add gRPC service implementation

* CR changes

* Add auth for read operation

* Replace service test
github-merge-queue bot pushed a commit that referenced this pull request Sep 18, 2024
* Add gRPC service implementation

* CR changes

* Add auth for read operation
github-merge-queue bot pushed a commit that referenced this pull request Sep 18, 2024
* Add gRPC service implementation

* CR changes

* Add auth for read operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants