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

Namespaces #115

Merged
merged 3 commits into from
Sep 23, 2021
Merged

Namespaces #115

merged 3 commits into from
Sep 23, 2021

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Sep 21, 2021

Support for Consul Enterprise Namespaces.

Swap out Operator.AutopilotServerHealth with Catalog.Service for
determining the version of the consul servers in order to stop using the
Operator based call as it requires "operator: read" ACL permissions. We
don't want "operator: read" as that means ESM can read all Namespaces
and we need to allow for limiting Namespace access via ACLs.
This change allows ESM to scan all accessable namespaces for services to
monitor. By "accessable" we mean what Consul's ACLs/Tokens are
configured to allow.
adds a new section and removes mentions of the operator permission
@eikenb eikenb requested a review from a team September 21, 2021 21:53
@eikenb eikenb added this to the 0.6.0 milestone Sep 21, 2021
Copy link

@mkam mkam left a comment

Choose a reason for hiding this comment

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

Looks good to me!


func Test_namespacesList(t *testing.T) {
testcase := ""
ts := httptest.NewServer(http.HandlerFunc(
Copy link

Choose a reason for hiding this comment

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

This is a really cool pattern for handling the mock responses! I didn't know you could do a switch on a local variable like this in an anonymous function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Love that lexical scoping. :)

@eikenb eikenb merged commit d4cac81 into master Sep 23, 2021
@eikenb eikenb deleted the namespaces branch September 23, 2021 20:08
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.

2 participants