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

[Ingest Manager] Missing parts in OpenAPI specs #79574

Closed
13 of 22 tasks
neptunian opened this issue Oct 5, 2020 · 5 comments
Closed
13 of 22 tasks

[Ingest Manager] Missing parts in OpenAPI specs #79574

neptunian opened this issue Oct 5, 2020 · 5 comments
Labels
Meta Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@neptunian
Copy link
Contributor

neptunian commented Oct 5, 2020

Some items are missing from common/openapi/endpoint.yaml

Missing endpoints

Missing responses

  • paths/agent_status.yaml
  • paths/agents@{agent_id}@events.yaml
  • paths/agents@{agent_id}@unenroll.yaml
  • paths/enrollment_api_keys.yaml
  • paths/enrollment_api_keys@{key_id}.yaml
  • paths/agents@{agent_id}.yaml
  • paths/install@{os_type}.yaml
@neptunian neptunian added Meta Team:Fleet Team label for Observability Data Collection Fleet team labels Oct 5, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@jfsiii jfsiii changed the title [Ingest Manager] Tracks missing endpoints to openAPI spec [Ingest Manager] Missing parts in OpenAPI specs Oct 13, 2020
@paul-tavares
Copy link
Contributor

Added /epm/packages/{pkgName}/stats to the list, based on feedback from this pr: #86916 (review)

@jfsiii jfsiii self-assigned this Jul 22, 2021
@jfsiii
Copy link
Contributor

jfsiii commented Jul 22, 2021

ApiKey can be used on same routes as HTTP basic auth

I didn't get to verify this goal/implementation but if both are correct, the change is very small.

Changing

security:
- basicAuth: []

to

security:
  - basicAuth: []
  - Access_API_Key: []

should do the trick. That says use either of these security schemes for all endpoints.

@jfsiii jfsiii removed their assignment Jul 23, 2021
@jen-huang
Copy link
Contributor

Api key for auth is a Kibana-wide API option, so closing as rest of items are fixed.

@jfsiii
Copy link
Contributor

jfsiii commented Jul 26, 2021

Api key for auth is a Kibana-wide API option

@jen-huang Regardless of where it originates, it should still be documented, IMO. The change is pretty straightforward #79574 (comment)

closing as rest of items are fixed.

What about the endpoints at the top of the description? Those are routes I saw in https://github.com/elastic/kibana/blob/master/x-pack/plugins/fleet/common/constants/routes.ts but not the spec. If they're no longer active, they should be removed from routes.ts

/package_policies/upgrade from
#103017 is also missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Meta Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

No branches or pull requests

5 participants