You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I created an OpensearchUser using a custom resource.
I checked it with curl expecting a tagline, but got an Unauthorized response.
Version
OpenSearch: 2.17.1
Opensearch-k8s-operator: 2.7.0
What I did.
Following the user guide, I deployed the following:
https://github.com/opensearch-project/opensearch-k8s-operator/blob/main/docs/userguide/main.md#opensearch-users
They are all in the same namespace.
user.yaml
userrolebinding.yaml
It was confirmed that the user was created using the get users API.
Problem
I was hoping that executing the following command would return a tagline
curl -k -u foo:bar https://my-cluster.default.svc:9200
However, Unauthorized was returned.
There was no Error in the Operator's log.
How can I solve this problem?
supplement
Executing the create user API with the admin user created the user and returned the tagline.
https://opensearch.org/docs/latest/security/access-control/api/#create-user
Beta Was this translation helpful? Give feedback.
All reactions