Skip to content

Auto-Join: Configurable Scheme & Port (and add k8s provider)#10192

Merged
alexanderbez merged 20 commits into
masterfrom
core/auto-join-scheme-port-cfg
Oct 23, 2020
Merged

Auto-Join: Configurable Scheme & Port (and add k8s provider)#10192
alexanderbez merged 20 commits into
masterfrom
core/auto-join-scheme-port-cfg

Conversation

@alexanderbez
Copy link
Copy Markdown
Contributor

@alexanderbez alexanderbez commented Oct 20, 2020

  • Allow operators to define a scheme and/or port in the retry_join stanza used for auto-join IP discovery. Vault defaults to HTTPS/8200 when these values are not provided.
  • Introduce k8s provider (tested by @jasonodonnell)
  • Update docs

Comment thread vault/raft.go
Comment thread physical/raft/raft.go Outdated
@alexanderbez alexanderbez force-pushed the core/auto-join-scheme-port-cfg branch from a5fcbb0 to 3a58a54 Compare October 20, 2020 20:25
Comment thread physical/raft/raft.go

// AutoJoinScheme defines the optional URI protocol scheme for addresses
// discovered via auto-join.
AutoJoinScheme string `json:"auto_join_scheme"`
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we want omitempty on this and the other AutoJoin fields?

Copy link
Copy Markdown
Contributor Author

@alexanderbez alexanderbez Oct 20, 2020

Choose a reason for hiding this comment

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

Depends. Is this configuration exposed in any responses or other client-facing calls? I'm suspicion is that it's not. @briankassouf?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, I don't actually think that we ever json marshal this struct, but you may want to confirm that.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I was thinking about the sanitized config output, though perhaps it doesn't marshall this directly.

@alexanderbez alexanderbez changed the title Auto-Join: Configurable Scheme & Port Auto-Join: Configurable Scheme & Port (and add k8s provider) Oct 20, 2020
Comment thread vault/raft.go
@alexanderbez alexanderbez marked this pull request as ready for review October 21, 2020 13:53
Comment thread command/operator_raft_join.go Outdated
@ncabatoff ncabatoff added this to the 1.6 milestone Oct 23, 2020
@alexanderbez
Copy link
Copy Markdown
Contributor Author

1.6.x backport => #10229

ncabatoff pushed a commit that referenced this pull request Oct 26, 2020
pull Bot pushed a commit to sigtrap/vault that referenced this pull request Oct 17, 2025
Synchronize all common Go module versions with enterprise.

Signed-off-by: Ryan Cragun <me@ryan.ec>
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.

3 participants