Skip to content

The X-Consul-Token request header is always optional#971

Closed
wombleabroad wants to merge 5 commits intospring-cloud:mainfrom
wombleabroad:feature/client-acl-token-header-always-optional
Closed

The X-Consul-Token request header is always optional#971
wombleabroad wants to merge 5 commits intospring-cloud:mainfrom
wombleabroad:feature/client-acl-token-header-always-optional

Conversation

@wombleabroad
Copy link
Copy Markdown
Contributor

Fixes #970

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, consistent with all other token-based operations within this interface.

Fixes spring-cloud#970

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, consistent with all other token-based operations within this interface.
@ryanjbaxter
Copy link
Copy Markdown
Contributor

Can you sign your commit so the DCO check passes?

Gareth Davies added 2 commits March 31, 2026 08:48
Fixes spring-cloud#970

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, consistent with all other token-based operations within this interface.

Signed-off-by: Gareth Davies <womble.abroad@gmail.com>
…token-header-always-optional' into feature/client-acl-token-header-always-optional
@wombleabroad
Copy link
Copy Markdown
Contributor Author

Ugh, that was ugly, sorry. It's been a long time since I last amended a commit.

@ryanjbaxter
Copy link
Copy Markdown
Contributor

No worries but the commits still are not signed

@wombleabroad
Copy link
Copy Markdown
Contributor Author

Are you talking about GPG-signing? I thought the DCO was complaining about the missing "Signed-off-by: Gareth Davies womble.abroad@gmail.com" line, which I added as part of ce85796.

If you need a GPG signature, I'll decline this PR and generate a new one. I don't want to mess around with Git commit history.

@ryanjbaxter
Copy link
Copy Markdown
Contributor

This is why the DCO is failing

Commit sha: ce85796, Author: Gareth Davies, Committer: Gareth Davies; Expected "Gareth Davies gareth.i.davies@charter.com", but got "Gareth Davies womble.abroad@gmail.com".

@wombleabroad
Copy link
Copy Markdown
Contributor Author

Oh, because I used my work laptop to make the change. Let me double-check my company's guidance on contributing to open-source projects. I may need to switch to my personal laptop...

Gareth Davies and others added 2 commits March 31, 2026 10:46
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, consistent with all other token-based operations within this interface.

Signed-off-by: Gareth Davies <gareth.i.davies@spectrum.com>
…token-header-always-optional' into feature/client-acl-token-header-always-optional
@wombleabroad
Copy link
Copy Markdown
Contributor Author

@ryanjbaxter, I'm declining this PR and will submit a new (cleaner) one from my personal account.

@wombleabroad wombleabroad deleted the feature/client-acl-token-header-always-optional branch March 31, 2026 18:18
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