mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	SSCT Tokens Feature [OSS] (#14109)
* port SSCT OSS * port header hmac key to ent and generate token proto without make command * remove extra nil check in request handling * add changelog * add comment to router.go * change test var to use length constants * remove local index is 0 check and extra defer which can be removed after use of ExternalID
This commit is contained in:
		| @@ -435,7 +435,7 @@ func TestOperatorGenerateRootCommand_Run(t *testing.T) { | ||||
| 			t.Fatal(err) | ||||
| 		} | ||||
|  | ||||
| 		if l, exp := len(token), vault.TokenLength+2; l != exp { | ||||
| 		if l, exp := len(token), vault.TokenLength+vault.TokenPrefixLength; l != exp { | ||||
| 			t.Errorf("expected %d to be %d: %s", l, exp, token) | ||||
| 		} | ||||
| 	}) | ||||
| @@ -521,7 +521,7 @@ func TestOperatorGenerateRootCommand_Run(t *testing.T) { | ||||
| 			t.Fatal(err) | ||||
| 		} | ||||
|  | ||||
| 		if l, exp := len(token), vault.TokenLength+2; l != exp { | ||||
| 		if l, exp := len(token), vault.TokenLength+vault.TokenPrefixLength; l != exp { | ||||
| 			t.Errorf("expected %d to be %d: %s", l, exp, token) | ||||
| 		} | ||||
| 	}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Hridoy Roy
					Hridoy Roy