Skip to content

Commit 2f72cac

Browse files
pquentinn1v0lg
andauthored
[Backport 8.15] Fix RoleDescriptor field annotations for Serverless (#2702)
(cherry picked from commit 2e232e5) Co-authored-by: Nikolaj Volgushev <[email protected]>
1 parent f326bec commit 2f72cac

File tree

7 files changed

+37
-152
lines changed

7 files changed

+37
-152
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 1 addition & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 2 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 22 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/security/_types/RoleDescriptor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class RoleDescriptor {
3737
indices?: IndicesPrivileges[]
3838
/**
3939
* An object defining global privileges. A global privilege is a form of cluster privilege that is request-aware. Support for global privileges is currently limited to the management of application privileges.
40+
* @availability stack
4041
*/
4142
global?: GlobalPrivilege[] | GlobalPrivilege
4243
/**
@@ -48,7 +49,7 @@ export class RoleDescriptor {
4849
*/
4950
metadata?: Metadata
5051
/**
51-
* A list of users that the API keys can impersonate.
52+
* A list of users that the API keys can impersonate. *Note*: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty `run_as` field, but a non-empty list will be rejected.
5253
* @doc_id run-as-privilege
5354
*/
5455
run_as?: string[]

specification/security/put_role/SecurityPutRoleRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ export interface Request extends RequestBase {
7272
* @doc_id run-as-privilege
7373
*/
7474
run_as?: string[]
75+
/**
76+
* Optional description of the role descriptor
77+
*/
78+
description?: string
7579
/**
7680
* Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security. When the cluster license doesn’t allow certain features for a given role, this parameter is updated dynamically to list the incompatible features. If `enabled` is `false`, the role is ignored, but is still listed in the response from the authenticate API.
7781
*/

0 commit comments

Comments
 (0)