questions.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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: datasetName
  180. label: Dataset Name
  181. schema:
  182. type: string
  183. show_if: [["type", "=", "ixVolume"]]
  184. required: true
  185. hidden: true
  186. immutable: true
  187. default: data
  188. $ref:
  189. - "normalize/ixVolume"
  190. - variable: hostPath
  191. label: Host Path
  192. schema:
  193. type: hostpath
  194. show_if: [["type", "=", "hostPath"]]
  195. immutable: true
  196. required: true
  197. - variable: pgData
  198. label: Vaultwarden Postgres Data Storage
  199. description: The path to store Vaultwarden Postgres Data.
  200. schema:
  201. type: dict
  202. attrs:
  203. - variable: type
  204. label: Type
  205. description: |
  206. ixVolume: Is dataset created automatically by the system.</br>
  207. Host Path: Is a path that already exists on the system.
  208. schema:
  209. type: string
  210. required: true
  211. immutable: true
  212. default: ixVolume
  213. enum:
  214. - value: hostPath
  215. description: Host Path (Path that already exists on the system)
  216. - value: ixVolume
  217. description: ixVolume (Dataset created automatically by the system)
  218. - variable: datasetName
  219. label: Dataset Name
  220. schema:
  221. type: string
  222. show_if: [["type", "=", "ixVolume"]]
  223. required: true
  224. hidden: true
  225. immutable: true
  226. default: pgData
  227. $ref:
  228. - "normalize/ixVolume"
  229. - variable: hostPath
  230. label: Host Path
  231. schema:
  232. type: hostpath
  233. show_if: [["type", "=", "hostPath"]]
  234. immutable: true
  235. required: true
  236. - variable: pgBackup
  237. label: Vaultwarden Postgres Backup Storage
  238. description: The path to store Vaultwarden Postgres Backup.
  239. schema:
  240. type: dict
  241. attrs:
  242. - variable: type
  243. label: Type
  244. description: |
  245. ixVolume: Is dataset created automatically by the system.</br>
  246. Host Path: Is a path that already exists on the system.
  247. schema:
  248. type: string
  249. required: true
  250. immutable: true
  251. default: ixVolume
  252. enum:
  253. - value: hostPath
  254. description: Host Path (Path that already exists on the system)
  255. - value: ixVolume
  256. description: ixVolume (Dataset created automatically by the system)
  257. - variable: datasetName
  258. label: Dataset Name
  259. schema:
  260. type: string
  261. show_if: [["type", "=", "ixVolume"]]
  262. required: true
  263. hidden: true
  264. immutable: true
  265. default: pgBackup
  266. $ref:
  267. - "normalize/ixVolume"
  268. - variable: hostPath
  269. label: Host Path
  270. schema:
  271. type: hostpath
  272. show_if: [["type", "=", "hostPath"]]
  273. immutable: true
  274. required: true
  275. - variable: resources
  276. label: ""
  277. group: Resources Configuration
  278. schema:
  279. type: dict
  280. attrs:
  281. - variable: limits
  282. label: Limits
  283. schema:
  284. type: dict
  285. attrs:
  286. - variable: cpu
  287. label: CPU
  288. description: CPU limit for Vaultwarden.
  289. schema:
  290. type: string
  291. max_length: 6
  292. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  293. valid_chars_error: |
  294. Valid CPU limit formats are</br>
  295. - Plain Integer - eg. 1</br>
  296. - Float - eg. 0.5</br>
  297. - Milicpu - eg. 500m
  298. default: "4000m"
  299. required: true
  300. - variable: memory
  301. label: Memory
  302. description: Memory limit for Vaultwarden.
  303. schema:
  304. type: string
  305. max_length: 12
  306. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  307. valid_chars_error: |
  308. Valid Memory limit formats are</br>
  309. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  310. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  311. - Plain Integer in bytes - eg. 1024</br>
  312. - Exponent - eg. 134e6
  313. default: "8Gi"
  314. required: true