questions.yaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. groups:
  2. - name: Vaultwarden Configuration
  3. description: Configure Vaultwarden
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Vaultwarden
  6. - name: Network Configuration
  7. description: Configure Network for Vaultwarden
  8. - name: Storage Configuration
  9. description: Configure Storage for Vaultwarden
  10. - name: Resources Configuration
  11. description: Configure Resources for Vaultwarden
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. admin_portal:
  22. protocols:
  23. - "$kubernetes-resource_configmap_portal_protocol"
  24. host:
  25. - "$kubernetes-resource_configmap_portal_host"
  26. ports:
  27. - "$kubernetes-resource_configmap_portal_port"
  28. path: "$kubernetes-resource_configmap_portal_admin_path"
  29. questions:
  30. - variable: TZ
  31. group: Vaultwarden Configuration
  32. label: Timezone
  33. schema:
  34. type: string
  35. default: Etc/UTC
  36. required: true
  37. $ref:
  38. - definitions/timezone
  39. - variable: vaultwardenConfig
  40. label: ""
  41. group: Vaultwarden Configuration
  42. schema:
  43. type: dict
  44. attrs:
  45. - variable: adminToken
  46. label: Admin Token
  47. description: Setting this, will enable the admin portal
  48. schema:
  49. type: string
  50. private: true
  51. default: ""
  52. - variable: additionalEnvs
  53. label: Additional Environment Variables
  54. description: Configure additional environment variables for Vaultwarden.
  55. schema:
  56. type: list
  57. default: []
  58. items:
  59. - variable: env
  60. label: Environment Variable
  61. schema:
  62. type: dict
  63. attrs:
  64. - variable: name
  65. label: Name
  66. schema:
  67. type: string
  68. required: true
  69. - variable: value
  70. label: Value
  71. schema:
  72. type: string
  73. required: true
  74. - variable: vaultwardenRunAs
  75. label: ""
  76. group: User and Group Configuration
  77. schema:
  78. type: dict
  79. attrs:
  80. - variable: user
  81. label: User ID
  82. description: The user id that Vaultwarden will run as.
  83. schema:
  84. type: int
  85. min: 568
  86. default: 568
  87. required: true
  88. - variable: group
  89. label: Group ID
  90. description: The group id that Vaultwarden will run as.
  91. schema:
  92. type: int
  93. min: 568
  94. default: 568
  95. required: true
  96. - variable: vaultwardenNetwork
  97. label: ""
  98. group: Network Configuration
  99. schema:
  100. type: dict
  101. attrs:
  102. - variable: webPort
  103. label: Web Port
  104. description: The port for the Vaultwarden Web UI.
  105. schema:
  106. type: int
  107. default: 30032
  108. min: 9000
  109. max: 65535
  110. required: true
  111. - variable: wsEnabled
  112. label: Enable Websocket
  113. schema:
  114. type: boolean
  115. default: true
  116. - variable: wsPort
  117. label: Websocket Port
  118. description: The port for the Vaultwarden Websocket.
  119. schema:
  120. type: int
  121. show_if: [["wsEnabled", "=", true]]
  122. default: 30033
  123. min: 9000
  124. max: 65535
  125. required: true
  126. - variable: hostNetwork
  127. label: Host Network
  128. description: |
  129. Bind to the host network. It's recommended to keep this disabled.</br>
  130. schema:
  131. type: boolean
  132. default: false
  133. - variable: domain
  134. label: Domain
  135. description: |
  136. The domain to use for Vaultwarden </br>
  137. Format is: https://sub.domain.tld:port
  138. schema:
  139. type: string
  140. default: ""
  141. - variable: certificateID
  142. label: Certificate
  143. description: |
  144. The certificate to use for Vaultwarden </br>
  145. Using the Rocket method for TLS setup is NOT recommended </br>
  146. Prefer a reverse proxy with a valid certificate </br>
  147. schema:
  148. type: int
  149. "null": true
  150. $ref:
  151. - "definitions/certificate"
  152. - variable: vaultwardenStorage
  153. label: ""
  154. group: Storage Configuration
  155. schema:
  156. type: dict
  157. attrs:
  158. - variable: data
  159. label: Vaultwarden Data Storage
  160. description: The path to store Vaultwarden attachments, icons, etc.
  161. schema:
  162. type: dict
  163. attrs:
  164. - variable: type
  165. label: Type
  166. description: |
  167. ixVolume: Is dataset created automatically by the system.</br>
  168. Host Path: Is a path that already exists on the system.
  169. schema:
  170. type: string
  171. required: true
  172. immutable: true
  173. default: ixVolume
  174. enum:
  175. - value: hostPath
  176. description: Host Path (Path that already exists on the system)
  177. - value: ixVolume
  178. description: ixVolume (Dataset created automatically by the system)
  179. - variable: ixVolumeConfig
  180. label: ixVolume Configuration
  181. description: The configuration for the ixVolume dataset.
  182. schema:
  183. type: dict
  184. show_if: [["type", "=", "ixVolume"]]
  185. $ref:
  186. - "normalize/ixVolume"
  187. attrs:
  188. - variable: aclEnable
  189. label: Enable ACL
  190. description: Enable ACL for the dataset.
  191. schema:
  192. type: boolean
  193. default: false
  194. - variable: datasetName
  195. label: Dataset Name
  196. description: The name of the dataset to use for storage.
  197. schema:
  198. type: string
  199. required: true
  200. immutable: true
  201. hidden: true
  202. default: "data"
  203. - variable: aclEntries
  204. label: ACL Configuration
  205. schema:
  206. type: dict
  207. show_if: [["aclEnable", "=", true]]
  208. attrs: []
  209. - variable: hostPathConfig
  210. label: hostPathConfig
  211. schema:
  212. type: dict
  213. show_if: [["type", "=", "hostPath"]]
  214. attrs:
  215. - variable: aclEnable
  216. label: Enable ACL
  217. description: Enable ACL for the dataset.
  218. schema:
  219. type: boolean
  220. default: false
  221. - variable: acl
  222. label: ACL Configuration
  223. schema:
  224. type: dict
  225. show_if: [["aclEnable", "=", true]]
  226. attrs: []
  227. $ref:
  228. - "normalize/acl"
  229. - variable: hostPath
  230. label: Host Path
  231. description: The host path to use for storage.
  232. schema:
  233. type: hostpath
  234. show_if: [["aclEnable", "=", false]]
  235. immutable: true
  236. required: true
  237. - variable: pgData
  238. label: Vaultwarden Postgres Data Storage
  239. description: The path to store Vaultwarden Postgres Data.
  240. schema:
  241. type: dict
  242. attrs:
  243. - variable: type
  244. label: Type
  245. description: |
  246. ixVolume: Is dataset created automatically by the system.</br>
  247. Host Path: Is a path that already exists on the system.
  248. schema:
  249. type: string
  250. required: true
  251. immutable: true
  252. default: ixVolume
  253. enum:
  254. - value: hostPath
  255. description: Host Path (Path that already exists on the system)
  256. - value: ixVolume
  257. description: ixVolume (Dataset created automatically by the system)
  258. - variable: ixVolumeConfig
  259. label: ixVolume Configuration
  260. description: The configuration for the ixVolume dataset.
  261. schema:
  262. type: dict
  263. # Nothing to show for the user
  264. hidden: true
  265. show_if: [["type", "=", "ixVolume"]]
  266. $ref:
  267. - "normalize/ixVolume"
  268. attrs:
  269. - variable: aclEnable
  270. label: Enable ACL
  271. description: Enable ACL for the dataset.
  272. schema:
  273. type: boolean
  274. # Postgres does a CHMOD at startup
  275. # Which fails with ACL
  276. hidden: true
  277. default: false
  278. - variable: datasetName
  279. label: Dataset Name
  280. description: The name of the dataset to use for storage.
  281. schema:
  282. type: string
  283. required: true
  284. immutable: true
  285. hidden: true
  286. default: "pgData"
  287. - variable: aclEntries
  288. label: ACL Configuration
  289. schema:
  290. type: dict
  291. show_if: [["aclEnable", "=", true]]
  292. attrs: []
  293. - variable: hostPathConfig
  294. label: hostPathConfig
  295. schema:
  296. type: dict
  297. show_if: [["type", "=", "hostPath"]]
  298. attrs:
  299. - variable: aclEnable
  300. label: Enable ACL
  301. description: Enable ACL for the dataset.
  302. schema:
  303. type: boolean
  304. # Postgres does a CHMOD at startup
  305. # Which fails with ACL
  306. hidden: true
  307. default: false
  308. - variable: acl
  309. label: ACL Configuration
  310. schema:
  311. type: dict
  312. show_if: [["aclEnable", "=", true]]
  313. attrs: []
  314. $ref:
  315. - "normalize/acl"
  316. - variable: hostPath
  317. label: Host Path
  318. description: The host path to use for storage.
  319. schema:
  320. type: hostpath
  321. show_if: [["aclEnable", "=", false]]
  322. immutable: true
  323. required: true
  324. - variable: pgBackup
  325. label: Vaultwarden Postgres Backup Storage
  326. description: The path to store Vaultwarden Postgres Backup.
  327. schema:
  328. type: dict
  329. attrs:
  330. - variable: type
  331. label: Type
  332. description: |
  333. ixVolume: Is dataset created automatically by the system.</br>
  334. Host Path: Is a path that already exists on the system.
  335. schema:
  336. type: string
  337. required: true
  338. immutable: true
  339. default: ixVolume
  340. enum:
  341. - value: hostPath
  342. description: Host Path (Path that already exists on the system)
  343. - value: ixVolume
  344. description: ixVolume (Dataset created automatically by the system)
  345. - variable: ixVolumeConfig
  346. label: ixVolume Configuration
  347. description: The configuration for the ixVolume dataset.
  348. schema:
  349. type: dict
  350. # Nothing to show for the user
  351. hidden: true
  352. show_if: [["type", "=", "ixVolume"]]
  353. $ref:
  354. - "normalize/ixVolume"
  355. attrs:
  356. - variable: aclEnable
  357. label: Enable ACL
  358. description: Enable ACL for the dataset.
  359. schema:
  360. type: boolean
  361. # Postgres does a CHMOD at startup
  362. # Which fails with ACL
  363. hidden: true
  364. default: false
  365. - variable: datasetName
  366. label: Dataset Name
  367. description: The name of the dataset to use for storage.
  368. schema:
  369. type: string
  370. required: true
  371. immutable: true
  372. hidden: true
  373. default: "pgBackup"
  374. - variable: aclEntries
  375. label: ACL Configuration
  376. schema:
  377. type: dict
  378. show_if: [["aclEnable", "=", true]]
  379. attrs: []
  380. - variable: hostPathConfig
  381. label: hostPathConfig
  382. schema:
  383. type: dict
  384. show_if: [["type", "=", "hostPath"]]
  385. attrs:
  386. - variable: aclEnable
  387. label: Enable ACL
  388. description: Enable ACL for the dataset.
  389. schema:
  390. type: boolean
  391. # Postgres does a CHMOD at startup
  392. # Which fails with ACL
  393. hidden: true
  394. default: false
  395. - variable: acl
  396. label: ACL Configuration
  397. schema:
  398. type: dict
  399. show_if: [["aclEnable", "=", true]]
  400. attrs: []
  401. $ref:
  402. - "normalize/acl"
  403. - variable: hostPath
  404. label: Host Path
  405. description: The host path to use for storage.
  406. schema:
  407. type: hostpath
  408. show_if: [["aclEnable", "=", false]]
  409. immutable: true
  410. required: true
  411. - variable: additionalStorages
  412. label: Additional Storage
  413. description: Additional storage for Vaultwarden.
  414. schema:
  415. type: list
  416. default: []
  417. items:
  418. - variable: storageEntry
  419. label: Storage Entry
  420. schema:
  421. type: dict
  422. attrs:
  423. - variable: type
  424. label: Type
  425. description: |
  426. ixVolume: Is dataset created automatically by the system.</br>
  427. Host Path: Is a path that already exists on the system.</br>
  428. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  429. schema:
  430. type: string
  431. required: true
  432. default: "ixVolume"
  433. immutable: true
  434. enum:
  435. - value: "hostPath"
  436. description: Host Path (Path that already exists on the system)
  437. - value: "ixVolume"
  438. description: ixVolume (Dataset created automatically by the system)
  439. - value: "smb-pv-pvc"
  440. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  441. - variable: readOnly
  442. label: Read Only
  443. description: Mount the volume as read only.
  444. schema:
  445. type: boolean
  446. default: false
  447. - variable: mountPath
  448. label: Mount Path
  449. description: The path inside the container to mount the storage.
  450. schema:
  451. type: path
  452. required: true
  453. - variable: hostPathConfig
  454. label: hostPathConfig
  455. schema:
  456. type: dict
  457. show_if: [["type", "=", "hostPath"]]
  458. attrs:
  459. - variable: aclEnable
  460. label: Enable ACL
  461. description: Enable ACL for the dataset.
  462. schema:
  463. type: boolean
  464. default: false
  465. - variable: acl
  466. label: ACL Configuration
  467. schema:
  468. type: dict
  469. show_if: [["aclEnable", "=", true]]
  470. attrs: []
  471. $ref:
  472. - "normalize/acl"
  473. - variable: hostPath
  474. label: Host Path
  475. description: The host path to use for storage.
  476. schema:
  477. type: hostpath
  478. show_if: [["aclEnable", "=", false]]
  479. immutable: true
  480. required: true
  481. - variable: ixVolumeConfig
  482. label: ixVolume Configuration
  483. description: The configuration for the ixVolume dataset.
  484. schema:
  485. type: dict
  486. show_if: [["type", "=", "ixVolume"]]
  487. $ref:
  488. - "normalize/ixVolume"
  489. attrs:
  490. - variable: aclEnable
  491. label: Enable ACL
  492. description: Enable ACL for the dataset.
  493. schema:
  494. type: boolean
  495. default: false
  496. - variable: datasetName
  497. label: Dataset Name
  498. description: The name of the dataset to use for storage.
  499. schema:
  500. type: string
  501. required: true
  502. immutable: true
  503. default: "storage_entry"
  504. - variable: aclEntries
  505. label: ACL Configuration
  506. schema:
  507. type: dict
  508. show_if: [["aclEnable", "=", true]]
  509. attrs: []
  510. - variable: smbConfig
  511. label: SMB Share Configuration
  512. description: The configuration for the SMB Share.
  513. schema:
  514. type: dict
  515. show_if: [["type", "=", "smb-pv-pvc"]]
  516. attrs:
  517. - variable: server
  518. label: Server
  519. description: The server for the SMB share.
  520. schema:
  521. type: string
  522. required: true
  523. - variable: share
  524. label: Share
  525. description: The share name for the SMB share.
  526. schema:
  527. type: string
  528. required: true
  529. - variable: domain
  530. label: Domain (Optional)
  531. description: The domain for the SMB share.
  532. schema:
  533. type: string
  534. - variable: username
  535. label: Username
  536. description: The username for the SMB share.
  537. schema:
  538. type: string
  539. required: true
  540. - variable: password
  541. label: Password
  542. description: The password for the SMB share.
  543. schema:
  544. type: string
  545. required: true
  546. private: true
  547. - variable: size
  548. label: Size (in Gi)
  549. description: The size of the volume quota.
  550. schema:
  551. type: int
  552. required: true
  553. min: 1
  554. default: 1
  555. - variable: resources
  556. label: ""
  557. group: Resources Configuration
  558. schema:
  559. type: dict
  560. attrs:
  561. - variable: limits
  562. label: Limits
  563. schema:
  564. type: dict
  565. attrs:
  566. - variable: cpu
  567. label: CPU
  568. description: CPU limit for Vaultwarden.
  569. schema:
  570. type: string
  571. max_length: 6
  572. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  573. valid_chars_error: |
  574. Valid CPU limit formats are</br>
  575. - Plain Integer - eg. 1</br>
  576. - Float - eg. 0.5</br>
  577. - Milicpu - eg. 500m
  578. default: "4000m"
  579. required: true
  580. - variable: memory
  581. label: Memory
  582. description: Memory limit for Vaultwarden.
  583. schema:
  584. type: string
  585. max_length: 12
  586. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  587. valid_chars_error: |
  588. Valid Memory limit formats are</br>
  589. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  590. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  591. - Plain Integer in bytes - eg. 1024</br>
  592. - Exponent - eg. 134e6
  593. default: "8Gi"
  594. required: true