feat: add HWLAB test account sync
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
version: 1
|
||||
kind: hwlab-test-accounts
|
||||
|
||||
metadata:
|
||||
id: hwlab-test-accounts
|
||||
owner: unidesk
|
||||
relatedIssues:
|
||||
- 1238
|
||||
- 1237
|
||||
- 1236
|
||||
|
||||
sourceRoot: /root/unidesk/.state/secrets
|
||||
|
||||
targets:
|
||||
- id: d601-v03
|
||||
node: D601
|
||||
lane: v03
|
||||
namespace: hwlab-v03
|
||||
publicUrl: https://hwlab.pikapython.com
|
||||
userBilling:
|
||||
serviceId: hwlab-user-billing
|
||||
databaseUrlSource:
|
||||
sourceRef: hwlab/d601-v03-cloud-api-db.env
|
||||
sourceKey: DATABASE_URL
|
||||
accounts:
|
||||
- logicalId: d601-v03-admin
|
||||
kind: bootstrap-admin-api-key
|
||||
userId: usr_v03_admin
|
||||
username: admin
|
||||
displayName: HWLAB v0.3 Admin
|
||||
role: admin
|
||||
status: active
|
||||
permissions:
|
||||
- admin
|
||||
- system:hwlab
|
||||
- "tool:*"
|
||||
sourceRef: /root/.config/hwlab-v03/master-server-admin-api-key.env
|
||||
sourceKey: HWLAB_API_KEY
|
||||
createIfMissing:
|
||||
enabled: true
|
||||
randomBase64Url:
|
||||
bytes: 32
|
||||
prefix: hwl_live_
|
||||
target:
|
||||
kind: kubernetes-secret
|
||||
namespace: hwlab-v03
|
||||
secretName: hwlab-v03-master-server-admin-api-key
|
||||
targetKey: api-key
|
||||
rolloutDeployment: hwlab-cloud-api
|
||||
- logicalId: d601-v03-inner-test
|
||||
kind: user-billing-api-key
|
||||
userId: usr_d601_v03_inner_test
|
||||
username: inner-test
|
||||
email: inner-test@hwlab.local
|
||||
displayName: HWLAB v0.3 T1 Test User
|
||||
role: user
|
||||
status: active
|
||||
planId: default
|
||||
initialCredits: 100
|
||||
permissions:
|
||||
- code_agent
|
||||
- hwpod
|
||||
- aipod
|
||||
workbench:
|
||||
projectId: prj_hwpod_workbench
|
||||
lane: v03
|
||||
sourceRef: hwlab/d601-v03-inner-test.env
|
||||
sourceKey: HWLAB_API_KEY
|
||||
createIfMissing:
|
||||
enabled: true
|
||||
randomBase64Url:
|
||||
bytes: 32
|
||||
prefix: hwl_live_
|
||||
target:
|
||||
kind: user-billing-api-key
|
||||
serviceId: hwlab-user-billing
|
||||
keyId: key_d601_v03_inner_test
|
||||
keyName: D601 v0.3 inner test fixed key
|
||||
targetKey: api-key
|
||||
scopes:
|
||||
- api
|
||||
Reference in New Issue
Block a user