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

GH-20889 - put conditionals are hcp initialization for consul server #20926

Merged
merged 5 commits into from
Mar 28, 2024

Conversation

jmurret
Copy link
Member

@jmurret jmurret commented Mar 28, 2024

Description

Fixes #20889

HCP code is executing in cases where it not enabled in the cloud stanza of the config. In this instance, the hcp-sdk-go module is trying to access the user's home directory.

There is an upstream fix that needs to occur in hcp-sdk-go. For now, in Consul, we will just wrap these code blocks in conditionals to see that HCP has been configured before running them.

Testing & Reproduction steps

run consul in 1.18 without a HOME directory. then run this version

Links

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

@jmurret jmurret requested a review from a team as a code owner March 28, 2024 16:07
@github-actions github-actions bot added theme/cli Flags and documentation for the CLI interface theme/config Relating to Consul Agent configuration, including reloading labels Mar 28, 2024
@jmurret jmurret requested review from mkam and david-yu March 28, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/cli Flags and documentation for the CLI interface theme/config Relating to Consul Agent configuration, including reloading
Projects
None yet
3 participants