-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [HTTP] Set explicit access for `public` HTTP APIs (#1…
…92554) (#193735) # Backport This will backport the following commits from `main` to `8.x`: - [[HTTP] Set explicit access for `public` HTTP APIs (#192554)](#192554) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jean-Louis Leysens","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-23T14:53:31Z","message":"[HTTP] Set explicit access for `public` HTTP APIs (#192554)\n\n## Summary\r\n\r\nWe will be enforcing restricted access to internal HTTP APIs [from\r\n9.0](#186781). This PR is part 1\r\nof audit checking that our public APIs have their access tag set\r\nexplicitly to ensure they are still available to end users after we\r\nstart enforcing HTTP API restrictions. APIs reviewed in this PR\r\n([docs](https://www.elastic.co/guide/en/kibana/current/dashboard-import-api.html)):\r\n\r\n<img width=\"260\" alt=\"Screenshot 2024-09-11 at 11 25 55\"\r\nsrc=\"https://github.com/user-attachments/assets/499b1f1f-8e01-4463-9410-4500e438cd23\">\r\n\r\n## Note to reviewers\r\n\r\nThis audit is focussed on set `access: 'public'` where needed. Per the\r\nscreenshot our public-facing documentation is taken as the source of\r\ntruth for which APIs should be public. This may differ per offering so\r\nplease consider whether a given HTTP API should be public on both\r\nserverless and stateful offerings.\r\n\r\n## Risks\r\n\r\n* If we miss an API that should be public, end users will encounter a\r\n`400` response when they try to use the HTTP API on 9.0\r\n* If we set an API's access to \"public\" it will not have the same\r\nrestrictions applied to it.","sha":"3fa5bdf8732101812a656ec954e2a8d779838938","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:http","Team:Core","release_note:skip","v9.0.0","v8.16.0","backport:version"],"title":"[HTTP] Set explicit access for `public` HTTP APIs","number":192554,"url":"https://github.com/elastic/kibana/pull/192554","mergeCommit":{"message":"[HTTP] Set explicit access for `public` HTTP APIs (#192554)\n\n## Summary\r\n\r\nWe will be enforcing restricted access to internal HTTP APIs [from\r\n9.0](#186781). This PR is part 1\r\nof audit checking that our public APIs have their access tag set\r\nexplicitly to ensure they are still available to end users after we\r\nstart enforcing HTTP API restrictions. APIs reviewed in this PR\r\n([docs](https://www.elastic.co/guide/en/kibana/current/dashboard-import-api.html)):\r\n\r\n<img width=\"260\" alt=\"Screenshot 2024-09-11 at 11 25 55\"\r\nsrc=\"https://github.com/user-attachments/assets/499b1f1f-8e01-4463-9410-4500e438cd23\">\r\n\r\n## Note to reviewers\r\n\r\nThis audit is focussed on set `access: 'public'` where needed. Per the\r\nscreenshot our public-facing documentation is taken as the source of\r\ntruth for which APIs should be public. This may differ per offering so\r\nplease consider whether a given HTTP API should be public on both\r\nserverless and stateful offerings.\r\n\r\n## Risks\r\n\r\n* If we miss an API that should be public, end users will encounter a\r\n`400` response when they try to use the HTTP API on 9.0\r\n* If we set an API's access to \"public\" it will not have the same\r\nrestrictions applied to it.","sha":"3fa5bdf8732101812a656ec954e2a8d779838938"}},"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/192554","number":192554,"mergeCommit":{"message":"[HTTP] Set explicit access for `public` HTTP APIs (#192554)\n\n## Summary\r\n\r\nWe will be enforcing restricted access to internal HTTP APIs [from\r\n9.0](#186781). This PR is part 1\r\nof audit checking that our public APIs have their access tag set\r\nexplicitly to ensure they are still available to end users after we\r\nstart enforcing HTTP API restrictions. APIs reviewed in this PR\r\n([docs](https://www.elastic.co/guide/en/kibana/current/dashboard-import-api.html)):\r\n\r\n<img width=\"260\" alt=\"Screenshot 2024-09-11 at 11 25 55\"\r\nsrc=\"https://github.com/user-attachments/assets/499b1f1f-8e01-4463-9410-4500e438cd23\">\r\n\r\n## Note to reviewers\r\n\r\nThis audit is focussed on set `access: 'public'` where needed. Per the\r\nscreenshot our public-facing documentation is taken as the source of\r\ntruth for which APIs should be public. This may differ per offering so\r\nplease consider whether a given HTTP API should be public on both\r\nserverless and stateful offerings.\r\n\r\n## Risks\r\n\r\n* If we miss an API that should be public, end users will encounter a\r\n`400` response when they try to use the HTTP API on 9.0\r\n* If we set an API's access to \"public\" it will not have the same\r\nrestrictions applied to it.","sha":"3fa5bdf8732101812a656ec954e2a8d779838938"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Jean-Louis Leysens <[email protected]>
- Loading branch information
1 parent
15751ec
commit 3cab9c2
Showing
21 changed files
with
58 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters