mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +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:
		| @@ -1163,6 +1163,15 @@ func (c *ServerCommand) Run(args []string) int { | ||||
| 	if envLicense := os.Getenv(EnvVaultLicense); envLicense != "" { | ||||
| 		config.License = envLicense | ||||
| 	} | ||||
| 	if disableSSC := os.Getenv(DisableSSCTokens); disableSSC != "" { | ||||
| 		var err error | ||||
| 		config.DisableSSCTokens, err = strconv.ParseBool(disableSSC) | ||||
| 		if err != nil { | ||||
| 			c.UI.Warn(wrapAtLength("WARNING! failed to parse " + | ||||
| 				"VAULT_DISABLE_SERVER_SIDE_CONSISTENT_TOKENS env var: " + | ||||
| 				"setting to default value false")) | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	// If mlockall(2) isn't supported, show a warning. We disable this in dev | ||||
| 	// because it is quite scary to see when first using Vault. We also disable | ||||
| @@ -2502,6 +2511,7 @@ func createCoreConfig(c *ServerCommand, config *server.Config, backend physical. | ||||
| 		EnableResponseHeaderRaftNodeID: config.EnableResponseHeaderRaftNodeID, | ||||
| 		License:                        config.License, | ||||
| 		LicensePath:                    config.LicensePath, | ||||
| 		DisableSSCTokens:               config.DisableSSCTokens, | ||||
| 	} | ||||
| 	if c.flagDev { | ||||
| 		coreConfig.EnableRaw = true | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Hridoy Roy
					Hridoy Roy