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

Backport of GH-20889 - put conditionals are hcp initialization for consul server into release/1.18.x #20932

Merged
merged 5 commits into from
Mar 28, 2024

Conversation

hc-github-team-consul-core
Copy link
Contributor

Backport

This PR is auto-generated from #20926 to be assessed for backporting due to the inclusion of the label backport/1.18.

The below text is copied from the body of the original PR.


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

Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/jm/gh-20889/seemingly-honest-iguana branch from 5e12125 to 3061338 Compare March 28, 2024 20:47
@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
Copy link

Choose a reason for hiding this comment

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

Auto approved Consul Bot automated PR

@jmurret jmurret enabled auto-merge (squash) March 28, 2024 20:55
@jmurret jmurret merged commit 2eb5d24 into release/1.18.x Mar 28, 2024
82 checks passed
@jmurret jmurret deleted the backport/jm/gh-20889/seemingly-honest-iguana branch March 28, 2024 21:17
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
Development

Successfully merging this pull request may close these issues.

3 participants