-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
review healthchecks and apisix generation
- Loading branch information
1 parent
a6e006b
commit 67b31ac
Showing
24 changed files
with
691 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,260 @@ | ||
routes: | ||
- | ||
uri: /builder | ||
upstream: | ||
nodes: | ||
"arlas-builder:80": 1 | ||
plugins: | ||
redirect: | ||
uri: /builder/ | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /builder/* | ||
upstream: | ||
nodes: | ||
"arlas-builder:80": 1 | ||
# response-rewrite: | ||
# headers: | ||
# set: | ||
# # Fix CWE Id: 693 | ||
# Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# # Fix CWE Id: 1021 | ||
# X-Frame-Options: "DENY" | ||
# # Fix CWE Id: 693 // The () means those resources are not allowed. | ||
# Permissions-Policy: accelerometer=(), camera=(), microphone=(), geolocation=(), usb=() | ||
# # Fix CWE Id: 200 | ||
# Server: "ARLAS services" | ||
# # Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
# Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# # Fix CWE Id: 693 | ||
# X-Content-Type-Options: nosniff | ||
plugins: | ||
proxy-rewrite: | ||
regex_uri: ["/builder/(.*)", "/$1"] | ||
- | ||
uri: / | ||
plugins: | ||
redirect: | ||
uri: /hub/ | ||
plugins: | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /hub | ||
plugins: | ||
redirect: | ||
uri: /hub/ | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /hub/* | ||
upstream: | ||
nodes: | ||
"arlas-hub:80": 1 | ||
plugins: | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 1021 | ||
X-Frame-Options: "DENY" | ||
# Fix CWE Id: 693 // The () means those resources are not allowed. | ||
Permissions-Policy: accelerometer=(), camera=(), microphone=(), geolocation=(), usb=() | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
proxy-rewrite: | ||
regex_uri: ["/hub/(.*)", "/$1"] | ||
- | ||
uri: /wui | ||
plugins: | ||
redirect: | ||
uri: /wui/ | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /wui/* | ||
upstream: | ||
nodes: | ||
"arlas-wui:80": 1 | ||
plugins: | ||
# response-rewrite: | ||
# headers: | ||
# set: | ||
# Fix CWE Id: 693 | ||
# Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src https://api.maptiler.com 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 1021 | ||
# X-Frame-Options: "DENY" | ||
# Fix CWE Id: 693 // The () means those resources are not allowed. | ||
# Permissions-Policy: accelerometer=(), camera=(), microphone=(), geolocation=(), usb=() | ||
# Fix CWE Id: 200 | ||
# Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
# Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
# X-Content-Type-Options: nosniff | ||
proxy-rewrite: | ||
regex_uri: ["/wui/(.*)", "/$1"] | ||
- | ||
uri: /arlas_permissions_server/healthcheck | ||
methods: ["GET"] | ||
upstream: | ||
nodes: | ||
"arlas-permissions-server:9996": 1 | ||
plugins: | ||
proxy-rewrite: | ||
regex_uri: ["/arlas_permissions_server/healthcheck", "/admin/healthcheck"] | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /arlas_permissions_server/* | ||
upstream: | ||
nodes: | ||
"arlas-permissions-server:9996": 1 | ||
plugins: | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /persist/healthcheck | ||
methods: ["GET"] | ||
upstream: | ||
nodes: | ||
"arlas-persistence-server:9997": 1 | ||
plugins: | ||
proxy-rewrite: | ||
regex_uri: ["/persist/healthcheck", "/admin/healthcheck"] | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /persist/* | ||
upstream: | ||
nodes: | ||
"arlas-persistence-server:9997": 1 | ||
plugins: | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /arlas/healthcheck | ||
methods: ["GET"] | ||
upstream: | ||
nodes: | ||
"arlas-server:9999": 1 | ||
plugins: | ||
proxy-rewrite: | ||
regex_uri: ["/arlas/healthcheck", "/admin/healthcheck"] | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /arlas/* | ||
upstream: | ||
nodes: | ||
"arlas-server:9999": 1 | ||
plugins: | ||
proxy-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 1021 | ||
Access-Control-Allow-Origin: "https://${ARLAS_HOST}" | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /basemaps/* | ||
methods: ["GET"] | ||
upstream: | ||
nodes: | ||
"protomaps:8080": 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
- | ||
uri: /iam | ||
plugins: | ||
redirect: | ||
uri: /iam/ | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /iam/* | ||
upstream: | ||
nodes: | ||
"arlas-wui-iam:80": 1 | ||
plugins: | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 1021 | ||
X-Frame-Options: "DENY" | ||
# Fix CWE Id: 693 // The () means those resources are not allowed. | ||
Permissions-Policy: accelerometer=(), camera=(), microphone=(), geolocation=(), usb=() | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /arlas_iam_server/* | ||
upstream: | ||
nodes: | ||
"arlas-iam-server:9998": 1 | ||
plugins: | ||
proxy-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 1021 | ||
Access-Control-Allow-Origin: "https://${ARLAS_HOST}" | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff | ||
- | ||
uri: /arlas_iam_server/healthcheck | ||
methods: ["GET"] | ||
upstream: | ||
nodes: | ||
"arlas-iam-server:9998": 1 | ||
plugins: | ||
proxy-rewrite: | ||
regex_uri: ["/arlas_iam_server/healthcheck", "/admin/healthcheck"] | ||
response-rewrite: | ||
headers: | ||
set: | ||
# Fix CWE Id: 693 | ||
Content-Security-Policy: "default-src https: data: blob: 'self'; connect-src 'self' data: blob:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; font-src 'self'; img-src 'self' data: blob:; frame-ancestors 'none'; form-action 'self'; object-src 'none'; manifest-src 'self'; frame-src 'self'" | ||
# Fix CWE Id: 200 | ||
Server: "ARLAS services" | ||
# Fix CWE Id: 319 // Value recommended by https://hstspreload.org/ | ||
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | ||
# Fix CWE Id: 693 | ||
X-Content-Type-Options: nosniff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ssls: | ||
- | ||
snis: | ||
- "localhost" | ||
- "${ARLAS_HOST}" | ||
cert: | | ||
${SSL_CERT} | ||
key: | | ||
${SSL_KEY} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.