Skip to content

X-Consul-Header request header is always optional#972

Merged
ryanjbaxter merged 1 commit intospring-cloud:mainfrom
wombleabroad:feature/x-consul-token-header-always-optional
Mar 31, 2026
Merged

X-Consul-Header request header is always optional#972
ryanjbaxter merged 1 commit intospring-cloud:mainfrom
wombleabroad:feature/x-consul-token-header-always-optional

Conversation

@wombleabroad
Copy link
Copy Markdown
Contributor

The agentServiceDeregister and agentServiceSetMaintenance operations within ConsulClient both required a Consul ACL token passed via the X-Consul-Token request header. This header is now optional for these two operations, consistent with all other token-based operations within this interface.

The `agentServiceDeregister` and `agentServiceSetMaintenance` operations within `ConsulClient` both required a Consul ACL token passed via the X-Consul-Token request header. This header is now optional for these two operations, consistent with all other token-based operations within this interface.

Signed-off-by: Gareth Davies <womble.abroad@gmail.com>
@wombleabroad wombleabroad changed the title Fixes #970 X-Consul-Header request header is always optional Mar 31, 2026
@ryanjbaxter ryanjbaxter linked an issue Mar 31, 2026 that may be closed by this pull request
@ryanjbaxter ryanjbaxter merged commit b8756b5 into spring-cloud:main Mar 31, 2026
2 checks passed
@ryanjbaxter
Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ConsulClient.agentServiceDeregister requires X-Consul-Token header

3 participants