Management Domain¶
The domain controller running on the master node stores its configuration and run-time information in an embedded database
All database tables and indexes can be accessed using the type information and schema definitions from a single database schema class:
- class GlobalSchema(db)[source]¶
Global (master node wide) database schema.
- activation_tokens: ActivationTokens[source]¶
User activation tokens.
Database table
cfxdb.globalschema.ActivationTokens
- static attach(db: Database) object[source]¶
Factory to create a schema from attaching to a database. The schema tables will be automatically mapped as persistant maps and attached to the database slots.
- Parameters:
db – Database to which to attach this schema.
- Returns:
Open database handle with attached schema, an instance of
GlobalSchema.
- idx_act_tokens_by_authid_pubkey: IndexActivationTokensByAuthidPubkey[source]¶
Index on user activation tokens (by authid, pubkey).
Database table
cfxdb.globalschema.IndexActivationTokensByAuthidPubkey
- idx_mrealms_by_name: IndexManagementRealmByName[source]¶
Index on management realms (by name).
Database table
cfxdb.globalschema.IndexManagementRealmByName
- idx_nodes_by_authid: IndexNodesByAuthid[source]¶
Index on nodes (by authid).
Database table
cfxdb.globalschema.IndexNodesByAuthid
- idx_nodes_by_pubkey: IndexNodesByPubkey[source]¶
Index on nodes (by pubkey).
Database table
cfxdb.globalschema.IndexNodesByPubkey
- idx_organizations_by_name: IndexOrganizationsByName[source]¶
Index on organizations (by name).
Database table
cfxdb.globalschema.IndexOrganizationsByName
- idx_users_by_email: IndexUsersByEmail[source]¶
Index on users (by email).
Database table
cfxdb.globalschema.IndexUsersByEmail
- idx_users_by_pubkey: IndexUsersByPubkey[source]¶
Index on users (by pubkey).
Database table
cfxdb.globalschema.IndexUsersByPubkey
- mrealms: ManagementRealms[source]¶
Management realms.
Database table
cfxdb.globalschema.ManagementRealms
- nodes: Nodes[source]¶
Nodes.
Database table
cfxdb.globalschema.Nodes
- organizations: Organizations[source]¶
Organizations.
Database table
cfxdb.globalschema.Organizations
- usage: UsageRecords[source]¶
Usage metering records (by timestamp).
Database table
cfxdb.globalschema.UsageRecords
- users: Users[source]¶
Users.
Database table
cfxdb.globalschema.Users
- users_mrealm_roles: UserMrealmRoles[source]¶
User roles map (by mrealm_oid, user_oid to UserRoles).
Database table
cfxdb.globalschema.UserMrealmRoles
Note
There exists only one domain controller database per master node. This database is separate from all managament realm controller databases, and only used to book keep users, Management realms and paired nodes. All configuration and management within a given management realm is then stored in the management realm controller database dedicated to the respective realm.
- class ConfigurationElement(oid=None, label=None, description=None, tags=None, _unknown=None)[source]¶
Bases:
objectCFC configuration element, an abstract “thing” with a unique identifier (“oid”, which is of type UUID) and that can be user documented using
label
description
tags
These elements are under user (application) control and not interpreted by the CFC backend code (beyond their basic types of string or list of string).
Configuration elements can be nearly everything in CFC configuration:
Users
Mrealms
Nodes
…