diff --git a/nomad/acl_endpoint.go b/nomad/acl_endpoint.go index 23a9e9913af..6c61ce46d36 100644 --- a/nomad/acl_endpoint.go +++ b/nomad/acl_endpoint.go @@ -1013,6 +1013,8 @@ func (a *ACL) ExpireOneTimeTokens(args *structs.OneTimeTokenExpireRequest, reply } } + args.Timestamp = time.Now() // use the leader's timestamp + // Expire token via raft; because this is the only write in the RPC the // caller can safely retry with the same token if the raft write fails _, index, err := a.srv.raftApply(structs.OneTimeTokenExpireRequestType, args)