[HTTP/OAS] Include Security Solution domain OAS to production docs#194132
[HTTP/OAS] Include Security Solution domain OAS to production docs#194132maximpn merged 5 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
|
Hey @maximpn — I'd like for @natasha-moore-elastic to review these when she returns from PTO on October 7th before we merge (we also have a virtual offsite that week). Please add her as a reviewer on any subsequent Kibana PRs for Security. Thank you! |
Hey @jmikell821, I wonder if you had any specific concerns or reasons for reviewing this PR from the Docs side. According to my understanding, this PR is purely technical and it doesn't introduce any changes to OpenAPI specs - it just integrates the specs we already had with the Kibana mechanism that will allow these specs to be published on bump.sh. @natasha-moore-elastic told us that she had reviewed all the specs and gave us 🟢 light. Quote:
Ideally, we'd like the docs to be published sooner, so that work doesn't consume @maximpn's resources who needs to focus on a high priority product epic. |
|
Hey @banderror — once @lcawl approves, I think this will be good to go, thanks for checking! cc: @maximpn |
|
I ran the linting rules on the output (both before and after applying overlays) and there are 55 messages about operation-tag-defined "Operation tags must be defined in global tags" in the security APIs. From the ones I looked at, it's operations that have multiple tags assigned and Bump.sh only heeds the first tag anyway so as long as that's the case for all 55 here, you are okay. However, it might make it harder for you to tell in the future when a true problem occurs (e.g. first tag is not in the global list of tags and thus that endpoint isn't published). It might be safest to just add all those extra tags to the global list. I did a quick test by adding the following missing tags via an overlay: That makes the linting messages disappear but doesn't change the navigation in Bump.sh (since none of these are the first or only tag assigned to an operation). So IMO you can move forward either with: a) add an overlay for this type of tags (and then continue to update it as new situations like this arise), or If you decide to use (a) and want my help with the overlay, lmk! |
|
Tags intentionally organised that way. OpenAPI bundler adds domain level tags by assigning a tag specified via configuration to each API domain's operation and adds the same tags to document root tags (for example We decided that OpenAPI Bundler won't remove any existing tags. Instead it adds the tag(s) from configuration to the top of the list so existing tags don't impact how API reference documentation is shown on Bump.sh. According to OpenAPI Specification tags don't have to be added to the root tags list
Does Bump.sh plan to support multiple tags per operation? Could we use an overlay to implement option c)? |
We've initiated discussions about that, in particular related to the use of tags in the Elastic Cloud APIs. However, we don't know yet when/if that will be added to the roadmap.
I added that via c3083805a8b21f86589c50fafaf0a7fe508d7045 and it seems to work. I also added some |
lcawl
left a comment
There was a problem hiding this comment.
If you're happy with the overlays I added, the output LGTM
tiansivive
left a comment
There was a problem hiding this comment.
LGTM from Entity Analytics
8c63866 to
0651d60
Compare
Great! That's better than maintaining overlays.
Hm, I had hoped my use of npx in the makefile meant folks wouldn't have to install the command lines, but it sounds like until this is integrated into buildkite, that's not the case. You might have to install Bump.sh (for overlaying and previewing output): https://docs.bump.sh/help/continuous-integration/cli/#global-installation, Spectral (for linting the documents): https://docs.stoplight.io/docs/spectral/b8391e051b7d8-installation and Redocly (for bundling the examples into the OpenAPI files): https://redocly.com/docs/cli/installation By the way, when I run the That wasn't there when I tested yesterday so I assume it must be related to the latest updates? |
3efb80a to
8e034b3
Compare
Thanks. Everything but Bump.sh installed globally so it was the issue. After I installed Bump.sh globally
I tried to find Quite recently |
Good call, that fixed the issue. LGTM! |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @maximpn |
| x-displayName: Security exceptions | ||
| - description: Lists API allows you to manage lists of keywords, IPs or IP ranges items. | ||
| name: Security Lists API | ||
| x-displayName: Security lists |
There was a problem hiding this comment.
@approksiu @nastasha-solomon do we refer to them as Security value lists or just Security lists?
There was a problem hiding this comment.
In the UI docs, we use value lists: https://www.elastic.co/guide/en/security/current/value-lists-exceptions.html
In the API docs, we use lists: https://www.elastic.co/guide/en/security/current/lists-index-api-overview.html
Also, I'm not sure whether you need to specify that these lists are for Security only. The distinction might be helpful if you can add exceptions to Kibana and Observability rules, and those exceptions can use lists. Otherwise, value lists or lists should suffice.
yctercero
left a comment
There was a problem hiding this comment.
DE looks good to me - thanks!
I don't want to block, but did just leave one question about aligning our docs with whether we use value lists or lists. Could be followed up on.
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11185902657 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…lastic#194132) *Epic:** elastic/security-team#9401 (internal) ## Summary This PR includes Security Solution OpenAPI domain bundles into the production OpenAPI Kibana bundle. The result Kibana bundler is expected to be published to Bump.sh manually by @lcawl. (cherry picked from commit 102297c) # Conflicts: # oas_docs/output/kibana.serverless.staging.yaml # oas_docs/output/kibana.serverless.yaml # oas_docs/output/kibana.staging.yaml # oas_docs/output/kibana.yaml # x-pack/plugins/security_solution/docs/openapi/ess/security_solution_entity_analytics_api_1.bundled.schema.yaml # x-pack/plugins/security_solution/docs/openapi/serverless/security_solution_entity_analytics_api_1.bundled.schema.yaml
…lastic#194132) *Epic:** elastic/security-team#9401 (internal) ## Summary This PR includes Security Solution OpenAPI domain bundles into the production OpenAPI Kibana bundle. The result Kibana bundler is expected to be published to Bump.sh manually by @lcawl.
…ocs (#194132) (#195221) # Backport This will backport the following commits from `main` to `8.x`: - [[HTTP/OAS] Include Security Solution domain OAS to production docs (#194132)](#194132) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Maxim Palenov","email":"maxim.palenov@elastic.co"},"sourceCommit":{"committedDate":"2024-10-04T19:34:25Z","message":"[HTTP/OAS] Include Security Solution domain OAS to production docs (#194132)\n\n*Epic:** elastic/security-team#9401 (internal)\r\n\r\n## Summary\r\n\r\nThis PR includes Security Solution OpenAPI domain bundles into the production OpenAPI Kibana bundle. The result Kibana bundler is expected to be published to Bump.sh manually by @lcawl.","sha":"102297ca151d56c8a7da36c14c72386b4cd225ca","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","docs","Team: SecuritySolution","backport:prev-minor","Feature:OAS","v8.16.0"],"number":194132,"url":"https://github.com/elastic/kibana/pull/194132","mergeCommit":{"message":"[HTTP/OAS] Include Security Solution domain OAS to production docs (#194132)\n\n*Epic:** elastic/security-team#9401 (internal)\r\n\r\n## Summary\r\n\r\nThis PR includes Security Solution OpenAPI domain bundles into the production OpenAPI Kibana bundle. The result Kibana bundler is expected to be published to Bump.sh manually by @lcawl.","sha":"102297ca151d56c8a7da36c14c72386b4cd225ca"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194132","number":194132,"mergeCommit":{"message":"[HTTP/OAS] Include Security Solution domain OAS to production docs (#194132)\n\n*Epic:** elastic/security-team#9401 (internal)\r\n\r\n## Summary\r\n\r\nThis PR includes Security Solution OpenAPI domain bundles into the production OpenAPI Kibana bundle. The result Kibana bundler is expected to be published to Bump.sh manually by @lcawl.","sha":"102297ca151d56c8a7da36c14c72386b4cd225ca"}},{"branch":"8.x","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
Epic: https://github.com/elastic/security-team/issues/9401 (internal)
Summary
This PR includes Security Solution OpenAPI domain bundles into the production OpenAPI Kibana bundle. The result Kibana bundler is expected to be published to Bump.sh manually by @lcawl.