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

Unable to enable basic authentication #102

Open
Dearraj25 opened this issue Jun 28, 2020 · 3 comments
Open

Unable to enable basic authentication #102

Dearraj25 opened this issue Jun 28, 2020 · 3 comments

Comments

@Dearraj25
Copy link

Unable to enable basic authentication for elastic search with username and password.

Is there is any other way to enable authentication for elastic search with username and password?

I am trying to enable xpack.security I am facing errors.

I have just added xpack.security.enabled: true in es-config.

apiVersion: v1

kind: ConfigMap

metadata:

  name: es-config

  namespace: es-operator-demo

data:

  elasticsearch.yml: |

    cluster.name: es-cluster

    network.host: "0.0.0.0"

    bootstrap.memory_lock: false

    discovery.seed_hosts: [es-master]

    cluster.initial_master_nodes: [es-master-0]

    xpack.security.enabled: true

I have tried different versions of elastic search dockers and also by changing the version of ES_JAVA_OPTS.

Used all the configuration given in https://github.com/zalando-incubator/es-operator/tree/master/docs.

@mikkeloscar
Copy link
Collaborator

What errors are you facing? The operator should not have any influence on this configuration afaik.

@Dearraj25
Copy link
Author

Dearraj25 commented Jun 29, 2020

@mikkeloscar Please check the screenshot below for the errors
image

@otrosien
Copy link
Member

otrosien commented Jul 8, 2020

First disclaimer: we haven't tested the es-operator with xpack security, so we're probably not adding the necessary credentials to the API calls. Despite that the problem you're facing is unrelated to that, you're probably trying to run Elasticsearch OSS which doesn't contain xpack features. Switch to Elasticsearch Basic license.

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

No branches or pull requests

3 participants