Skip to content

DiscoveryConfig: add service with rbac support#32371

Merged
marcoandredinis merged 2 commits intomasterfrom
marco/discovery_config_service_with_rbac
Sep 27, 2023
Merged

DiscoveryConfig: add service with rbac support#32371
marcoandredinis merged 2 commits intomasterfrom
marco/discovery_config_service_with_rbac

Conversation

@marcoandredinis
Copy link
Copy Markdown
Contributor

This PR adds the DiscoveryConfig service protected by RBAC rules.

A PR will follow that uses this service to expose the service in the gRPC server.

@marcoandredinis marcoandredinis added discover Issues related to Teleport Discover backport/branch/v14 labels Sep 22, 2023
@marcoandredinis marcoandredinis force-pushed the marco/discovery_config_service_client branch from b487779 to 21137b6 Compare September 26, 2023 13:46
Base automatically changed from marco/discovery_config_service_client to master September 26, 2023 14:23
@marcoandredinis marcoandredinis force-pushed the marco/discovery_config_service_with_rbac branch from 4bd0512 to 09ada06 Compare September 26, 2023 16:09
@marcoandredinis marcoandredinis marked this pull request as ready for review September 26, 2023 16:10
@github-actions github-actions Bot requested review from lxea and nklaassen September 26, 2023 16:11
Comment thread lib/auth/discoveryconfig/discoveryconfigv1/service.go Outdated
Comment on lines +60 to +62
if s.Logger == nil {
s.Logger = logrus.WithField(trace.Component, "DiscoveryConfig.service")
}

if s.Logger == nil {
s.Logger = logrus.New().WithField(trace.Component, "discoveryconfig_crud_service")
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

pick one :) looking at all the Component* in constants.go I might name it discoveryconfig:service

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll use "discoveryconfig_crud_service"
Seems to be used in other places like access_list, okta, and user_login_state

Comment thread lib/auth/discoveryconfig/discoveryconfigv1/service.go Outdated
Comment thread lib/auth/discoveryconfig/discoveryconfigv1/service.go Outdated
This PR adds the DiscoveryConfig service protected by RBAC rules.

A PR will follow that uses this service to expose the service in the
gRPC server.
@marcoandredinis marcoandredinis force-pushed the marco/discovery_config_service_with_rbac branch from 09ada06 to aa4b7a9 Compare September 27, 2023 18:23
@marcoandredinis marcoandredinis added this pull request to the merge queue Sep 27, 2023
Merged via the queue into master with commit 9a428be Sep 27, 2023
@marcoandredinis marcoandredinis deleted the marco/discovery_config_service_with_rbac branch September 27, 2023 20:27
@public-teleport-github-review-bot
Copy link
Copy Markdown

@marcoandredinis See the table below for backport results.

Branch Result
branch/v14 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discover Issues related to Teleport Discover size/lg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants