hashicorp / hashicorp/consul

Allow MetaData to store dictionaries and arrays

Open
#12,730 0 comments 0 reactions 0 assignees View on GitHub
theme/kv type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
1d 18h
Merged PRs (30d)
39

Description

#### Feature Description
Is there a reason the metadata KV store is limited to strings?

I'd really like to be able to also store arrays or dictionaries containing more metadata about a given service.

#### Use Case(s)

- Storing a list of authors for a component
- Storing dependents and their versions

We use the register meta section to store descriptions for a connected service, but have to store other info in a database instead.

Contributor guide

Open the contributing guide

Research direction

Start by locating Consul's metadata KV store and register meta entry points; no files or tests are identified in the issue. Review how string values are represented and validated, then define compatible array and dictionary handling for the listed author and dependent-version use cases, with tests covering the new metadata shapes.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.