Skip to content

Commit d8f9b6c

Browse files
authored
apm-server: Remove server information endpoint POST / support (#647)
Corresponding code change: elastic/apm-server#15976 Issue elastic/apm-server#15965
1 parent 5735c11 commit d8f9b6c

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

release-notes/breaking-changes/elastic-apm.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,19 @@ To learn how to upgrade, check out <uprade docs>.
1717
% **Action**<br> Steps for mitigating deprecation impact.
1818
% ::::
1919

20-
% ## 9.0.0 [elastic-apm-900-breaking-changes]
21-
% **Release date:** March 25, 2025
20+
## 9.0.0 [elastic-apm-9-0-0-breaking-changes]
21+
**Release date:** March 25, 2025
2222

2323
% ::::{dropdown} Title of breaking change
2424
% Description of the breaking change.
2525
% For more information, check [PR #](PR link).
2626
% **Impact**<br> Impact of the breaking change.
2727
% **Action**<br> Steps for mitigating deprecation impact.
28-
% ::::
28+
% ::::
29+
30+
::::{dropdown} Change server information endpoint "/" to only accept GET and HEAD requests
31+
This will surface any agent misconfiguration causing data to be sent to `/` instead of the correct endpoint (for example, `/v1/traces` for OTLP/HTTP).
32+
For more information, check [PR #15976](https://github.com/elastic/apm-server/pull/15976).
33+
**Impact**<br> Any methods other than `GET` and `HEAD` to `/` will return HTTP 405 Method Not Allowed.
34+
**Action**<br> Update any existing usage, for example, update `POST /` to `GET /`.
35+
::::

solutions/observability/apps/apm-server-information-api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ This is the server information endpoint:
1616
http(s)://{hostname}:{port}/
1717
```
1818

19-
Sending an `HTTP GET` or `HTTP POST` request to the server information endpoint will return an HTTP 200, indicating that the server is up.
19+
Sending an `HTTP GET` request to the server information endpoint will return an HTTP 200, indicating that the server is up.
2020

2121
To configure authenticated access to the APM server, the instructions at [APM API key](api-keys.md) or [APM Secret Token](secret-token.md), must be followed to configure the correct permissions for APM access.
2222

23-
If an [API keys](api-keys.md) or a [Secret token](secret-token.md) is passed along with the `HTTP GET` or `HTTP POST` request, in addition to an HTTP 200, the response payload will include some information about the APM server.
23+
If an [API keys](api-keys.md) or a [Secret token](secret-token.md) is passed along with the `HTTP GET` request, in addition to an HTTP 200, the response payload will include some information about the APM server.
2424

2525

2626
### Example: GET, without credentials [apm-api-info-example-get-without-credentials]
@@ -48,12 +48,12 @@ curl --verbose -X GET http://127.0.0.1:8200
4848
```
4949
5050
51-
### Example: POST, with secret token [apm-api-info-example-post-with-secret-token]
51+
### Example: GET, with secret token [apm-api-info-example-get-with-secret-token]
5252
53-
Example APM Server information request with POST, with a [Secret token](secret-token.md):
53+
Example APM Server information request with GET, with a [Secret token](secret-token.md):
5454
5555
```sh
56-
curl -X POST http://127.0.0.1:8200/ \
56+
curl -X GET http://127.0.0.1:8200/ \
5757
-H "Authorization: Bearer secret_token"
5858

5959
{

0 commit comments

Comments
 (0)