Skip to content

ACL token is not sent with events #709

Closed

Description

@kevinimbrechts

Hi there.

I am using Consul 1.6.1 with CAS 6.3.2 (Apereo) with cas-server-support-consul-client (https://mvnrepository.com/artifact/org.apereo.cas/cas-server-support-consul-client/6.3.2) and it seems that Spring Cloud doesn't send the ACL token (spring.cloud.consul.discovery.acl-token) for events (PUT /v1/event/fire/serviceThemeResolverSupportedBrowsers-out-0 for exemple).
CAS use cas-server-support-consul-client (org.apereo.cas)

I think the problem comes from this class: https://github.com/spring-cloud/spring-cloud-consul/blob/master/spring-cloud-consul-binder/src/main/java/org/springframework/cloud/consul/binder/ConsulSendingHandler.java

I see a TODO to send headers, and Consul use Authorization or CONSUL_HTTP_TOKEN headers.

Can you confirm that the problem is there?

Many thanks.

Activity

  1. yashdotdev13 commented on Nov 1, 2026

    @yashdotdev13
    Contributor

    I have submitted PR #1042 to address this issue.

    The changes propagate the Consul ACL token through both ConsulSendingHandler and EventService when firing events.
    I've also added regression tests covering both paths, and the complete binder test suite passes.

    Could you please review the PR when you get a chance? Thank you!

  2. added this to the 5.1.0-RC2 milestone on Nov 3, 2026
  3. moved this from In Progress to Done in 2026.0.0-RC2on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions