Giter Club home page Giter Club logo

Comments (5)

farvour avatar farvour commented on June 21, 2024 1

I can confirm this is happening to me as well. For those using AWS's Elasticsearch it means their documentation doesn't work either and I had to turn the single PATCH into individual PUTs if I wanted to use the built-in console.

Step 14:
https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/saml.html#saml-enable

from security-dashboards-plugin.

abdalians avatar abdalians commented on June 21, 2024 1

exact same issue here. curl -X patch worked for me and dev tools didnt.

from security-dashboards-plugin.

francisco-hoo avatar francisco-hoo commented on June 21, 2024

Hi @DJSundog,

Can you tell me the curl command? Which flags and headers did you pass over the request to patch multiple Tentants?

from security-dashboards-plugin.

mbchris avatar mbchris commented on June 21, 2024

Hi,

although this is an older one, I'd like to confirm this.

In Kibana:

PATCH _opendistro/_security/api/rolesmapping/kibana_user
{
  [
  {
    "op": "add", "path": "/backend_roles", "value": ["mybackendrole"]
  }
]
}

ends up with:

{"statusCode":400,"error":"Bad Request","message":"[request query.method]: Method must be one of, case insensitive ['HEAD', 'GET', 'POST', 'PUT', 'DELETE']. Received 'PATCH'."}

Using curl, it works:

curl -k -u user:pwd -X PATCH "https://opendistroelastichost:9200/_opendistro/_security/api/rolesmapping/kibana_user" -H 'Content-Type: application/json' -d'
[
  {
    "op": "add", "path": "/backend_roles", "value": ["mybackendrole"]
  }
]'

{" status":"OK","message":"'kibana_user' updated."}

Kibana also shows an syntax error when using PATCH verb.

from security-dashboards-plugin.

davidlago avatar davidlago commented on June 21, 2024

We are doing some "spring cleaning in the fall", and to make sure we focus our energies on the right issues and we get a better picture of the state of the repo, we are closing all issues that we are carrying over from the ODFE era (ODFE is no longer supported/maintained, see post here).

If you believe this issue should still be considered for current versions of OpenSearch, apologies! Please let us know by re-opening it.

Thanks!

from security-dashboards-plugin.

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.