You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/v4/management/httpexchanges.md
+27-25Lines changed: 27 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,39 @@
1
1
# HTTP Exchanges
2
2
3
-
The Steeltoe HTTP Exchanges endpoint provides the ability to view the last several requests made of your application.
3
+
The Steeltoe HTTP Exchanges endpoint provides the ability to view the last several requests sent to your application.
4
4
5
-
When you activate this endpoint, an `IHttpExchangesRepository` implementation is registered that stores HTTP request/response information in memory, that can be retrieved by using the endpoint.
5
+
When you activate this endpoint, an `IHttpExchangesRepository` implementation is registered; it stores HTTP request/response information in memory, and can be retrieved by using the endpoint.
6
6
7
7
## Configure Settings
8
8
9
9
The following table describes the configuration settings that you can apply to the endpoint.
10
10
Each key must be prefixed with `Management:Endpoints:HttpExchanges:`.
11
11
12
12
| Key | Description | Default |
13
-
| --- | --- | --- |
14
-
|`Enabled`| Whether the endpoint is enabled.|`true`|
15
-
|`ID`| The unique ID of the endpoint.|`httpexchanges`|
16
-
|`Path`| The relative path at which the endpoint is exposed.| same as `ID`|
17
-
|`RequiredPermissions`| Permissions required to access the endpoint, when running on Cloud Foundry.|`Restricted`|
18
-
|`AllowedVerbs`| An array of HTTP verbs the endpoint is exposed at.|`GET`|
19
-
|`Capacity`| Size of the circular buffer of exchanges.| 100 |
20
-
|`IncludeRequestHeaders`| Whether to return headers from the HTTP request.|`true`|
21
-
|`RequestHeaders`| An array of HTTP request headers to return unredacted, in addition to the default set.||
22
-
|`IncludeResponseHeaders`| Whether to return headers from the HTTP response.|`true`|
23
-
|`ResponseHeaders`| An array of HTTP response headers to return unredacted, in addition to the default set.||
24
-
|`IncludePathInfo`| Whether to return the path from the HTTP request URL.|`true`|
25
-
|`IncludeQueryString`| Whether to return the query string parameters from the request URL.|`true`|
26
-
|`IncludeUserPrincipal`| Whether to return the username from [`HttpContext.User`](https://learn.microsoft.com/dotnet/api/system.security.claims.claimsprincipal).|`false`|
27
-
|`IncludeRemoteAddress`| Whether to return the IP address from the sender.|`false`|
28
-
|`IncludeSessionId`| Whether to return the user's session ID.|`false`|
29
-
|`IncludeTimeTaken`| Whether to return the request duration.|`true`|
30
-
|`Reverse`| Whether to return exchanges in reverse order (newest first).|`true`|
13
+
| --- | -----------|------- |
14
+
|`Enabled`| Whether the endpoint is enabled |`true`|
15
+
|`ID`| The unique ID of the endpoint |`httpexchanges`|
16
+
|`Path`| The relative path at which the endpoint is exposed | same as `ID`|
17
+
|`RequiredPermissions`| Permissions required to access the endpoint when running on Cloud Foundry |`Restricted`|
18
+
|`AllowedVerbs`| An array of HTTP verbs at which the endpoint is exposed |`GET`|
19
+
|`Capacity`| Size of the circular buffer of exchanges | 100 |
20
+
|`IncludeRequestHeaders`| Whether to return headers from the HTTP request |`true`|
21
+
|`RequestHeaders`| An array of HTTP request headers to return unredacted, in addition to the default set ||
22
+
|`IncludeResponseHeaders`| Whether to return headers from the HTTP response |`true`|
23
+
|`ResponseHeaders`| An array of HTTP response headers to return unredacted, in addition to the default set ||
24
+
|`IncludePathInfo`| Whether to return the path from the HTTP request URL |`true`|
25
+
|`IncludeQueryString`| Whether to return the query string parameters from the request URL |`true`|
26
+
|`IncludeUserPrincipal`| Whether to return the username from [`HttpContext.User`](https://learn.microsoft.com/dotnet/api/system.security.claims.claimsprincipal)|`false`|
27
+
|`IncludeRemoteAddress`| Whether to return the IP address from the sender |`false`|
28
+
|`IncludeSessionId`| Whether to return the user's session ID |`false`|
29
+
|`IncludeTimeTaken`| Whether to return the request duration |`true`|
30
+
|`Reverse`| Whether to return exchanges in reverse order (newest first) |`true`|
31
31
32
32
All request and response header values are redacted by default, except for the whitelisted entries below.
33
33
To return additional headers unredacted, add them to the `RequestHeaders` or `ResponseHeaders` arrays.
34
34
35
35
Whitelist of HTTP request headers:
36
+
36
37
- Accept
37
38
- Accept-Charset
38
39
- Accept-Encoding
@@ -61,6 +62,7 @@ Whitelist of HTTP request headers:
61
62
- X-UA-Compatible
62
63
63
64
Whitelist of HTTP response headers:
65
+
64
66
- Accept-Ranges
65
67
- Age
66
68
- Allow
@@ -86,10 +88,10 @@ Whitelist of HTTP response headers:
86
88
87
89
## Enable HTTP Access
88
90
89
-
The URL path to the endpoint is computed by combining the global `Management:Endpoints:Path` setting together with the `Path` setting described in the preceding section.
91
+
The URL path to the endpoint is computed by combining the global `Management:Endpoints:Path` setting with the `Path` setting described in the preceding section.
90
92
The default path is `/actuator/httpexchanges`.
91
93
92
-
See the [Exposing Endpoints](./using-endpoints.md#exposing-endpoints) and [HTTP Access](./using-endpoints.md#http-access) sections for the overall steps required to enable HTTP access to endpoints in an ASP.NET Core application.
94
+
See the [Exposing Endpoints](./using-endpoints.md#exposing-endpoints) and [HTTP Access](./using-endpoints.md#http-access) sections for the steps required to enable HTTP access to endpoints in an ASP.NET Core application.
93
95
94
96
To add the actuator to the service container and map its route, use the `AddHttpExchangesActuator` extension method.
Copy file name to clipboardExpand all lines: api/v4/management/hypermedia.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,16 @@ The following table describes the configuration settings that you can apply to t
9
9
Each key must be prefixed with `Management:Endpoints:Actuator:`. Note this key differs from the convention used by other actuators.
10
10
11
11
| Key | Description | Default |
12
-
| --- | --- | --- |
13
-
|`Enabled`| Whether the endpoint is enabled.|`true`|
14
-
|`ID`| The unique ID of the endpoint.|`""`|
15
-
|`Path`| The relative path at which the endpoint is exposed.| same as `ID`|
16
-
|`RequiredPermissions`| Permissions required to access the endpoint, when running on Cloud Foundry.|`Restricted`|
17
-
|`AllowedVerbs`| An array of HTTP verbs the endpoint is exposed at.|`GET`|
12
+
| --- | -----------|------- |
13
+
|`Enabled`| Whether the endpoint is enabled |`true`|
14
+
|`ID`| The unique ID of the endpoint |`""`|
15
+
|`Path`| The relative path at which the endpoint is exposed | same as `ID`|
16
+
|`RequiredPermissions`| Permissions required to access the endpoint when running on Cloud Foundry |`Restricted`|
17
+
|`AllowedVerbs`| An array of HTTP verbs at which the endpoint is exposed |`GET`|
18
18
19
19
> [!NOTE]
20
20
> This endpoint is exposed automatically because its ID is empty. To reference this actuator in exposure settings,
21
-
> first configure a non-empty ID. Because the Path is the same as ID unless specified, set it to empty explicitly:
21
+
> start by configuring a non-empty ID. Because the Path is the same as ID unless otherwise specified, set it to empty explicitly:
22
22
> ```json
23
23
> {
24
24
> "Management": {
@@ -37,14 +37,14 @@ Each key must be prefixed with `Management:Endpoints:Actuator:`. Note this key d
37
37
38
38
## Enable HTTP Access
39
39
40
-
The URL path to the endpoint is computed by combining the global `Management:Endpoints:Path` setting together with the `Path` setting described in the preceding section.
40
+
The URL path to the endpoint is computed by combining the global `Management:Endpoints:Path` setting with the `Path` setting described in the preceding section.
41
41
The default path is `/actuator`.
42
42
43
43
> [!NOTE]
44
-
> When running on Cloud Foundry, the [Cloud Foundry Actuator](./cloud-foundry.md) should be used instead,
45
-
> whose default path is `/cloudfoundryapplication`.
44
+
> When running on Cloud Foundry, the [Cloud Foundry Actuator](./cloud-foundry.md) should be used instead.
45
+
> Its default path is `/cloudfoundryapplication`.
46
46
47
-
See the [Exposing Endpoints](./using-endpoints.md#exposing-endpoints) and [HTTP Access](./using-endpoints.md#http-access) sections for the overall steps required to enable HTTP access to endpoints in an ASP.NET Core application.
47
+
See the [Exposing Endpoints](./using-endpoints.md#exposing-endpoints) and [HTTP Access](./using-endpoints.md#http-access) sections for the steps required to enable HTTP access to endpoints in an ASP.NET Core application.
48
48
49
49
To add the actuator to the service container and map its route, use the `AddHypermediaActuator` extension method.
Copy file name to clipboardExpand all lines: api/v4/management/info.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,30 @@
1
1
# Info
2
2
3
-
The Steeltoe Info endpoint exposes information about the running application, such as its version and the Steeltoe version in use.
3
+
The Steeltoe Info endpoint exposes information about the running application, such as its version and the version of Steeltoe in use.
4
4
5
5
Information is collected from all `IInfoContributor` implementations registered in the application.
6
-
Steeltoe includes a couple contributor implementations out of the box that you can use.
7
-
Also, and perhaps more importantly, you can write your own.
6
+
Steeltoe includes a couple of contributor implementations out of the box that you can use.
7
+
You can also write your own implementations.
8
8
9
9
## Configure Settings
10
10
11
11
The following table describes the configuration settings that you can apply to the endpoint.
12
12
Each key must be prefixed with `Management:Endpoints:Info:`.
13
13
14
14
| Key | Description | Default |
15
-
| --- | --- | --- |
16
-
|`Enabled`| Whether the endpoint is enabled.|`true`|
17
-
|`ID`| The unique ID of the endpoint.|`info`|
18
-
|`Path`| The relative path at which the endpoint is exposed.| same as `ID`|
19
-
|`RequiredPermissions`| Permissions required to access the endpoint, when running on Cloud Foundry.|`Restricted`|
20
-
|`AllowedVerbs`| An array of HTTP verbs the endpoint is exposed at.|`GET`|
15
+
| --- | -----------|------- |
16
+
|`Enabled`| Whether the endpoint is enabled |`true`|
17
+
|`ID`| The unique ID of the endpoint |`info`|
18
+
|`Path`| The relative path at which the endpoint is exposed | same as `ID`|
19
+
|`RequiredPermissions`| Permissions required to access the endpoint, when running on Cloud Foundry |`Restricted`|
20
+
|`AllowedVerbs`| An array of HTTP verbs at which the endpoint is exposed |`GET`|
21
21
22
22
## Enable HTTP Access
23
23
24
-
The URL path to the endpoint is computed by combining the global `Management:Endpoints:Path` setting together with the `Path` setting described in the preceding section.
24
+
The URL path to the endpoint is computed by combining the global `Management:Endpoints:Path` setting with the `Path` setting described in the preceding section.
25
25
The default path is `/actuator/info`.
26
26
27
-
See the [Exposing Endpoints](./using-endpoints.md#exposing-endpoints) and [HTTP Access](./using-endpoints.md#http-access) sections for the overall steps required to enable HTTP access to endpoints in an ASP.NET Core application.
27
+
See the [Exposing Endpoints](./using-endpoints.md#exposing-endpoints) and [HTTP Access](./using-endpoints.md#http-access) sections for the steps required to enable HTTP access to endpoints in an ASP.NET Core application.
28
28
29
29
To add the actuator to the service container and map its route, use the `AddInfoActuator` extension method.
> It is recommended that you use `AddAllActuators()` instead of adding individual actuators,
42
-
> which enables individually turning them on/off at runtime via configuration.
41
+
> It is recommended that you use `AddAllActuators()` instead of adding individual actuators;
42
+
> this enables individually turning them on/off at runtime via configuration.
43
43
44
44
## Built-in Contributors
45
45
@@ -50,6 +50,7 @@ This contributor exposes file/version info for both the application and the incl
50
50
### Configuration
51
51
52
52
This contributor exposes any values below the `Info` configuration key. For example:
53
+
53
54
```json
54
55
{
55
56
"Info": {
@@ -68,15 +69,15 @@ This contributor exposes any values below the `Info` configuration key. For exam
68
69
69
70
### Git properties
70
71
71
-
Exposes information from the `git.properties` Spring Boot file, if available.
72
-
Shows information from git, such as branch/tag name, commit hash, and remote.
72
+
*Exposes information from the `git.properties` Spring Boot file, if available
73
+
*Shows information from git, such as branch/tag name, commit hash, and remote
73
74
74
75
> [!NOTE]
75
76
> For an example of how to use this contributor within MSBuild using [GitInfo](https://github.com/devlooped/GitInfo), see the [Steeltoe Management sample](https://github.com/SteeltoeOSS/Samples/tree/main/Management/src).
76
77
77
78
## Sample Output
78
79
79
-
Depending on the registered contributors, this endpoint returns JSON such as this:
80
+
Depending on the registered contributors, this endpoint returns JSON similar to this:
0 commit comments