Files
dev/hanzo-node/iam/init_data.json

350 lines
10 KiB
JSON

{
"organizations": [
{
"owner": "admin",
"name": "hanzo",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Hanzo",
"websiteUrl": "https://hanzo.ai",
"favicon": "",
"passwordType": "argon2id",
"passwordSalt": "",
"passwordOptions": ["AtLeast8"],
"countryCodes": ["US"],
"defaultAvatar": "",
"defaultApplication": "hanzo-node",
"tags": [],
"languages": ["en"],
"themeData": null,
"masterPassword": "",
"initScore": 0,
"enableSoftDeletion": false,
"isProfilePublic": false,
"mfaItems": [],
"accountItems": [
{"name": "Organization", "visible": true, "viewRule": "Public", "modifyRule": "Admin"},
{"name": "ID", "visible": true, "viewRule": "Public", "modifyRule": "Immutable"},
{"name": "Name", "visible": true, "viewRule": "Public", "modifyRule": "Admin"},
{"name": "Display name", "visible": true, "viewRule": "Public", "modifyRule": "Self"},
{"name": "Avatar", "visible": true, "viewRule": "Public", "modifyRule": "Self"},
{"name": "User type", "visible": true, "viewRule": "Public", "modifyRule": "Admin"},
{"name": "Password", "visible": true, "viewRule": "Self", "modifyRule": "Self"},
{"name": "Email", "visible": true, "viewRule": "Public", "modifyRule": "Self"},
{"name": "Phone", "visible": true, "viewRule": "Public", "modifyRule": "Self"},
{"name": "Country/Region", "visible": true, "viewRule": "Public", "modifyRule": "Self"},
{"name": "Location", "visible": true, "viewRule": "Public", "modifyRule": "Self"},
{"name": "Is admin", "visible": true, "viewRule": "Admin", "modifyRule": "Admin"},
{"name": "Is forbidden", "visible": true, "viewRule": "Admin", "modifyRule": "Admin"},
{"name": "Is deleted", "visible": true, "viewRule": "Admin", "modifyRule": "Admin"},
{"name": "Signup application", "visible": true, "viewRule": "Public", "modifyRule": "Admin"},
{"name": "Roles", "visible": true, "viewRule": "Public", "modifyRule": "Immutable"},
{"name": "Permissions", "visible": true, "viewRule": "Public", "modifyRule": "Immutable"},
{"name": "3rd-party logins", "visible": true, "viewRule": "Self", "modifyRule": "Self"},
{"name": "Properties", "visible": false, "viewRule": "Admin", "modifyRule": "Admin"},
{"name": "Created time", "visible": true, "viewRule": "Public", "modifyRule": "Immutable"},
{"name": "API key", "visible": false, "viewRule": "Self", "modifyRule": "Admin"}
]
}
],
"applications": [
{
"owner": "admin",
"name": "hanzo-node",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Hanzo Node",
"logo": "",
"homepageUrl": "https://hanzo.ai",
"description": "Hanzo Node - Decentralized Compute Node",
"organization": "hanzo",
"cert": "cert-hanzo",
"enablePassword": true,
"enableSignUp": true,
"enableSigninSession": false,
"enableAutoSignin": false,
"enableCodeSignin": false,
"enableSamlCompress": false,
"enableWebAuthn": false,
"enableLinkWithEmail": false,
"orgChoiceMode": "None",
"samlReplyUrl": "",
"clientId": "hanzo-node-client",
"clientSecret": "hanzo-node-secret-change-in-production",
"redirectUris": [
"http://localhost:8080/callback",
"http://localhost:9090/callback"
],
"tokenFormat": "JWT",
"tokenFields": [],
"expireInHours": 24,
"refreshExpireInHours": 168,
"signupUrl": "",
"signinUrl": "",
"forgetUrl": "",
"affiliationUrl": "",
"termsOfUse": "",
"signupHtml": "",
"signinHtml": "",
"themeData": null,
"formCss": "",
"formCssMobile": "",
"formOffset": 2,
"formSideHtml": "",
"formBackgroundUrl": "",
"grantTypes": ["authorization_code", "password", "client_credentials", "refresh_token"],
"tags": ["compute", "node"]
}
],
"users": [
{
"owner": "hanzo",
"name": "admin",
"createdTime": "2024-01-01T00:00:00Z",
"updatedTime": "2024-01-01T00:00:00Z",
"id": "admin-001",
"type": "normal-user",
"password": "admin",
"passwordSalt": "",
"passwordType": "argon2id",
"displayName": "Administrator",
"firstName": "",
"lastName": "",
"avatar": "",
"permanentAvatar": "",
"email": "[email protected]",
"emailVerified": true,
"phone": "",
"countryCode": "US",
"region": "",
"location": "",
"address": [],
"affiliation": "Hanzo AI",
"title": "",
"idCardType": "",
"idCard": "",
"homepage": "",
"bio": "",
"tag": "",
"language": "en",
"gender": "",
"birthday": "",
"education": "",
"score": 0,
"karma": 0,
"ranking": 0,
"isDefaultAvatar": true,
"isOnline": false,
"isAdmin": true,
"isForbidden": false,
"isDeleted": false,
"signupApplication": "hanzo-node",
"hash": "",
"preHash": "",
"createdIp": "",
"lastSigninTime": "",
"lastSigninIp": "",
"github": "",
"google": "",
"properties": {},
"roles": [],
"permissions": [],
"groups": [],
"lastSigninWrongTime": "",
"signinWrongTimes": 0,
"mfaAccounts": []
}
],
"roles": [
{
"owner": "hanzo",
"name": "admin",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Administrator",
"description": "Full administrative access to hanzo-node",
"users": ["hanzo/admin"],
"groups": [],
"roles": [],
"domains": [],
"isEnabled": true
},
{
"owner": "hanzo",
"name": "operator",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Operator",
"description": "Deploy and manage workloads",
"users": [],
"groups": [],
"roles": ["hanzo/viewer"],
"domains": [],
"isEnabled": true
},
{
"owner": "hanzo",
"name": "viewer",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Viewer",
"description": "Read-only access to node resources",
"users": [],
"groups": [],
"roles": [],
"domains": [],
"isEnabled": true
},
{
"owner": "hanzo",
"name": "node",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Node",
"description": "Node-to-node communication",
"users": [],
"groups": [],
"roles": [],
"domains": [],
"isEnabled": true
}
],
"permissions": [
{
"owner": "hanzo",
"name": "health-read",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Read Health",
"description": "Read node health status",
"users": [],
"groups": [],
"roles": ["hanzo/viewer", "hanzo/operator", "hanzo/admin", "hanzo/node"],
"domains": [],
"model": "hanzo-node",
"adapter": "",
"resourceType": "health",
"resources": ["*"],
"actions": ["read"],
"effect": "Allow",
"isEnabled": true
},
{
"owner": "hanzo",
"name": "metrics-read",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Read Metrics",
"description": "Read node metrics",
"users": [],
"groups": [],
"roles": ["hanzo/viewer", "hanzo/operator", "hanzo/admin", "hanzo/node"],
"domains": [],
"model": "hanzo-node",
"adapter": "",
"resourceType": "metrics",
"resources": ["*"],
"actions": ["read"],
"effect": "Allow",
"isEnabled": true
},
{
"owner": "hanzo",
"name": "deployment-read",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Read Deployments",
"description": "View deployments",
"users": [],
"groups": [],
"roles": ["hanzo/viewer", "hanzo/operator", "hanzo/admin"],
"domains": [],
"model": "hanzo-node",
"adapter": "",
"resourceType": "deployment",
"resources": ["*"],
"actions": ["read"],
"effect": "Allow",
"isEnabled": true
},
{
"owner": "hanzo",
"name": "deployment-manage",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Manage Deployments",
"description": "Create, update, delete deployments",
"users": [],
"groups": [],
"roles": ["hanzo/operator", "hanzo/admin"],
"domains": [],
"model": "hanzo-node",
"adapter": "",
"resourceType": "deployment",
"resources": ["*"],
"actions": ["create", "update", "delete"],
"effect": "Allow",
"isEnabled": true
},
{
"owner": "hanzo",
"name": "container-read",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Read Containers",
"description": "View container information",
"users": [],
"groups": [],
"roles": ["hanzo/viewer", "hanzo/operator", "hanzo/admin"],
"domains": [],
"model": "hanzo-node",
"adapter": "",
"resourceType": "container",
"resources": ["*"],
"actions": ["read"],
"effect": "Allow",
"isEnabled": true
},
{
"owner": "hanzo",
"name": "container-exec",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Execute in Containers",
"description": "Execute commands in containers",
"users": [],
"groups": [],
"roles": ["hanzo/operator", "hanzo/admin"],
"domains": [],
"model": "hanzo-node",
"adapter": "",
"resourceType": "container",
"resources": ["*"],
"actions": ["execute"],
"effect": "Allow",
"isEnabled": true
},
{
"owner": "hanzo",
"name": "admin-all",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Full Admin Access",
"description": "Full administrative access to all resources",
"users": [],
"groups": [],
"roles": ["hanzo/admin"],
"domains": [],
"model": "hanzo-node",
"adapter": "",
"resourceType": "*",
"resources": ["*"],
"actions": ["*"],
"effect": "Allow",
"isEnabled": true
}
],
"certs": [
{
"owner": "admin",
"name": "cert-hanzo",
"createdTime": "2024-01-01T00:00:00Z",
"displayName": "Hanzo Certificate",
"scope": "JWT",
"type": "x509",
"cryptoAlgorithm": "RS256",
"bitSize": 2048,
"expireInYears": 10,
"certificate": "",
"privateKey": ""
}
]
}