Skip to content
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

Merged
merged 13 commits into from
Apr 20, 2021

Conversation

raskchanky
Copy link
Contributor

This addition is the result of a customer request.

@raskchanky raskchanky requested a review from a team April 6, 2021 22:05
http/handler.go Outdated Show resolved Hide resolved
http/handler.go Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 6, 2021 23:39 Inactive
@vercel vercel bot temporarily deployed to Preview – vault April 6, 2021 23:39 Inactive
http/handler.go Outdated Show resolved Hide resolved
vault/raft.go Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 7, 2021 23:56 Inactive
@vercel vercel bot temporarily deployed to Preview – vault April 7, 2021 23:56 Inactive
command/server/config.go Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 8, 2021 18:24 Inactive
@vercel vercel bot temporarily deployed to Preview – vault April 8, 2021 18:24 Inactive
@vercel vercel bot temporarily deployed to Preview – vault April 8, 2021 18:29 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 8, 2021 18:29 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 8, 2021 22:29 Inactive
Copy link
Contributor

@briankassouf briankassouf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@@ -68,6 +68,12 @@ type Config struct {

DisableSentinelTrace bool `hcl:"-"`
DisableSentinelTraceRaw interface{} `hcl:"disable_sentinel_trace"`

HostnameHeader bool `hcl:"-"`
HostnameHeaderRaw interface{} `hcl:"hostname_header"`
Copy link
Contributor

@vishalnayak vishalnayak Apr 9, 2021

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?

Copy link
Contributor

@vishalnayak vishalnayak Apr 9, 2021

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.

Copy link
Contributor Author

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.

@vercel vercel bot temporarily deployed to Preview – vault-storybook April 12, 2021 18:32 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 12, 2021 18:42 Inactive
@vercel vercel bot temporarily deployed to Preview – vault April 20, 2021 21:56 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 20, 2021 21:56 Inactive
@raskchanky raskchanky merged commit 795ce10 into master Apr 20, 2021
@raskchanky raskchanky deleted the api-node-name branch April 20, 2021 22:25
@mladlow mladlow modified the milestones: 1.7.1, 1.7.2 Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants