-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3853 from zowe/balhar-jakub/apiml/v3/yaml-fixes
Further fixes for V3 from API Mediation Layer
- Loading branch information
Showing
10 changed files
with
129 additions
and
114 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 18 additions & 13 deletions
31
docs/user-guide/api-mediation/configuration-health-endpoint-protection.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,48 @@ | ||
# Configuring API Gateway Health Check Protection | ||
# Configuring Health Check Protection | ||
|
||
:::info Role: system programmer | ||
::: | ||
|
||
As a system programmer, you can configure the security setting for the health check endpoint of the API Gateway. This setting determines whether the health check endpoint is accessible without authentication, or alternatively requires authentication. Enabling protection for the health check endpoint can enhance the security of the API Gateway by restricting access to sensitive status information about the Gateway. | ||
As a system programmer, you can disable the security setting for the health check endpoint of the API Gateway. This setting determines whether the health check endpoint is accessible without authentication, or alternatively requires authentication. In Zowe V2, authentication was not required. Disabling protection for the health check endpoint can limit the security of the API Gateway by allowing access to sensitive status information about the Gateway. | ||
|
||
Use the following procedure to set the value of the health check endpoint of the API Gateway: | ||
|
||
1. Open the file `zowe.yaml`. | ||
2. Configure the following property: | ||
|
||
* `components.gateway.apiml.gateway.health.protected` | ||
* `components.gateway.apiml.health.protected` | ||
This property defines whether the health check endpoint is accessible with or without authentication. | ||
|
||
:::note | ||
The default value of this parameter is `false`. We recommend setting this parameter to `true` for production environments. | ||
The default value of this parameter is `true`. | ||
::: | ||
|
||
**Example:** | ||
```yaml | ||
zowe: | ||
components: | ||
components: | ||
gateway: | ||
apiml: | ||
gateway: | ||
health: | ||
protected: true | ||
apiml: | ||
gateway: | ||
health: | ||
protected: true | ||
``` | ||
In this example, setting `protected` to `true` protects the health check endpoint by requiring authentication. Only authenticated users can access the health check endpoint. This ensures that sensitive information about the status of the Gateway is not exposed to unauthenticated users. | ||
In this example, setting `protected` to `true` protects the health check endpoint by requiring authentication. Only authenticated users can access the health check endpoint. Requiring authentication ensures that sensitive information about the status of the Gateway is not exposed to unauthenticated users. | ||
|
||
To allow open access to the health check endpoint, set the parameter to `false`. Setting this parameter to `false` permits access to this endpoint without authentication. In this case, anyone can access the health check endpoint and obtain information about the status of the Gateway. | ||
|
||
* `components.discovery.apiml.health.protected` | ||
This property defines whether the health check endpoint on Discovery service is accessible with or without authentication. | ||
* `components.apiCatalog.apiml.health.protected` | ||
This property defines whether the health check endpoint on API Catalog is accessible with or without authentication. | ||
|
||
|
||
## Environment Recommendations | ||
|
||
When setting this parameter, we recommend applying the following values according to your environment: | ||
|
||
* **In Production Environments** | ||
It is recommended to set `apiml.gateway.health.protected` to `true` to enhance security and protect sensitive information about the API Gateway's health status. | ||
It is recommended to set `components.*.apiml.health.protected` to `true` to enhance security and protect sensitive information about the API Gateway's health status. This is the default. | ||
|
||
* **In Development/Testing Environments** | ||
setting `apiml.gateway.health.protected` to `false` can simplify the testing process, reduce development overhead, and assist with debugging. | ||
setting `components.*.apiml.health.protected` to `false` can simplify the testing process, reduce development overhead, and assist with debugging. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters