Skip to content

Commit

Permalink
Move & rename xsrf header spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
John Schulz committed Oct 12, 2020
1 parent b4874ca commit 236e326
Show file tree
Hide file tree
Showing 20 changed files with 59 additions and 59 deletions.
40 changes: 20 additions & 20 deletions x-pack/plugins/ingest_manager/common/openapi/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"security": [],
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
}
Expand Down Expand Up @@ -181,7 +181,7 @@
},
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
}
Expand Down Expand Up @@ -294,7 +294,7 @@
},
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
},
Expand Down Expand Up @@ -405,7 +405,7 @@
"operationId": "post-fleet-agents-agentId-acks",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
],
"requestBody": {
Expand Down Expand Up @@ -488,7 +488,7 @@
"operationId": "post-fleet-agents-agentId-checkin",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
],
"security": [
Expand Down Expand Up @@ -554,7 +554,7 @@
"operationId": "post-fleet-agents-unenroll",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
],
"requestBody": {
Expand Down Expand Up @@ -612,7 +612,7 @@
"operationId": "post-fleet-agents-upgrade",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
],
"requestBody": {
Expand Down Expand Up @@ -656,7 +656,7 @@
"operationId": "post-fleet-agents-bulk-upgrade",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
],
"requestBody": {
Expand Down Expand Up @@ -698,7 +698,7 @@
"operationId": "post-fleet-agents-enroll",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
],
"requestBody": {
Expand Down Expand Up @@ -826,7 +826,7 @@
},
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
}
Expand All @@ -846,7 +846,7 @@
"operationId": "post-fleet-enrollment-api-keys",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
}
Expand Down Expand Up @@ -875,7 +875,7 @@
"operationId": "delete-fleet-enrollment-api-keys-keyId",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
}
Expand Down Expand Up @@ -1043,7 +1043,7 @@
"description": "",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
},
Expand Down Expand Up @@ -1088,7 +1088,7 @@
"operationId": "post-epm-delete-pkgkey",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
}
Expand Down Expand Up @@ -1136,7 +1136,7 @@
"operationId": "put-fleet-agents-agentId",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
},
Expand All @@ -1147,7 +1147,7 @@
"operationId": "delete-fleet-agents-agentId",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
}
Expand Down Expand Up @@ -1230,7 +1230,7 @@
},
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
}
Expand Down Expand Up @@ -1300,7 +1300,7 @@
},
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
}
Expand Down Expand Up @@ -1344,7 +1344,7 @@
"operationId": "post-setup",
"parameters": [
{
"$ref": "#/components/parameters/xsrf_header"
"$ref": "#/components/parameters/kbn_xsrf"
}
]
}
Expand Down Expand Up @@ -1397,7 +1397,7 @@
"type": "string"
}
},
"xsrf_header": {
"kbn_xsrf": {
"schema": {
"type": "string"
},
Expand Down
40 changes: 20 additions & 20 deletions x-pack/plugins/ingest_manager/common/openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ paths:
$ref: '#/components/schemas/new_agent_policy'
security: []
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
'/agent_policies/{agentPolicyId}':
parameters:
- schema:
Expand Down Expand Up @@ -112,7 +112,7 @@ paths:
schema:
$ref: '#/components/schemas/new_agent_policy'
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
'/agent_policies/{agentPolicyId}/copy':
parameters:
- schema:
Expand Down Expand Up @@ -181,7 +181,7 @@ paths:
items:
type: string
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
parameters: []
/agent-status:
get:
Expand Down Expand Up @@ -251,7 +251,7 @@ paths:
- action
operationId: post-fleet-agents-agentId-acks
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
requestBody:
content:
application/json:
Expand Down Expand Up @@ -304,7 +304,7 @@ paths:
- type
operationId: post-fleet-agents-agentId-checkin
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
security:
- Access API Key: []
requestBody:
Expand Down Expand Up @@ -344,7 +344,7 @@ paths:
responses: {}
operationId: post-fleet-agents-unenroll
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
requestBody:
content:
application/json:
Expand Down Expand Up @@ -378,7 +378,7 @@ paths:
$ref: '#/components/schemas/upgrade_agent'
operationId: post-fleet-agents-upgrade
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
requestBody:
required: true
content:
Expand All @@ -404,7 +404,7 @@ paths:
$ref: '#/components/schemas/upgrade_agent'
operationId: post-fleet-agents-bulk-upgrade
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
requestBody:
required: true
content:
Expand All @@ -429,7 +429,7 @@ paths:
$ref: '#/components/schemas/agent'
operationId: post-fleet-agents-enroll
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
requestBody:
content:
application/json:
Expand Down Expand Up @@ -507,7 +507,7 @@ paths:
- admin_username
- admin_password
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
/enrollment-api-keys:
get:
summary: Enrollment - List
Expand All @@ -521,7 +521,7 @@ paths:
responses: {}
operationId: post-fleet-enrollment-api-keys
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
'/enrollment-api-keys/{keyId}':
parameters:
- schema:
Expand All @@ -540,7 +540,7 @@ paths:
responses: {}
operationId: delete-fleet-enrollment-api-keys-keyId
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
/epm/categories:
get:
summary: EPM - Categories
Expand Down Expand Up @@ -644,7 +644,7 @@ paths:
operationId: post-epm-install-pkgkey
description: ''
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
delete:
summary: EPM - Packages - Delete
tags: []
Expand Down Expand Up @@ -672,7 +672,7 @@ paths:
- response
operationId: post-epm-delete-pkgkey
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
'/agents/{agentId}':
parameters:
- schema:
Expand Down Expand Up @@ -702,14 +702,14 @@ paths:
responses: {}
operationId: put-fleet-agents-agentId
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
delete:
summary: Fleet - Agent - Delete
tags: []
responses: {}
operationId: delete-fleet-agents-agentId
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
'/install/{osType}':
parameters:
- schema:
Expand Down Expand Up @@ -762,7 +762,7 @@ paths:
schema:
$ref: '#/components/schemas/new_package_policy'
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
'/package_policies/{packagePolicyId}':
get:
summary: PackagePolicies - Info
Expand Down Expand Up @@ -805,7 +805,7 @@ paths:
- item
- sucess
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
/setup:
post:
summary: Ingest Manager - Setup
Expand All @@ -831,7 +831,7 @@ paths:
type: string
operationId: post-setup
parameters:
- $ref: '#/components/parameters/xsrf_header'
- $ref: '#/components/parameters/kbn_xsrf'
components:
securitySchemes:
basicAuth:
Expand Down Expand Up @@ -869,7 +869,7 @@ components:
required: false
schema:
type: string
xsrf_header:
kbn_xsrf:
schema:
type: string
in: header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ post:
$ref: ../components/schemas/new_agent_policy.yaml
security: []
parameters:
- $ref: ../components/parameters/xsrf_header.yaml
- $ref: ../components/headers/kbn_xsrf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ post:
items:
type: string
parameters:
- $ref: ../components/parameters/xsrf_header.yaml
- $ref: ../components/headers/kbn_xsrf.yaml
parameters: []
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ put:
schema:
$ref: ../components/schemas/new_agent_policy.yaml
parameters:
- $ref: ../components/parameters/xsrf_header.yaml
- $ref: ../components/headers/kbn_xsrf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ post:
$ref: ../components/schemas/upgrade_agent.yaml
operationId: post-fleet-agents-bulk-upgrade
parameters:
- $ref: ../components/parameters/xsrf_header.yaml
- $ref: ../components/headers/kbn_xsrf.yaml
requestBody:
required: true
content:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ post:
$ref: ../components/schemas/agent.yaml
operationId: post-fleet-agents-enroll
parameters:
- $ref: ../components/parameters/xsrf_header.yaml
- $ref: ../components/headers/kbn_xsrf.yaml
requestBody:
content:
application/json:
Expand Down
Loading

0 comments on commit 236e326

Please sign in to comment.