diff --git a/nomad/state/schema.go b/nomad/state/schema.go index 2effff87c..89bc9ed0a 100644 --- a/nomad/state/schema.go +++ b/nomad/state/schema.go @@ -99,6 +99,14 @@ func nodeTableSchema() *memdb.TableSchema { Field: "ID", }, }, + "secret_id": { + Name: "secret_id", + AllowMissing: false, + Unique: true, + Indexer: &memdb.UUIDFieldIndex{ + Field: "SecretID", + }, + }, }, } }