## Explanation about OSM Role-based Access Control (RBAC)
Role-Based Access Control (RBAC) is available in OSM to bring different users and projects a controlled access to resources. Authorization is granted if a user has the necessary role to perform an action.
For achieving this, two backends are available:
@@ -25,7 +25,9 @@ By default, OSM starts with the following users, projects and roles pre-created:
The configuration can be extended to cover more users, projects and role combinations, following the next sections.
## User management
## OSM User Management
### Explanation about OSM User Management
Users can be managed through the UI, by selecting Admin --> Users on the menu to the left, or using the OSM CLI:
@@ -52,6 +54,10 @@ Usage: osm user-update [OPTIONS] USERNAME
REMOVE_PROJECT: deleting mappings for project/role(s)
ADD_PROJECT_ROLE: adding mappings for project/role(s)
REMOVE_PROJECT_ROLE: removing mappings for project/role(s)
CURRENT_PASSWORD: user current password to change
NEW_PASSWORD: user new password to update in expiry condition
UNLOCK: unlock user
RENEW: renew user
Options:
--password TEXT user password
@@ -60,10 +66,86 @@ Options:
--remove-project TEXT removes project from user: 'project'
--add-project-role TEXT adds project,role(s) mapping: 'project,role1,role2,...'
--remove-project-role TEXT removes project,role(s) mapping: 'project,role1,role2,...'
--current_password TEXT user current password
--new_password TEXT user new password to update in expiry condition
--unlock unlock user
--renew renew user
-h, --help Show this message and exit.
```
## Project management
### How to enable user management enhancements to enforce password best practices
If a user logins into OSM for the first time or a user account is not accessed after several days, you might want OSM to request the user to change its password.
By default, user management enhancements to enforce password best practices is enabled in OSM. It includes the following best practices:
- Password expires after 30 days, and it will have to be renewed.
- Account expires after 90 days after the user is created, and it will have to be renewed by a system admin.
- The number of consecutive failed login attempts in OSM is 5. After that, if a user fails to login, the account will be locked.
If you want to enable/disable this behaviour, just set environment variable `OSMNBI_USER_MANAGEMENT` as `True` or `False` in the nbi configmap file using the following command: