Skip to content

Fix differences between openapi spec and implementation.#6517

Merged
michel-laterman merged 2 commits intoelastic:mainfrom
michel-laterman:fix/openapi-spec-issues
Mar 6, 2026
Merged

Fix differences between openapi spec and implementation.#6517
michel-laterman merged 2 commits intoelastic:mainfrom
michel-laterman:fix/openapi-spec-issues

Conversation

@michel-laterman
Copy link
Contributor

What is the problem this PR solves?

open api spec is missing some error responses.

How does this PR solve the problem?

Fix spec so that it more accurately describes the implantation. Fixes include using status code 429 for too many requests (instead of 428) and status code 413 for request size too large (instead of 400).

Note that the only effective code change included is fixing a typo in error.go.

Design Checklist

  • I have ensured my design is stateless and will work when multiple fleet-server instances are behind a load balancer.
  • I have or intend to scale test my changes, ensuring it will work reliably with 100K+ agents connected.
  • I have included fail safe mechanisms to limit the load on fleet-server: rate limiting, circuit breakers, caching, load shedding, etc.

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool

Fix spec so that it more accuratly describes the implenetation.
Fixes include  using status code 429 for too many requests (instead of
428) and status code 413 for request size too large (instead of 400).
@michel-laterman michel-laterman requested a review from a team as a code owner March 6, 2026 00:05
@michel-laterman michel-laterman added the bug Something isn't working label Mar 6, 2026
@michel-laterman michel-laterman added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team backport-active-all Automated backport with mergify to all the active branches labels Mar 6, 2026
@michel-laterman michel-laterman changed the title Fix differnces between openapi spec and implementation. Fix differences between openapi spec and implementation. Mar 6, 2026
ycombinator
ycombinator previously approved these changes Mar 6, 2026
Copy link
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a typo in the CHANGELOG. Otherwise, LGTM. Thanks for addressing these inconsistencies!

…pec.yaml

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
@michel-laterman michel-laterman merged commit 8005534 into elastic:main Mar 6, 2026
10 checks passed
@michel-laterman michel-laterman deleted the fix/openapi-spec-issues branch March 6, 2026 22:27
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

@Mergifyio backport 8.19 9.2 9.3

@mergify
Copy link
Contributor

mergify bot commented Mar 6, 2026

backport 8.19 9.2 9.3

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Mar 6, 2026
* Fix differnces between openapi spec and implementation.

Fix spec so that it more accuratly describes the implenetation.
Fixes include  using status code 429 for too many requests (instead of
428) and status code 413 for request size too large (instead of 400).

* Update changelog/fragments/1772755112-Fix-innacuracies-with-openapi-spec.yaml

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>

---------

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
(cherry picked from commit 8005534)
mergify bot pushed a commit that referenced this pull request Mar 6, 2026
* Fix differnces between openapi spec and implementation.

Fix spec so that it more accuratly describes the implenetation.
Fixes include  using status code 429 for too many requests (instead of
428) and status code 413 for request size too large (instead of 400).

* Update changelog/fragments/1772755112-Fix-innacuracies-with-openapi-spec.yaml

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>

---------

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
(cherry picked from commit 8005534)
mergify bot pushed a commit that referenced this pull request Mar 6, 2026
* Fix differnces between openapi spec and implementation.

Fix spec so that it more accuratly describes the implenetation.
Fixes include  using status code 429 for too many requests (instead of
428) and status code 413 for request size too large (instead of 400).

* Update changelog/fragments/1772755112-Fix-innacuracies-with-openapi-spec.yaml

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>

---------

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
(cherry picked from commit 8005534)
michel-laterman added a commit that referenced this pull request Mar 6, 2026
* Fix differnces between openapi spec and implementation.

Fix spec so that it more accuratly describes the implenetation.
Fixes include  using status code 429 for too many requests (instead of
428) and status code 413 for request size too large (instead of 400).

* Update changelog/fragments/1772755112-Fix-innacuracies-with-openapi-spec.yaml



---------


(cherry picked from commit 8005534)

Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com>
Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
michel-laterman added a commit that referenced this pull request Mar 6, 2026
* Fix differnces between openapi spec and implementation.

Fix spec so that it more accuratly describes the implenetation.
Fixes include  using status code 429 for too many requests (instead of
428) and status code 413 for request size too large (instead of 400).

* Update changelog/fragments/1772755112-Fix-innacuracies-with-openapi-spec.yaml



---------


(cherry picked from commit 8005534)

Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com>
Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants