Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Authz] OAS Descriptions for Route Authz #197001

Merged
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
959fa99
bring in POC code
SiddharthMantri Oct 21, 2024
b735fbe
Add feature extraction logic
SiddharthMantri Oct 21, 2024
1e19b12
reuse service function
SiddharthMantri Oct 22, 2024
4c45a8f
use subFeaturePrivilegeIterator
SiddharthMantri Oct 22, 2024
502e6b7
update typescript type checks for authz in union types
SiddharthMantri Oct 22, 2024
ddba3c1
improve typecheck
SiddharthMantri Oct 22, 2024
574cfee
update test:
SiddharthMantri Oct 22, 2024
625c4bc
update process router
SiddharthMantri Oct 22, 2024
99e15f2
remove console log
SiddharthMantri Oct 22, 2024
bae9f19
Merge branch 'main' into oas-route-authzn-description
SiddharthMantri Oct 22, 2024
cf5e935
fix merge and lint
SiddharthMantri Oct 22, 2024
1dc8f93
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine Oct 22, 2024
4305827
[CI] Auto-commit changed files from 'make api-docs && make api-docs-s…
kibanamachine Oct 22, 2024
3ab848c
update tests, fix spelling
SiddharthMantri Oct 23, 2024
da95c57
remove description if empty
SiddharthMantri Oct 23, 2024
ef225c3
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine Oct 23, 2024
3e70aa5
[CI] Auto-commit changed files from 'make api-docs && make api-docs-s…
kibanamachine Oct 23, 2024
92a32a7
address PR comments, separate extraction logic
SiddharthMantri Oct 23, 2024
0bf118c
[CI] Auto-commit changed files from 'node scripts/notice'
kibanamachine Oct 23, 2024
e52c25e
update tests
SiddharthMantri Oct 23, 2024
dc2618b
remove unused buildFlavor option
SiddharthMantri Oct 23, 2024
2e2d2ed
Merge branch 'main' into oas-route-authzn-description
elasticmachine Oct 23, 2024
0437c30
update versioned router OAS generation and update tests
SiddharthMantri Oct 23, 2024
73e4ae8
fix types
SiddharthMantri Oct 23, 2024
42a297f
[CI] Auto-commit changed files from 'node scripts/notice'
kibanamachine Oct 23, 2024
c10ed38
remove empty lines
SiddharthMantri Oct 23, 2024
91997ae
fix test scenario
SiddharthMantri Oct 23, 2024
9a9872b
address PR comments: update if condition, add test scenario
SiddharthMantri Oct 24, 2024
162acae
update test
SiddharthMantri Oct 24, 2024
42bf34d
remove unused extract function
SiddharthMantri Oct 28, 2024
5ad07de
remove unused import
SiddharthMantri Oct 28, 2024
381c9a0
Merge branch 'main' into oas-route-authzn-description
elasticmachine Oct 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions oas_docs/bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@
"/api/actions": {
"get": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions#0",
"parameters": [
{
Expand All @@ -372,6 +373,7 @@
"/api/actions/action": {
"post": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Faction#0",
"parameters": [
{
Expand Down Expand Up @@ -542,6 +544,7 @@
},
"get": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Faction%2F%7Bid%7D#1",
"parameters": [
{
Expand Down Expand Up @@ -628,6 +631,7 @@
},
"put": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Faction%2F%7Bid%7D#2",
"parameters": [
{
Expand Down Expand Up @@ -754,6 +758,7 @@
"/api/actions/action/{id}/_execute": {
"post": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Faction%2F%7Bid%7D%2F_execute#0",
"parameters": [
{
Expand Down Expand Up @@ -916,6 +921,7 @@
]
},
"get": {
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Fconnector%2F%7Bid%7D#1",
"parameters": [
{
Expand Down Expand Up @@ -1001,6 +1007,7 @@
]
},
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Fconnector%2F%7Bid%3F%7D#0",
"parameters": [
{
Expand Down Expand Up @@ -1130,6 +1137,7 @@
]
},
"put": {
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Fconnector%2F%7Bid%7D#2",
"parameters": [
{
Expand Down Expand Up @@ -1407,6 +1415,7 @@
},
"/api/actions/connectors": {
"get": {
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Fconnectors#0",
"parameters": [
{
Expand All @@ -1432,6 +1441,7 @@
"/api/actions/list_action_types": {
"get": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Flist_action_types#0",
"parameters": [
{
Expand All @@ -1456,6 +1466,7 @@
},
"/api/alerting/rule/{id}": {
"delete": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D#2",
"parameters": [
{
Expand Down Expand Up @@ -1510,6 +1521,7 @@
]
},
"get": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D#0",
"parameters": [
{
Expand Down Expand Up @@ -2446,6 +2458,7 @@
]
},
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%3F%7D#0",
"parameters": [
{
Expand Down Expand Up @@ -3684,6 +3697,7 @@
]
},
"put": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D#1",
"parameters": [
{
Expand Down Expand Up @@ -4910,6 +4924,7 @@
},
"/api/alerting/rule/{id}/_disable": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D%2F_disable#0",
"parameters": [
{
Expand Down Expand Up @@ -4984,6 +4999,7 @@
},
"/api/alerting/rule/{id}/_enable": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D%2F_enable#0",
"parameters": [
{
Expand Down Expand Up @@ -5040,6 +5056,7 @@
},
"/api/alerting/rule/{id}/_mute_all": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D%2F_mute_all#0",
"parameters": [
{
Expand Down Expand Up @@ -5096,6 +5113,7 @@
},
"/api/alerting/rule/{id}/_unmute_all": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D%2F_unmute_all#0",
"parameters": [
{
Expand Down Expand Up @@ -5152,6 +5170,7 @@
},
"/api/alerting/rule/{id}/_update_api_key": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D%2F_update_api_key#0",
"parameters": [
{
Expand Down Expand Up @@ -5211,6 +5230,7 @@
},
"/api/alerting/rule/{rule_id}/alert/{alert_id}/_mute": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Brule_id%7D%2Falert%2F%7Balert_id%7D%2F_mute#0",
"parameters": [
{
Expand Down Expand Up @@ -5276,6 +5296,7 @@
},
"/api/alerting/rule/{rule_id}/alert/{alert_id}/_unmute": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Brule_id%7D%2Falert%2F%7Balert_id%7D%2F_unmute#0",
"parameters": [
{
Expand Down Expand Up @@ -5341,6 +5362,7 @@
},
"/api/alerting/rules/_find": {
"get": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frules%2F_find#0",
"parameters": [
{
Expand Down Expand Up @@ -42129,6 +42151,7 @@
},
"/api/spaces/_disable_legacy_url_aliases": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Fspaces%2F_disable_legacy_url_aliases#0",
"parameters": [
{
Expand Down Expand Up @@ -42854,6 +42877,7 @@
},
"/api/status": {
"get": {
"description": "undefined",
"operationId": "%2Fapi%2Fstatus#0",
"parameters": [
{
Expand Down
23 changes: 23 additions & 0 deletions oas_docs/bundle.serverless.json
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@
"/api/actions": {
"get": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions#0",
"parameters": [
{
Expand All @@ -372,6 +373,7 @@
"/api/actions/action": {
"post": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Faction#0",
"parameters": [
{
Expand Down Expand Up @@ -542,6 +544,7 @@
},
"get": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Faction%2F%7Bid%7D#1",
"parameters": [
{
Expand Down Expand Up @@ -628,6 +631,7 @@
},
"put": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Faction%2F%7Bid%7D#2",
"parameters": [
{
Expand Down Expand Up @@ -754,6 +758,7 @@
"/api/actions/action/{id}/_execute": {
"post": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Faction%2F%7Bid%7D%2F_execute#0",
"parameters": [
{
Expand Down Expand Up @@ -916,6 +921,7 @@
]
},
"get": {
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Fconnector%2F%7Bid%7D#1",
"parameters": [
{
Expand Down Expand Up @@ -1001,6 +1007,7 @@
]
},
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Fconnector%2F%7Bid%3F%7D#0",
"parameters": [
{
Expand Down Expand Up @@ -1130,6 +1137,7 @@
]
},
"put": {
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Fconnector%2F%7Bid%7D#2",
"parameters": [
{
Expand Down Expand Up @@ -1407,6 +1415,7 @@
},
"/api/actions/connectors": {
"get": {
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Fconnectors#0",
"parameters": [
{
Expand All @@ -1432,6 +1441,7 @@
"/api/actions/list_action_types": {
"get": {
"deprecated": true,
"description": "undefined",
"operationId": "%2Fapi%2Factions%2Flist_action_types#0",
"parameters": [
{
Expand All @@ -1456,6 +1466,7 @@
},
"/api/alerting/rule/{id}": {
"delete": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D#2",
"parameters": [
{
Expand Down Expand Up @@ -1510,6 +1521,7 @@
]
},
"get": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D#0",
"parameters": [
{
Expand Down Expand Up @@ -2446,6 +2458,7 @@
]
},
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%3F%7D#0",
"parameters": [
{
Expand Down Expand Up @@ -3684,6 +3697,7 @@
]
},
"put": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D#1",
"parameters": [
{
Expand Down Expand Up @@ -4910,6 +4924,7 @@
},
"/api/alerting/rule/{id}/_disable": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D%2F_disable#0",
"parameters": [
{
Expand Down Expand Up @@ -4984,6 +4999,7 @@
},
"/api/alerting/rule/{id}/_enable": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D%2F_enable#0",
"parameters": [
{
Expand Down Expand Up @@ -5040,6 +5056,7 @@
},
"/api/alerting/rule/{id}/_mute_all": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D%2F_mute_all#0",
"parameters": [
{
Expand Down Expand Up @@ -5096,6 +5113,7 @@
},
"/api/alerting/rule/{id}/_unmute_all": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D%2F_unmute_all#0",
"parameters": [
{
Expand Down Expand Up @@ -5152,6 +5170,7 @@
},
"/api/alerting/rule/{id}/_update_api_key": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Bid%7D%2F_update_api_key#0",
"parameters": [
{
Expand Down Expand Up @@ -5211,6 +5230,7 @@
},
"/api/alerting/rule/{rule_id}/alert/{alert_id}/_mute": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Brule_id%7D%2Falert%2F%7Balert_id%7D%2F_mute#0",
"parameters": [
{
Expand Down Expand Up @@ -5276,6 +5296,7 @@
},
"/api/alerting/rule/{rule_id}/alert/{alert_id}/_unmute": {
"post": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frule%2F%7Brule_id%7D%2Falert%2F%7Balert_id%7D%2F_unmute#0",
"parameters": [
{
Expand Down Expand Up @@ -5341,6 +5362,7 @@
},
"/api/alerting/rules/_find": {
"get": {
"description": "undefined",
"operationId": "%2Fapi%2Falerting%2Frules%2F_find#0",
"parameters": [
{
Expand Down Expand Up @@ -42385,6 +42407,7 @@
},
"/api/status": {
"get": {
"description": "undefined",
"operationId": "%2Fapi%2Fstatus#0",
"parameters": [
{
Expand Down
Loading