From dddfbeaa10db58419b368b5505d70075d8568897 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Tue, 20 Feb 2018 09:51:34 -0800 Subject: [PATCH] Increase maximum ACL token length This mitigates issues when generating Nomad ACL tokens from Vault. --- CHANGELOG.md | 1 + nomad/structs/structs.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 752137126b13..1d87831d8e4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ __BACKWARDS INCOMPATIBILITIES:__ IMPROVEMENTS: * core: Allow upgrading/downgrading TLS via SIGHUP on both servers and clients [[GH-3492](https://github.com/hashicorp/nomad/issues/3492)] * core: A set of features (Autopilot) has been added to allow for automatic operator-friendly management of Nomad servers. For more information about Autopilot, see the [Autopilot Guide](https://www.nomadproject.io/guides/cluster/autopilot.html). [[GH-3670](https://github.com/hashicorp/nomad/pull/3670)] + * acl: Increase token name limit from 64 characters to 256 [[GH-3888](https://github.com/hashicorp/nomad/issues/3888)] * cli: Use ISO_8601 time format for cli output [[GH-3814](https://github.com/hashicorp/nomad/pull/3814)] * client: Allow '.' in environment variable names [[GH-3760](https://github.com/hashicorp/nomad/issues/3760)] diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index bcc408074a90..78e8477ed758 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -112,7 +112,7 @@ const ( maxPolicyDescriptionLength = 256 // maxTokenNameLength limits a ACL token name length - maxTokenNameLength = 64 + maxTokenNameLength = 256 // ACLClientToken and ACLManagementToken are the only types of tokens ACLClientToken = "client"