|
12 | 12 | "default": "changeme",
|
13 | 13 | "x-form": {
|
14 | 14 | "value": "{{project.password}}"
|
| 15 | + }, |
| 16 | + "x-onyxia": { |
| 17 | + "overwriteDefaultWith": "{{project.password}}" |
15 | 18 | }
|
16 | 19 | },
|
17 | 20 | "username": {
|
|
20 | 23 | "default": "username",
|
21 | 24 | "x-form": {
|
22 | 25 | "value": "{{user.email}}"
|
| 26 | + }, |
| 27 | + "x-onyxia": { |
| 28 | + "overwriteDefaultWith": "{{user.email}}" |
23 | 29 | }
|
24 | 30 | },
|
25 | 31 | "allowlist": {
|
26 |
| - "type": "object", |
27 |
| - "description": "IP protection", |
28 |
| - "properties": { |
29 |
| - "enabled": { |
30 |
| - "type": "boolean", |
31 |
| - "title": "Enable IP protection", |
32 |
| - "description": "Only the configured set of IPs will be able to reach the service", |
33 |
| - "default": true, |
34 |
| - "x-form": { |
35 |
| - "value": "{{region.defaultIpProtection}}" |
36 |
| - } |
| 32 | + "type": "object", |
| 33 | + "description": "IP protection", |
| 34 | + "properties": { |
| 35 | + "enabled": { |
| 36 | + "type": "boolean", |
| 37 | + "title": "Enable IP protection", |
| 38 | + "description": "Only the configured set of IPs will be able to reach the service", |
| 39 | + "default": true, |
| 40 | + "x-form": { |
| 41 | + "value": "{{region.defaultIpProtection}}" |
| 42 | + }, |
| 43 | + "x-onyxia": { |
| 44 | + "overwriteDefaultWith": "region.defaultIpProtection" |
| 45 | + } |
| 46 | + }, |
| 47 | + "ip": { |
| 48 | + "type": "string", |
| 49 | + "description": "the allow list of IP is whitespace", |
| 50 | + "title": "Allowed IP", |
| 51 | + "default": "0.0.0.0/0", |
| 52 | + "x-form": { |
| 53 | + "value": "{{user.ip}}" |
| 54 | + }, |
| 55 | + "x-onyxia": { |
| 56 | + "overwriteDefaultWith": "{{user.ip}}" |
37 | 57 | },
|
38 |
| - "ip": { |
39 |
| - "type": "string", |
40 |
| - "description": "the white list of IP is whitespace", |
41 |
| - "title": "Whitelist of IP", |
42 |
| - "x-form": { |
43 |
| - "value": "{{user.ip}}" |
44 |
| - } |
| 58 | + "hidden": { |
| 59 | + "value": false, |
| 60 | + "path": "security/allowlist/enabled" |
45 | 61 | }
|
46 | 62 | }
|
| 63 | + } |
47 | 64 | },
|
48 | 65 | "networkPolicy": {
|
49 |
| - "type": "object", |
50 |
| - "description": "Define access policy to the service", |
51 |
| - "properties": { |
52 |
| - "enabled": { |
53 |
| - "type": "boolean", |
54 |
| - "title": "Enable network policy", |
55 |
| - "description": "Only pod from the same namespace will be allowed", |
56 |
| - "default": true, |
57 |
| - "x-form": { |
58 |
| - "value": "{{region.defaultNetworkPolicy}}" |
59 |
| - } |
| 66 | + "type": "object", |
| 67 | + "description": "Define access policy to the service", |
| 68 | + "properties": { |
| 69 | + "enabled": { |
| 70 | + "type": "boolean", |
| 71 | + "title": "Enable network policy", |
| 72 | + "description": "Only pod from the same namespace will be allowed", |
| 73 | + "default": true, |
| 74 | + "x-form": { |
| 75 | + "value": "{{region.defaultNetworkPolicy}}" |
| 76 | + }, |
| 77 | + "x-onyxia": { |
| 78 | + "overwriteDefaultWith": "region.defaultNetworkPolicy" |
60 | 79 | }
|
61 | 80 | }
|
| 81 | + } |
62 | 82 | }
|
63 | 83 | }
|
64 | 84 | },
|
|
73 | 93 | "title": "Hostname",
|
74 | 94 | "x-form": {
|
75 | 95 | "value": "{{project.id}}-{{k8s.randomSubdomain}}.{{k8s.domain}}"
|
76 |
| - } |
| 96 | + }, |
| 97 | + "x-onyxia": { |
| 98 | + "hidden": true, |
| 99 | + "overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}.{{k8s.domain}}" |
| 100 | + } |
77 | 101 | }
|
78 | 102 | }
|
79 | 103 | },
|
|
93 | 117 | "default": "admin",
|
94 | 118 | "x-form": {
|
95 | 119 | "value": "{{project.id}}"
|
| 120 | + }, |
| 121 | + "x-onyxia": { |
| 122 | + "overwriteDefaultWith": "{{project.id}}" |
96 | 123 | }
|
97 | 124 | },
|
98 | 125 | "postgresqlPassword": {
|
|
101 | 128 | "default": "changeme",
|
102 | 129 | "x-form": {
|
103 | 130 | "value": "{{project.password}}"
|
| 131 | + }, |
| 132 | + "x-onyxia": { |
| 133 | + "overwriteDefaultWith": "{{project.password}}" |
104 | 134 | }
|
105 | 135 | },
|
106 | 136 | "postgresqlDatabase": {
|
|
0 commit comments