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

Authorization #1078

Merged
merged 2 commits into from Jun 3, 2021
Merged

Authorization #1078

merged 2 commits into from Jun 3, 2021

Conversation

ryanemerson
Copy link
Contributor

@ryanemerson ryanemerson added enhancement New feature or request documentation Adds or changes docu labels May 25, 2021
@dmvolod
Copy link
Member

dmvolod commented May 25, 2021

@ryanemerson please pay attention that you catch #1079 in this test

Infinispan: config.Infinispan{
Authorization: config.Authorization{
Enabled: c.infinispan.IsAuthorizationEnabled(),
RoleMapper: "cluster",
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 update this to automatically set the value to "commonName" when client-cert is enabled, but this requirs #1007

@@ -75,6 +75,7 @@ func (c *httpClientConfig) exec(method, path, payload string, headers map[string
ExpectNoError(err)
fmt.Printf("%s: %s\n", method, httpURL)
rsp, err := c.request(httpURL, method, payload, headers)
ExpectNoError(err)
Copy link
Member

Choose a reason for hiding this comment

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

@ryanemerson I've identified that sometimes request return net.IsConnectionRefused error. Do you have ideas why it happens and how we can handle this? Otherwise we will get error on test.
CheckExternalAddress has this error handle, probably we need to embedded this handler to the test httpClient

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've identified that sometimes request return net.IsConnectionRefused error. Do you have ideas why it happens and how we can handle this?

No idea the cause tbh. Adding some kind of retry logic to the client makes sense to me 👍

@ryanemerson ryanemerson merged commit 01484ca into infinispan:master Jun 3, 2021
@ryanemerson
Copy link
Contributor Author

Self merging as required for master to pass now that the Infinispan images have Authorization enabled by default.

oraNod added a commit to oraNod/infinispan-operator that referenced this pull request Jun 3, 2021
oraNod added a commit to oraNod/infinispan-operator that referenced this pull request Jun 3, 2021
@oraNod oraNod mentioned this pull request Jun 3, 2021
oraNod added a commit to oraNod/infinispan-operator that referenced this pull request Jun 3, 2021
oraNod added a commit to oraNod/infinispan-operator that referenced this pull request Jun 3, 2021
oraNod added a commit to oraNod/infinispan-operator that referenced this pull request Jun 3, 2021
ryanemerson pushed a commit that referenced this pull request Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Adds or changes docu enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants