Skip to content

Commit

Permalink
[8.x] chore(slo): add access:public missing options for public routes (
Browse files Browse the repository at this point in the history
…#195114) (#195427)

# Backport

This will backport the following commits from `main` to `8.x`:
- [chore(slo): add access:public missing options for public routes
(#195114)](#195114)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-08T14:21:47Z","message":"chore(slo):
add access:public missing options for public routes
(#195114)","sha":"8281517ef5ede44519dbb52abaf59d4f86d9396e","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0"],"title":"chore(slo):
add access:public missing options for public
routes","number":195114,"url":"https://github.com/elastic/kibana/pull/195114","mergeCommit":{"message":"chore(slo):
add access:public missing options for public routes
(#195114)","sha":"8281517ef5ede44519dbb52abaf59d4f86d9396e"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195114","number":195114,"mergeCommit":{"message":"chore(slo):
add access:public missing options for public routes
(#195114)","sha":"8281517ef5ede44519dbb52abaf59d4f86d9396e"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Kevin Delemme <[email protected]>
  • Loading branch information
kibanamachine and kdelemme authored Oct 8, 2024
1 parent cf549c5 commit e03bac1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ const deleteSloInstancesRoute = createSloServerRoute({
endpoint: 'POST /api/observability/slos/_delete_instances 2023-10-31',
options: {
tags: ['access:slo_write'],
access: 'public',
},
params: deleteSLOInstancesParamsSchema,
handler: async ({ context, params }) => {
Expand All @@ -532,6 +533,7 @@ const findSloDefinitionsRoute = createSloServerRoute({
endpoint: 'GET /api/observability/slos/_definitions 2023-10-31',
options: {
tags: ['access:slo_read'],
access: 'public',
},
params: findSloDefinitionsParamsSchema,
handler: async ({ context, params, logger }) => {
Expand Down

0 comments on commit e03bac1

Please sign in to comment.