opensearch-project / opensearch-project/security

[FEATURE] Add new REST admin API edpoint

Open
#3,948 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement triaged
Dominant language
Java
Stars
252
Forks
395
Avg merge
1d 11h
Merged PRs (30d)
76

Description

Is your feature request related to a problem?
Add a new REST admin endpoint to update the configuration of multiple configuration types.
Such endpoint will be helpful to update internal users, roles, roles mapping in one request

What solution would you like?
Endpoint:
PATCH _plugins/_security/api/configuration/update

Payload:

{
  "actiongroups": [ 
      {
       "op": "add", "path": "/CREATE_INDEX", 
       "value": { "allowed_actions": ["indices:admin/create", "indices:admin/mapping/put"] }
      }], 
   "nodes_dn": [...], 
   "internalusers": [...]
 }

in other words the endpoint will combine exiting patch endpoints and update the index via bulk.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing patch endpoints, which the issue says this endpoint should combine, and trace the PATCH _plugins/_security/api/configuration/update entry point. Define completion as one request updating actiongroups, nodes_dn, and internalusers through the proposed bulk index update. No files or tests are named, so the implementation locations and validation approach must first be established.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, authorization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.