From ff55640e02e2978fea0a6dd396797d12a2fcec58 Mon Sep 17 00:00:00 2001 From: Carlos Date: Sun, 10 Sep 2023 13:43:59 +0200 Subject: [PATCH] Fix RBAC to action-alias help and match api. --- CHANGELOG.rst | 3 +++ st2common/st2common/openapi.yaml | 10 ++++++++++ st2common/st2common/openapi.yaml.j2 | 10 ++++++++++ 3 files changed, 23 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4571dd0525e..7b8de0b1e34 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -51,6 +51,9 @@ Fixed * For "local-shell-script" runner, on readonly filesystems, don't attempt to run chmod +x on script_action. Fixes #5591 Contributed by @jk464 +* Fixed RBAC support to action-alias help and match end point. #6022 + Contributed by @nzlosh + Added ~~~~~ * Move `git clone` to `user_home/.st2packs` #5845 diff --git a/st2common/st2common/openapi.yaml b/st2common/st2common/openapi.yaml index 93d4bcdec6c..f7556878186 100644 --- a/st2common/st2common/openapi.yaml +++ b/st2common/st2common/openapi.yaml @@ -806,6 +806,11 @@ paths: description: Object containing the format to be matched. schema: $ref: '#/definitions/ActionAliasMatchRequest' + x-parameters: + - name: user + in: context + x-as: requester_user + description: User performing the operation. responses: '200': description: Action alias match pattern @@ -840,6 +845,11 @@ paths: description: Number of actions alias to offset type: integer default: 0 + x-parameters: + - name: user + in: context + x-as: requester_user + description: User performing the operation. responses: '200': description: Action alias match pattern diff --git a/st2common/st2common/openapi.yaml.j2 b/st2common/st2common/openapi.yaml.j2 index 6b10362640e..45f126275ab 100644 --- a/st2common/st2common/openapi.yaml.j2 +++ b/st2common/st2common/openapi.yaml.j2 @@ -802,6 +802,11 @@ paths: description: Object containing the format to be matched. schema: $ref: '#/definitions/ActionAliasMatchRequest' + x-parameters: + - name: user + in: context + x-as: requester_user + description: User performing the operation. responses: '200': description: Action alias match pattern @@ -836,6 +841,11 @@ paths: description: Number of actions alias to offset type: integer default: 0 + x-parameters: + - name: user + in: context + x-as: requester_user + description: User performing the operation. responses: '200': description: Action alias match pattern