Skip to content

Commit

Permalink
Update OpenAPI docs to include opensearch acl changes (#904)
Browse files Browse the repository at this point in the history
* Update OpenAPI docs to include opensearch acl changes

* Add details for 'deny' permission.

---------

Co-authored-by: Rahul Bhardwaj <[email protected]>
  • Loading branch information
bhardwajRahul and Rahul Bhardwaj authored Aug 28, 2024
1 parent 47108d8 commit 9b76302
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions specification/resources/databases/models/user_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,39 @@ type: object

properties:
pg_allow_replication:
type: boolean
example: true
description: |
For Postgres clusters, set to `true` for a user with replication rights.
This option is not currently supported for other database engines.
type: boolean
example: true
description: |
For Postgres clusters, set to `true` for a user with replication rights.
This option is not currently supported for other database engines.
opensearch_acl:
type: array
items:
type: object
properties:
index:
type: string
example: index-abc.*
description: A regex for matching the indexes that this ACL should apply to.
permission:
type: string
enum:
- deny
- admin
- read
- readwrite
- write
example: read
description: >-
Permission set applied to the ACL. 'read' allows user to
read from the index. 'write' allows for user to write
to the index. 'readwrite' allows for both 'read' and
'write' permission. 'deny'(default) restricts user from performing
any operation over an index. 'admin' allows for 'readwrite' as
well as any operations to administer the index.
description: >-
ACLs (Access Control Lists) specifying permissions on index within a
OpenSearch cluster.
acl:
type: array
items:
Expand Down

0 comments on commit 9b76302

Please sign in to comment.