Skip to content

No token present in the environment #26176

Open
@URZ-HD

Description

@URZ-HD

Nomad version

Nomad v1.10.2
BuildDate 2025-06-09T22:00:49Z
Revision df4c764

Operating system and Environment details

RHEL 8.10

Issue

Since updating to 1.10.2 the following command no longer works as expected:

nomad acl token self -token e8115705-04a1-XXXXXXXXXX

Reproduction steps

use mentioned cli command on 1.10.2 without NOMAD_TOKEN set in Environment

Expected Result

showing information about the given token, like:
Accessor ID = 30a0af0f-42df-XXXXXXXXX
Secret ID = e8115705-XXXXXXXXXXX
Name = vault-keepalive-approle-1751368896831213626
Type = client
Global = false
Create Time = 2025-07-01 11:21:36.840217603 +0000 UTC
Expiry Time =
Create Index = 7465533
Modify Index = 7465533
Policies = [keepalive-check]

Roles

Actual Result

nomad acl token self -token e8115705-XXXXXXXXXX
No token present in the environment

When seeing the Token as Environment Variable NOMAD_TOKEN, the command works (with or without -token parameter) like:

export NOMAD_TOKEN=e8115705-XXXXXXXXXX
nomad acl token self -token e8115705-XXXXXXXXXX

Accessor ID = 30a0af0f-42df-6ed3-f5f5-113de7191658
Secret ID = e8115705-XXXXXXXXXX
Name = vault-keepalive-approle-1751368896831213626
Type = client
Global = false
Create Time = 2025-07-01 11:21:36.840217603 +0000 UTC
Expiry Time =
Create Index = 7465533
Modify Index = 7465533
Policies = [keepalive-check]

Roles

Job file (if appropriate)

not job related

Nomad Server logs (if appropriate)

Nomad Client logs (if appropriate)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions