-
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 HTTP response headers for hostname and raft node ID (if applicable) #11289
Conversation
45ed4bf
to
d698f5d
Compare
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.
Looks good!
command/server/config.go
Outdated
@@ -68,6 +68,12 @@ type Config struct { | |||
|
|||
DisableSentinelTrace bool `hcl:"-"` | |||
DisableSentinelTraceRaw interface{} `hcl:"disable_sentinel_trace"` | |||
|
|||
HostnameHeader bool `hcl:"-"` | |||
HostnameHeaderRaw interface{} `hcl:"hostname_header"` |
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.
When it is a config that is indicating Vault "to do something", we might want to go with using verbs in the names to make them self explanatory. In that sense, we may want to do something like enable_hostname_response_header
and enable_raft_node_id_response_header
.
This would be inline with disable_mlock
, disable_sentinel_trace
, disable_clustering
, disable_sealwrap
and disable_performance_standby
.
What do you think?
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.
Or actually enable_response_header_hostname
and enable_response_header_raft_node_id
to set the prefix for more response headers we may want to add in future.
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.
Sure, makes sense. I'll update it.
ae028e0
to
f58ebce
Compare
This addition is the result of a customer request.