feat: add YAML-first users nav access (#2188)

This commit is contained in:
Lyon
2026-06-26 12:23:37 +08:00
committed by GitHub
parent 11afa1a7d1
commit 38b7d7bc87
12 changed files with 392 additions and 46 deletions
@@ -0,0 +1,16 @@
apiVersion: hwlab.dev/v0alpha1
kind: HwlabNavProfiles
metadata:
name: d601-v03-nav-profiles
verificationIssue: pikasTech/HWLAB#2187
spec:
profiles:
- id: admin-full
displayName: Admin full access
allowedIds:
- "*"
- id: code-mdtodo-only
displayName: Code and MDTODO only
allowedIds:
- workbench.code
- project.mdtodo
@@ -0,0 +1,26 @@
apiVersion: hwlab.dev/v0alpha1
kind: HwlabAccessControlUsers
metadata:
name: d601-v03-users
verificationIssue: pikasTech/HWLAB#2187
spec:
users:
- id: usr_v03_admin
username: admin
displayName: HWLAB v0.3 Admin
role: admin
status: active
navProfile: admin-full
passwordHashRef:
env: HWLAB_BOOTSTRAP_ADMIN_PASSWORD_HASH
secretRef: hwlab-v03-bootstrap-admin/password-hash
- id: usr_v03_huiggao
username: huiggao@163.com
displayName: huiggao@163.com
email: huiggao@163.com
role: user
status: active
navProfile: code-mdtodo-only
passwordHashRef:
env: HWLAB_PRESET_USER_HUIGGAO_PASSWORD_HASH
secretRef: hwlab-v03-preset-users/huiggao-password-hash