Giter Club home page Giter Club logo

Comments (9)

jstakun avatar jstakun commented on September 23, 2024

I made some progress.
In ES pods I've manually added my service account to sg_role_admin role in roles_mapping.yaml followed by executing es_seed_acl command.
Is there any way to make this modification persistent using operator configuration?

from elasticsearch-operator.

jstakun avatar jstakun commented on September 23, 2024

Any plans to allow ES roles configuration from operator CRD?

from elasticsearch-operator.

akilada avatar akilada commented on September 23, 2024

We have been using Elastalert with OCP ES 4.4. After upgrading CLO and ES operators to 4.6, we couldn't use the logging admin user with the elastalert.

We have tried the workaround found by @jstakun but it's not a permanent solution. It'll be better if we have given the option to add additional admin users to 'sg_role_admin'.

For example - the openshift ES operator creates an 'elasticsearch' configmap. It has a separate section define admin users. But we can't define another admin user in the cluster logging operator instance.

$ oc get cm elastisearch -n openshift-logging -o yaml

...
opendistro_security:
  authcz.admin_dn:
  - CN=system.admin,OU=OpenShift,O=Logging
  config_index_name: ".security"
  restapi:
    roles_enabled: ["kibana_server"]
  ssl:
    transport:
      enabled: true
      enforce_hostname_verification: false
      keystore_type: JKS
      keystore_filepath: /etc/elasticsearch/secret/searchguard.key
      keystore_password: kspass
      truststore_type: JKS
      truststore_filepath: /etc/elasticsearch/secret/searchguard.truststore
      truststore_password: tspass
....

from elasticsearch-operator.

davidkarlsen avatar davidkarlsen commented on September 23, 2024

I made some progress.
In ES pods I've manually added my service account to sg_role_admin role in roles_mapping.yaml followed by executing es_seed_acl command.
Is there any way to make this modification persistent using operator configuration?

Where do you find this role_mappings.yaml? I have the same problem, but cannot find this config.

from elasticsearch-operator.

davidkarlsen avatar davidkarlsen commented on September 23, 2024

ah, found it, it's named .yml

from elasticsearch-operator.

openshift-bot avatar openshift-bot commented on September 23, 2024

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

from elasticsearch-operator.

openshift-bot avatar openshift-bot commented on September 23, 2024

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

from elasticsearch-operator.

openshift-bot avatar openshift-bot commented on September 23, 2024

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

from elasticsearch-operator.

openshift-ci avatar openshift-ci commented on September 23, 2024

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

from elasticsearch-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.