hashicorp / hashicorp/consul

Agent configuration file parsing error

Open
#17,595 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
1d 18h
Merged PRs (30d)
39

Description

#### Overview of the Issue

As shown, using the array syntax in hcl, a value is configured
![image](https://github.com/hashicorp/consul/assets/61787040/bc2f6291-8be5-49e4-bd12-29f17116d7de)

But when the agent starts, it reports an error that "got string". I have to explicitly configure multiple values in the array to get around this error
![image](https://github.com/hashicorp/consul/assets/61787040/f1630666-4212-4f3f-9735-0f0631e8e3cf)

---

Contributor guide

Open the contributing guide

Research direction

Start by recovering the exact HCL configuration from the issue screenshots and reproducing the agent startup error. Inspect the agent configuration parsing path to determine why a single-element array is treated as a string. Done means valid array syntax is accepted without the “got string” error and the behavior is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.