-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add Ability to Disable Replication Status Endpoints in Listener Configuration #23547
Add Ability to Disable Replication Status Endpoints in Listener Configuration #23547
Conversation
Build Results: |
CI Results: |
13583de
to
7bbd5bb
Compare
- `disable_replication_status_endpoints` `(bool: false)` - If set true, the | ||
replication status endpoints will be disabled for requests sent to this | ||
listener. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `disable_replication_status_endpoints` `(bool: false)` - If set true, the | |
replication status endpoints will be disabled for requests sent to this | |
listener. | |
- `disable_replication_status_endpoints` `(bool: false)` - Disables replication | |
status endpoints for the configured listener when set to `true`. |
Style correction: write in active voice, avoid "this" as a pronoun
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this reads much better.
@@ -133,6 +133,14 @@ func rateLimitQuotaWrapping(handler http.Handler, core *vault.Core) http.Handler | |||
}) | |||
} | |||
|
|||
func disableReplicationStatusEndpointWrapping(h http.Handler) http.Handler { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just needs a go doc comment here 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just needs @schavis' suggestions taken into account for the docs update. 🚀
@schavis, I've make the edit you suggested. |
* remove arg * changelog
* ensure nodes are asked to reload audit files on SIGHUP * added changelog
* redaction should only work for TCP listeners, also fix bug that allowed custom response headers for unix listeners * fix failing test * updates from PR feedback
… to refactored parsing code
@@ -0,0 +1,3 @@ | |||
```release-note:feature | |||
config/listener: allow per-listener configuration setting to disable replication status endpoints. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marcboudreau next time please use the correct new feature formatting for new features in the changelog - this also applies to #23534 and #23740. Probably there should be only a single changelog entry introducing the feature as a whole.
This PR adds the ability to parse a configuration setting in the TCP listener configuration section so that the value can be stored in the http.Request context. This will allow the enterprise version implementation of the replication status endpoints:
sys/replication/status
sys/replication/dr/status
sys/replication/performance/status
to react accordingly.