hashicorp / hashicorp/nomad

Tokens endpoint always returns empty Name string for its roles

Open
#18,451 0 comments 0 reactions 1 assignee Claimed by @philrenaud View on GitHub
stage/accepted theme/security type/bug
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

Exploring adding roles to a token, and while the response from the /tokens endpoint includes a Roles list with Name fields, they appear to always be blank, while the CLI returns names as expected.

![image](https://github.com/hashicorp/nomad/assets/713991/9b56b195-c518-4607-bd2b-eeb2baee846d)

image
image

I'm still able to use the ID provided to make a separate request to the role to get its name and other properties, but the presence of the Name field in the tokens response indicates that I should expect it here, too.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.