Skip to content

fix: use AgentTeams cluster header for STS auth - #86

Merged
Sunrisea merged 1 commit into
nacos-group:mainfrom
maplefeng-a:fix/agentteams-cluster-header
Jun 25, 2026
Merged

Sunrisea merged 1 commit into
nacos-group:mainfrom
maplefeng-a:fix/agentteams-cluster-header

Conversation

@maplefeng-a

Copy link
Copy Markdown
Contributor

Summary

  • send X-AgentTeams-Cluster-ID when authType=sts-agentteams refreshes controller-issued STS credentials
  • keep X-HiClaw-Cluster-ID for legacy sts-hiclaw auth
  • update the AgentTeams STS header test to reject the old header

Tests

  • GOCACHE=/private/tmp/nacos-cli-go-cache GOMODCACHE=/private/tmp/nacos-cli-gomodcache go test ./...

Context

Remote AgentTeams workers set AGENTTEAMS_CLUSTER_ID; the CLI already reads that env for sts-agentteams, but it still sent the legacy X-HiClaw-Cluster-ID header to the controller STS endpoint. Controllers that only recognize X-AgentTeams-Cluster-ID reject the STS request with 401, preventing agentspec-get from using authType=sts-agentteams.

@CLAassistant

CLAassistant commented Jun 25, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Sunrisea
Sunrisea merged commit fa8bbce into nacos-group:main Jun 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants