mirror of
https://github.com/status-im/consul.git
synced 2025-02-08 20:05:09 +00:00
Ongoing work to support Nomad Workload Identity for authenticating with Consul will mean that Nomad's service registration sync with Consul will want to use Consul tokens scoped to individual workloads for registering services and checks. The `ServiceRegisterOpts` type in the API doesn't have an option to pass the token in, which prevent us from sharing the same Consul connection for all workloads. Add a `Token` field to match the behavior of `ServiceDeregisterOpts`.
4 lines
100 B
Plaintext
4 lines
100 B
Plaintext
```release-note:improvement
|
|
api: added `Token` field to `ServiceRegisterOpts` type in Agent API
|
|
```
|