forked from rackerlabs/genestack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Readonly user documentation
This change will permit readonly access to a given project/domain. Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
- Loading branch information
Showing
4 changed files
with
102 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Create a Readonly User | ||
|
||
The following commands will setup a readonly user which is able to read data across domains. | ||
|
||
## Create the VMM user and project | ||
|
||
After running the following commands, a readonly user (example: `vmm`) will have read only access to everything under the `default` and `rackspace_cloud_domain` domains. | ||
|
||
### Create a project | ||
|
||
``` shell | ||
openstack --os-cloud default project create --description 'vmm enablement' vmm --domain default | ||
``` | ||
|
||
### Create a new user | ||
|
||
!!! tip "Make sure to set the password accordingly" | ||
|
||
``` shell | ||
PASSWORD=SuperSecrete | ||
``` | ||
|
||
``` shell | ||
openstack --os-cloud default user create --project vmm --password ${PASSWORD} vmm --domain default | ||
``` | ||
|
||
### Add the member role to the new user | ||
|
||
``` shell | ||
openstack --os-cloud default role add --user vmm --project vmm member --inherited | ||
``` | ||
|
||
### Add the reader roles for user `vmm` to the `default` domain | ||
|
||
``` shell | ||
openstack --os-cloud default role add --user vmm --domain default reader --inherited | ||
``` | ||
|
||
### Add the reader role for user `vmm` to the `rackspace_cloud_domain` domain | ||
|
||
``` shell | ||
openstack --os-cloud default role add --user vmm --domain rackspace_cloud_domain reader --inherited | ||
``` | ||
|
||
### Add the reader role for user `vmm` to the system | ||
|
||
``` shell | ||
openstack --os-cloud default role add --user vmm --system all reader | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[ | ||
{ | ||
"local": [ | ||
{ | ||
"user": { | ||
"name": "{0}", | ||
"email": "{1}" | ||
} | ||
}, | ||
{ | ||
"projects": [ | ||
{ | ||
"name": "{2}_Flex", | ||
"roles": [ | ||
{ | ||
"name": "member" | ||
}, | ||
{ | ||
"name": "load-balancer_member" | ||
}, | ||
{ | ||
"name": "heat_stack_user" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"remote": [ | ||
{ | ||
"type": "RXT_UserName" | ||
}, | ||
{ | ||
"type": "RXT_Email" | ||
}, | ||
{ | ||
"type": "RXT_TenantName" | ||
}, | ||
{ | ||
"type": "RXT_orgPersonType", | ||
"any_one_of": [ | ||
"admin", | ||
"default", | ||
"user-admin", | ||
"tenant-access" | ||
] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters