|
129 | 129 | "x-form": {
|
130 | 130 | "hidden": true,
|
131 | 131 | "value": "{{project.id}}-{{k8s.randomSubdomain}}.{{k8s.domain}}"
|
132 |
| - } |
| 132 | + }, |
| 133 | + "x-onyxia": { |
| 134 | + "hidden": true, |
| 135 | + "overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}.{{k8s.domain}}" |
| 136 | + } |
133 | 137 | }
|
134 | 138 | }
|
135 | 139 | },
|
136 | 140 | "security": {
|
137 | 141 | "description": "security specific configuration",
|
138 | 142 | "type": "object",
|
139 | 143 | "properties": {
|
140 |
| - "allowlist": { |
141 |
| - "type": "object", |
142 |
| - "description": "IP protection", |
143 |
| - "properties": { |
144 |
| - "enabled": { |
145 |
| - "type": "boolean", |
146 |
| - "title": "Enable IP protection", |
147 |
| - "description": "Only the configured set of IPs will be able to reach the service", |
148 |
| - "default": true, |
149 |
| - "x-form": { |
150 |
| - "value": "{{region.defaultIpProtection}}" |
151 |
| - } |
152 |
| - }, |
153 |
| - "ip": { |
154 |
| - "type": "string", |
155 |
| - "description": "the allow list of IP is whitespace", |
156 |
| - "title": "Allowed IP", |
157 |
| - "x-form": { |
158 |
| - "value": "{{user.ip}}" |
159 |
| - }, |
160 |
| - "hidden": { |
161 |
| - "value": false, |
162 |
| - "path": "security/allowlist/enabled" |
163 |
| - } |
164 |
| - } |
| 144 | + "allowlist": { |
| 145 | + "type": "object", |
| 146 | + "description": "IP protection", |
| 147 | + "properties": { |
| 148 | + "enabled": { |
| 149 | + "type": "boolean", |
| 150 | + "title": "Enable IP protection", |
| 151 | + "description": "Only the configured set of IPs will be able to reach the service", |
| 152 | + "default": true, |
| 153 | + "x-form": { |
| 154 | + "value": "{{region.defaultIpProtection}}" |
| 155 | + }, |
| 156 | + "x-onyxia": { |
| 157 | + "overwriteDefaultWith": "region.defaultIpProtection" |
| 158 | + } |
| 159 | + }, |
| 160 | + "ip": { |
| 161 | + "type": "string", |
| 162 | + "description": "the allow list of IP is whitespace", |
| 163 | + "title": "Allowed IP", |
| 164 | + "default": "0.0.0.0/0", |
| 165 | + "x-form": { |
| 166 | + "value": "{{user.ip}}" |
| 167 | + }, |
| 168 | + "x-onyxia": { |
| 169 | + "overwriteDefaultWith": "{{user.ip}}" |
| 170 | + }, |
| 171 | + "hidden": { |
| 172 | + "value": false, |
| 173 | + "path": "security/allowlist/enabled" |
165 | 174 | }
|
166 |
| - }, |
| 175 | + } |
| 176 | + } |
| 177 | + }, |
167 | 178 | "networkPolicy": {
|
168 | 179 | "type": "object",
|
169 | 180 | "description": "Define access policy to the service",
|
|
175 | 186 | "default": true,
|
176 | 187 | "x-form": {
|
177 | 188 | "value": "{{region.defaultNetworkPolicy}}"
|
| 189 | + }, |
| 190 | + "x-onyxia": { |
| 191 | + "overwriteDefaultWith": "region.defaultNetworkPolicy" |
178 | 192 | }
|
179 | 193 | }
|
180 | 194 | }
|
181 | 195 | }
|
182 | 196 | }
|
183 |
| - } |
| 197 | + } |
184 | 198 | }
|
185 | 199 |
|
186 | 200 | }
|
0 commit comments