GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltactivedata.com — 13.3. Defining Users and Roles Using VoltDB13.3. Defining Users and RolesThe key to security for VoltDB applications is the users and roles defined in the schema and configuration. You define users in the configuration and roles in the schema. This split is deliberate because it allows you to define the overall security structure globally in the schema, assigning permissions to generic roles (such as operator, dbuser, apps, and so on). You then define specific users and assign them to the generic roles as part of the database configuration. This way you can create one configuration (including cluster information and users) for development and testing, then move the database to a different configuration and a different set of users for production by changing only one file: the configuration file. You define users within the deployment:
users:
- name: user-name
password: password-string
roles: role-name[,...]
expires: expiration-dateNoteIf you do not want to distribute the account passwords in plain text, you can use the voltdb mask command to hash the passwords in the configuration file. Include a CREATE ROLE role-name; You can optionally add an expiration date for the account using the Note that, since the user can no longer access the database once their password expires, it is strongly suggested you do not set an expiration date on accounts with the ADMINISTRATOR role. If the passwords expire on all accounts with the ADMINISTRATOR role, there will be no way to access the database for administrative functions and you may have to reinitialize the database from scratch to regain access. At least one user must be assigned the built-in ADMINISTRATOR role. For example, the following code defines three users, assigning operator the built-in ADMINISTRATOR role and the user-defined OPS role, assigning developer the user-defined roles OPS and DBUSER, and assigning the user clientapp DBUSER. When a user is assigned more than one role, you specify the role names as a comma-delimited list. deployment:
users:
- name: operator
password: mech
roles: administrator,ops
- name: developer
password: tech
roles: ops,dbuser
expires: 2029-02-17
- name: clientapp
password: xyzzy
roles; dbuser
expires: 2028-01-29Four important notes concerning the assignment of users and roles:
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |