mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-21 10:00:38 +00:00
Make control-plane the real mount authority
Split node enrollment from export sync and issue Finder-compatible DAV credentials so the stack proves the real backend seam before any web UI consumes it.
This commit is contained in:
parent
5bc24fa99d
commit
b5f8ea9c52
28 changed files with 1345 additions and 423 deletions
21
packages/contracts/schemas/mount-credential.schema.json
Normal file
21
packages/contracts/schemas/mount-credential.schema.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://betternas.local/schemas/mount-credential.schema.json",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["mode", "username", "password", "expiresAt"],
|
||||
"properties": {
|
||||
"mode": {
|
||||
"const": "basic-auth"
|
||||
},
|
||||
"username": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"expiresAt": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
"displayName",
|
||||
"mountUrl",
|
||||
"readonly",
|
||||
"credentialMode"
|
||||
"credential"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
|
|
@ -31,8 +31,8 @@
|
|||
"readonly": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"credentialMode": {
|
||||
"enum": ["session-token", "app-password"]
|
||||
"credential": {
|
||||
"$ref": "./mount-credential.schema.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue