Examples
Complete manifests you can copy. Each one validates against the 0.1 schema.
gimbal.json
{
"openrbac": "0.1",
"app": {
"id": "gimbal-dashboard",
"name": "Gimbal"
},
"groups": {
"agents": {
"title": "Hosts and agents",
"actions": {
"agents.read": "View hosts, packages and updates",
"agents.approve": {
"title": "Approve or reject join requests",
"dangerous": true
},
"agents.revoke": {
"title": "Revoke a host's certificate",
"dangerous": true
},
"agents.write": "Edit tags and check-in settings"
}
},
"jobs": {
"title": "Jobs",
"actions": {
"jobs.read": "View jobs and output",
"jobs.exec": {
"title": "Run commands on hosts",
"dangerous": true
},
"patch.scan": "Scan for updates",
"patch.apply": {
"title": "Install updates and reboot",
"dangerous": true
}
}
},
"fim": {
"title": "File integrity",
"actions": {
"fim.read": "View baselines and changes",
"fim.scan": "Initialize baselines and rescan",
"fim.accept": "Accept changes into the baseline",
"fim.revert": {
"title": "Revert files on hosts",
"dangerous": true
}
}
},
"admin": {
"title": "Administration",
"actions": {
"certs.read": "View certificates",
"settings.write": "Change fleet and policy settings",
"enrollment.write": "Create join tokens and pre-register hosts"
}
}
},
"roles": {
"admin": {
"title": "Cloud and server admins",
"persona": "admin",
"actions": [
"*"
]
},
"patching": {
"title": "Server patching team",
"persona": "operator",
"actions": [
"agents.read",
"jobs.read",
"patch.*",
"certs.read"
]
},
"fim-operator": {
"title": "File integrity operators",
"persona": "x-integrity",
"actions": [
"agents.read",
"@fim"
]
},
"security": {
"title": "Security engineering",
"persona": "security",
"actions": [
"*.read",
"agents.approve",
"agents.revoke",
"fim.revert",
"enrollment.write"
]
},
"auditor": {
"title": "Security audit",
"persona": "auditor",
"actions": [
"*.read"
]
}
},
"default_role": "auditor"
}
scope-style.json
{
"openrbac": "0.1",
"app": { "id": "cms-api", "name": "CMS API" },
"groups": {
"content": {
"title": "Content",
"actions": {
"read:content": "Read articles",
"write:content": "Create and edit articles",
"delete:content": { "title": "Delete articles", "dangerous": true }
}
},
"users": {
"title": "Users",
"actions": { "read:users": "List users", "write:users": "Invite and edit users" }
}
},
"roles": {
"reader": { "title": "Reader", "actions": ["read:*"] },
"writer": { "title": "Writer", "actions": ["read:*", "write:content"] }
},
"default_role": "reader"
}
signage-player.json
{
"openrbac": "0.1",
"app": { "id": "signage-player", "name": "Signage Player" },
"groups": {
"device": {
"title": "Devices",
"actions": {
"device.read": "View screens",
"device.register": "Pair a new screen",
"device.reset": { "title": "Factory-reset a screen", "dangerous": true },
"device.volume": "Change volume"
}
},
"content": {
"title": "Content",
"actions": {
"content.read": "View content",
"content.publish": "Publish to screens"
}
}
},
"roles": {
"operator": { "title": "Device operator", "actions": ["device.*", "content.read"] },
"editor": { "title": "Content editor", "actions": ["@content", "device.read"] },
"viewer": { "title": "Viewer", "actions": ["*.read"] }
}
}