mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-11-04 04:28:08 +00:00 
			
		
		
		
	website: Adding CIDR block config to app-id
This commit is contained in:
		@@ -79,14 +79,15 @@ example is shown below, use `vault help` for more details.
 | 
			
		||||
$ vault write auth/app-id/map/app-id/foo value=root display_name=foo
 | 
			
		||||
...
 | 
			
		||||
 | 
			
		||||
$ vault write auth/app-id/map/user-id/bar value=foo
 | 
			
		||||
$ vault write auth/app-id/map/user-id/bar value=foo cidr_block=10.0.0.0/16
 | 
			
		||||
...
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
The above creates an App ID "foo" that associates with the policy "root".
 | 
			
		||||
The `display_name` sets the display name for audit logs and secrets.
 | 
			
		||||
Next, we configure the user ID "bar" and say that the user ID bar
 | 
			
		||||
can be paired with "foo".
 | 
			
		||||
can be paired with "foo" but only in client is in the "10.0.0.0/16" CIDR block.
 | 
			
		||||
The `cidr_block` configuration is optional.
 | 
			
		||||
 | 
			
		||||
This means that if a client authenticates and provide both "foo" and "bar",
 | 
			
		||||
then the app ID will authenticate that client with the policy "root".
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user