hashicorp / hashicorp/consul

Add services metadata to TXT DNS records

Open
#8,733 3 comments 1 reaction 1 assignee Claimed by @blake View on GitHub
theme/dns type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

#### Feature Description

Currently only `node_meta` is exposed in DNS queries as TXT records when `enable_additional_node_meta_txt` is on and there's no way to add separate TXT records for services.

Add `enable_additional_service_meta_txt` (default false) flag and when it's enabled expose services' metadata just like `node_meta` in TXT queries.

#### Use Case(s)

Golang and C/C++ gRPC drivers make use of TXT records as a source of [service config](https://github.com/grpc/grpc/blob/master/doc/service_config.md)

https://github.com/grpc/grpc-go/blob/master/internal/resolver/dns/dns_resolver.go#L61
https://github.com/grpc/grpc/blob/16b0cf0944a0a29c7a12d3a69293c82daa56cdc3/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc#L339

If this accepted I can implement it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.