stand: свой istio-config по образцу uralkal — хост sarex.stand.sarex.tech с маршрутами к развёрнутым сервисам, сертификат stand-sarex-tls, JWKS ключа стенда, ServiceEntry JWKS Zitadel
This commit is contained in:
parent
7afd4b0acd
commit
1328aa3ec7
@ -1,4 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../../infrastructure/istio-config/contour-template
|
||||
- ../../../infrastructure/istio-config/stand
|
||||
|
||||
16
infrastructure/istio-config/stand/certificate.yaml
Normal file
16
infrastructure/istio-config/stand/certificate.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: stand-sarex-tls
|
||||
namespace: istio-system
|
||||
spec:
|
||||
secretName: stand-sarex-tls
|
||||
issuerRef:
|
||||
kind: ClusterIssuer
|
||||
name: letsencrypt-issuer-istio
|
||||
dnsNames:
|
||||
- sarex.stand.sarex.tech
|
||||
- document-link.stand.sarex.tech
|
||||
- sarex-stamp-verification.stand.sarex.tech
|
||||
privateKey:
|
||||
rotationPolicy: Always
|
||||
994
infrastructure/istio-config/stand/istio-config.yaml
Normal file
994
infrastructure/istio-config/stand/istio-config.yaml
Normal file
@ -0,0 +1,994 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: istio-config
|
||||
namespace: default
|
||||
spec:
|
||||
dependsOn: []
|
||||
interval: 5m
|
||||
timeout: 10m
|
||||
chart:
|
||||
spec:
|
||||
chart: istio-config-contour
|
||||
version: 0.1.1
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: yc-oci-charts
|
||||
namespace: flux-system
|
||||
interval: 10m
|
||||
values:
|
||||
global:
|
||||
env: stand
|
||||
environments:
|
||||
stand:
|
||||
istio:
|
||||
requestAuthentications:
|
||||
api-jwt:
|
||||
namespace: istio-system
|
||||
selector:
|
||||
matchLabels:
|
||||
istio: ingressgateway
|
||||
jwtRules:
|
||||
- issuer: default_issuer
|
||||
jwks: |
|
||||
{
|
||||
"keys": [
|
||||
{
|
||||
"kty": "RSA",
|
||||
"use": "sig",
|
||||
"alg": "RS512",
|
||||
"n": "vGDH90paqFBDBuFqvSEDDj4DsDv9U9m44NYRsKygjSMAARZhA19bfWpj926BlHw5EP1nJWzS_baSRUNJittmq3XVWhK2RcnjAyQ7If6MnQn-Mpil-mdT5AlRl55E_17pCXf-3s-p71luu47ZJpfm81iy5IAEr2hrZWuCnM8PnDQK12WsT_8xUyPy3zvcLV6WSN_tkhdxyb7ElC9OJa1MLm0cv6rA0DEif8jXENk1XDshKETUa7rwethHPWS9Of-KpHr2MVLaAATVSStG7NoxksOr5zlm4L3Aven2t9pZM-f2TQwOlqhf8E_9qNlKd4O2FrjLHGziHwb_FTnQi5eFHw_5fnHc43m3sBHmn-IHHP_T1uQ5XgxmPF5JuIN9aWrIl14duyBfv93NFq8wVw58o_FeHAfp5bFaKjoqPv0HQGWuX76xC6O_nIiIznnXmZdCVnzBnbPRvz_wTmBwzQqsflEUBj2uNq0SrArZpUBFKwEoKYfgBCenQvsOvCsHucBrfzFXgHsn252c7L_AlTtZZt9_Bn9_07ojeYZpT3AcWWoPylnAMQmzlm4Yj6MIN9UQkEuvj3Vwcl1N0LLkNSy2-Jsc0pQJOuGBaf0xk0HQSjqGMFHJFcqbpSZ_DXzRaUeeZFo3U_igHOZ_k-b1Pd4H3eAeKM7Zr2bKEIGLJXvwSAc",
|
||||
"e": "AQAB"
|
||||
}
|
||||
]
|
||||
}
|
||||
forwardOriginalToken: true
|
||||
outputClaimToHeaders:
|
||||
- claim: user_id
|
||||
header: x-user-id
|
||||
- claim: company_ids
|
||||
header: x-company-ids
|
||||
zitadel-jwt:
|
||||
namespace: istio-system
|
||||
selector:
|
||||
matchLabels:
|
||||
istio: ingressgateway
|
||||
jwtRules:
|
||||
- issuer: https://login.stand.sarex.tech
|
||||
jwksUri: http://login.stand.sarex.tech:8080/oauth/v2/keys
|
||||
forwardOriginalToken: true
|
||||
outputClaimToHeaders:
|
||||
- claim: urn:zitadel:iam:user:metadata.user_id
|
||||
header: x-user-id
|
||||
- claim: urn:zitadel:iam:user:metadata.company_ids
|
||||
header: x-company-ids
|
||||
add-traceparent-filter:
|
||||
- attachments
|
||||
- auth-flow
|
||||
- bi
|
||||
- bim
|
||||
- checklists
|
||||
- contracts
|
||||
- control-interface
|
||||
- cross-section
|
||||
- django
|
||||
- document-link
|
||||
- drawings
|
||||
- eav
|
||||
- faas
|
||||
- flows
|
||||
- iam
|
||||
- inspections
|
||||
- issues
|
||||
- mapper
|
||||
- measurements
|
||||
- message-hub
|
||||
- notes
|
||||
- pm
|
||||
- prescriptions
|
||||
- projects
|
||||
- remarks
|
||||
- reviews
|
||||
- rfi
|
||||
- stamp-verification
|
||||
- subscriptions
|
||||
- workspaces
|
||||
gateways:
|
||||
platform:
|
||||
name: platform-gateway
|
||||
namespace: default
|
||||
selector:
|
||||
istio: ingressgateway
|
||||
tlsOptions:
|
||||
minProtocolVersion: TLSV1_2
|
||||
cipherSuites:
|
||||
- ECDHE-ECDSA-AES256-GCM-SHA384
|
||||
- ECDHE-RSA-AES256-GCM-SHA384
|
||||
- ECDHE-ECDSA-AES128-GCM-SHA256
|
||||
- ECDHE-RSA-AES128-GCM-SHA256
|
||||
- ECDHE-ECDSA-CHACHA20-POLY1305
|
||||
- ECDHE-RSA-CHACHA20-POLY1305
|
||||
servers:
|
||||
- hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
- document-link.stand.sarex.tech
|
||||
- sarex-stamp-verification.stand.sarex.tech
|
||||
tls:
|
||||
credentialName: stand-sarex-tls
|
||||
- hosts:
|
||||
- login.stand.sarex.tech
|
||||
- camunda.stand.sarex.tech
|
||||
- camunda-identity.stand.sarex.tech
|
||||
- camunda-keycloak.stand.sarex.tech
|
||||
- camunda-optimize.stand.sarex.tech
|
||||
- camunda-tasklist.stand.sarex.tech
|
||||
- rabbitmq.stand.sarex.tech
|
||||
tls:
|
||||
credentialName: istio-ingress-tls
|
||||
envoyFilters:
|
||||
decode-zitadel-headers:
|
||||
namespace: istio-system
|
||||
workloadSelector:
|
||||
labels:
|
||||
istio: ingressgateway
|
||||
configPatches:
|
||||
- applyTo: HTTP_FILTER
|
||||
match:
|
||||
context: GATEWAY
|
||||
listener:
|
||||
filterChain:
|
||||
filter:
|
||||
name: envoy.filters.network.http_connection_manager
|
||||
subFilter:
|
||||
name: envoy.filters.http.router
|
||||
patch:
|
||||
operation: INSERT_BEFORE
|
||||
value:
|
||||
name: envoy.filters.http.lua
|
||||
typed_config:
|
||||
'@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
|
||||
inlineCode: |
|
||||
function base64_decode(input)
|
||||
local b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
|
||||
input = input:gsub('[^'..b..'=]', '')
|
||||
local result = {}
|
||||
local bits = 0
|
||||
local acc = 0
|
||||
for i = 1, #input do
|
||||
local c = input:sub(i, i)
|
||||
if c == '=' then break end
|
||||
local idx = b:find(c, 1, true)
|
||||
if idx then
|
||||
acc = acc * 64 + (idx - 1)
|
||||
bits = bits + 6
|
||||
while bits >= 8 do
|
||||
bits = bits - 8
|
||||
local byte = math.floor(acc / (2 ^ bits)) % 256
|
||||
result[#result + 1] = string.char(byte)
|
||||
end
|
||||
end
|
||||
end
|
||||
return table.concat(result)
|
||||
end
|
||||
|
||||
function is_numeric(value)
|
||||
return value ~= nil and value:match("^%d+$") ~= nil
|
||||
end
|
||||
|
||||
function decode_header_if_needed(handle, header_name)
|
||||
local value = handle:headers():get(header_name)
|
||||
if not value or value == "" then
|
||||
return
|
||||
end
|
||||
|
||||
-- Если уже число (например "1234"), не декодируем
|
||||
if is_numeric(value) then
|
||||
return
|
||||
end
|
||||
|
||||
local decoded = base64_decode(value)
|
||||
-- Отличие от prod: заменяем только на ожидаемый вид (id/список id),
|
||||
-- иначе удаляем заголовок — мусорные байты валят приложение
|
||||
-- ("invalid header value for: x-user-id").
|
||||
if decoded and decoded:match("^[%d,]+$") then
|
||||
handle:headers():replace(header_name, decoded)
|
||||
else
|
||||
handle:headers():remove(header_name)
|
||||
end
|
||||
end
|
||||
|
||||
function envoy_on_request(handle)
|
||||
decode_header_if_needed(handle, "x-user-id")
|
||||
decode_header_if_needed(handle, "x-company-ids")
|
||||
end
|
||||
strip-jwt-on-public-hosts:
|
||||
namespace: istio-system
|
||||
workloadSelector:
|
||||
labels:
|
||||
istio: ingressgateway
|
||||
configPatches:
|
||||
- applyTo: HTTP_FILTER
|
||||
match:
|
||||
context: GATEWAY
|
||||
listener:
|
||||
filterChain:
|
||||
filter:
|
||||
name: envoy.filters.network.http_connection_manager
|
||||
subFilter:
|
||||
name: envoy.filters.http.jwt_authn
|
||||
patch:
|
||||
operation: INSERT_BEFORE
|
||||
value:
|
||||
name: envoy.filters.http.lua
|
||||
typed_config:
|
||||
'@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
|
||||
inlineCode: |
|
||||
local public_hosts = {
|
||||
["login.stand.sarex.tech"] = true,
|
||||
["document-link.stand.sarex.tech"] = true,
|
||||
["camunda-keycloak.stand.sarex.tech"] = true,
|
||||
["camunda-identity.stand.sarex.tech"] = true,
|
||||
["camunda.stand.sarex.tech"] = true,
|
||||
["camunda-optimize.stand.sarex.tech"] = true,
|
||||
["rabbitmq.stand.sarex.tech"] = true,
|
||||
["camunda-tasklist.stand.sarex.tech"] = true,
|
||||
}
|
||||
|
||||
local public_paths = {
|
||||
"^/documentations/api/v1/public/qr",
|
||||
"^/documentations/api/v1/public/documents/public_link",
|
||||
}
|
||||
|
||||
local function is_public(host, path)
|
||||
if not host then return false end
|
||||
host = string.gsub(host, ":%d+$", "")
|
||||
if public_hosts[host] then
|
||||
return true
|
||||
end
|
||||
if path then
|
||||
for _,pref in ipairs(public_paths) do
|
||||
if string.find(path, pref) == 1 then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function envoy_on_request(handle)
|
||||
local h = handle:headers()
|
||||
local host = h:get(":authority")
|
||||
local path = h:get(":path")
|
||||
if is_public(host, path) then
|
||||
local auth = h:get("authorization")
|
||||
if auth then
|
||||
h:replace("x-orig-authorization", auth)
|
||||
h:remove("authorization")
|
||||
end
|
||||
end
|
||||
end
|
||||
- applyTo: HTTP_FILTER
|
||||
match:
|
||||
context: GATEWAY
|
||||
listener:
|
||||
filterChain:
|
||||
filter:
|
||||
name: envoy.filters.network.http_connection_manager
|
||||
subFilter:
|
||||
name: envoy.filters.http.jwt_authn
|
||||
patch:
|
||||
operation: INSERT_AFTER
|
||||
value:
|
||||
name: envoy.filters.http.lua
|
||||
typed_config:
|
||||
'@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
|
||||
inlineCode: |
|
||||
function envoy_on_request(handle)
|
||||
local h = handle:headers()
|
||||
local xauth = h:get("x-orig-authorization")
|
||||
if xauth and not h:get("authorization") then
|
||||
h:replace("authorization", xauth)
|
||||
h:remove("x-orig-authorization")
|
||||
end
|
||||
end
|
||||
strip-jwt-on-public-paths:
|
||||
namespace: istio-system
|
||||
workloadSelector:
|
||||
labels:
|
||||
istio: ingressgateway
|
||||
configPatches:
|
||||
- applyTo: HTTP_FILTER
|
||||
match:
|
||||
context: GATEWAY
|
||||
listener:
|
||||
filterChain:
|
||||
filter:
|
||||
name: envoy.filters.network.http_connection_manager
|
||||
subFilter:
|
||||
name: envoy.filters.http.jwt_authn
|
||||
patch:
|
||||
operation: INSERT_BEFORE
|
||||
value:
|
||||
name: envoy.filters.http.lua
|
||||
typed_config:
|
||||
'@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
|
||||
inlineCode: |
|
||||
local public_prefixes = {
|
||||
"^/documentations/api/v1/public/qr",
|
||||
"^/documentations/api/v1/public/documents/public_link"
|
||||
}
|
||||
|
||||
local download_prefixes = {
|
||||
"^/files/api/v1/documents/folders",
|
||||
"^/files/api/v1/documents",
|
||||
"^/files/api/v1/bundles"
|
||||
}
|
||||
|
||||
local function starts_with_any(path, prefixes)
|
||||
for _, pref in ipairs(prefixes) do
|
||||
if string.find(path, pref) == 1 then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
local function has_download_type(path)
|
||||
if not path or path == "" then
|
||||
return false
|
||||
end
|
||||
return string.match(path, "[%?&]download_type=") ~= nil
|
||||
end
|
||||
|
||||
local function should_strip(path)
|
||||
if not path then
|
||||
return false
|
||||
end
|
||||
|
||||
if starts_with_any(path, public_prefixes) then
|
||||
return true
|
||||
end
|
||||
|
||||
if starts_with_any(path, download_prefixes) and has_download_type(path) then
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
function envoy_on_request(handle)
|
||||
local h = handle:headers()
|
||||
local p = h:get(":path") or ""
|
||||
|
||||
if should_strip(p) then
|
||||
local auth = h:get("authorization")
|
||||
if auth then
|
||||
h:replace("x-orig-authorization-public-paths", auth)
|
||||
h:remove("authorization")
|
||||
end
|
||||
|
||||
local identity = h:get("identity")
|
||||
if identity then
|
||||
h:replace("x-orig-identity-public-paths", identity)
|
||||
h:remove("identity")
|
||||
end
|
||||
|
||||
h:replace("x-jwt-stripped-public-paths", "1")
|
||||
end
|
||||
end
|
||||
- applyTo: HTTP_FILTER
|
||||
match:
|
||||
context: GATEWAY
|
||||
listener:
|
||||
filterChain:
|
||||
filter:
|
||||
name: envoy.filters.network.http_connection_manager
|
||||
subFilter:
|
||||
name: envoy.filters.http.jwt_authn
|
||||
patch:
|
||||
operation: INSERT_AFTER
|
||||
value:
|
||||
name: envoy.filters.http.lua
|
||||
typed_config:
|
||||
'@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
|
||||
inlineCode: |
|
||||
function envoy_on_request(handle)
|
||||
local h = handle:headers()
|
||||
local stripped = h:get("x-jwt-stripped-public-paths")
|
||||
|
||||
if stripped == "1" then
|
||||
local xauth = h:get("x-orig-authorization-public-paths")
|
||||
if xauth and not h:get("authorization") then
|
||||
h:replace("authorization", xauth)
|
||||
end
|
||||
h:remove("x-orig-authorization-public-paths")
|
||||
|
||||
local xidentity = h:get("x-orig-identity-public-paths")
|
||||
if xidentity and not h:get("identity") then
|
||||
h:replace("identity", xidentity)
|
||||
end
|
||||
h:remove("x-orig-identity-public-paths")
|
||||
|
||||
h:remove("x-jwt-stripped-public-paths")
|
||||
end
|
||||
end
|
||||
cors-json-401:
|
||||
namespace: istio-system
|
||||
workloadSelector:
|
||||
labels:
|
||||
istio: ingressgateway
|
||||
configPatches:
|
||||
- applyTo: HTTP_FILTER
|
||||
match:
|
||||
context: GATEWAY
|
||||
listener:
|
||||
filterChain:
|
||||
filter:
|
||||
name: envoy.filters.http.jwt_authn
|
||||
patch:
|
||||
operation: INSERT_BEFORE
|
||||
value:
|
||||
name: envoy.filters.http.cors
|
||||
typed_config:
|
||||
'@type': type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
|
||||
cors:
|
||||
allow_credentials: true
|
||||
allow_headers: Authorization,Content-Type
|
||||
allow_methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
|
||||
allow_origin_string_match:
|
||||
- safe_regex:
|
||||
regex: https://.*\.stand\.sarex\.tech
|
||||
- safe_regex:
|
||||
regex: https://localhost:.*
|
||||
max_age: '86400'
|
||||
- applyTo: NETWORK_FILTER
|
||||
match:
|
||||
context: GATEWAY
|
||||
listener:
|
||||
filterChain:
|
||||
filter:
|
||||
name: envoy.filters.network.http_connection_manager
|
||||
patch:
|
||||
operation: MERGE
|
||||
value:
|
||||
typed_config:
|
||||
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
|
||||
local_reply_config:
|
||||
mappers:
|
||||
- body:
|
||||
inline_string: |
|
||||
{"error":"unauthorized","detail":"Invalid or expired token"}
|
||||
filter:
|
||||
status_code_filter:
|
||||
comparison:
|
||||
op: EQ
|
||||
value:
|
||||
default_value: 401
|
||||
runtime_key: default
|
||||
headers_to_add:
|
||||
- append_action: OVERWRITE_IF_EXISTS_OR_ADD
|
||||
header:
|
||||
key: Content-Type
|
||||
value: application/json
|
||||
- append_action: OVERWRITE_IF_EXISTS_OR_ADD
|
||||
header:
|
||||
key: Access-Control-Allow-Origin
|
||||
value: '%REQ(Origin)%'
|
||||
- append_action: OVERWRITE_IF_EXISTS_OR_ADD
|
||||
header:
|
||||
key: Access-Control-Allow-Credentials
|
||||
value: 'true'
|
||||
set-auth-type-header:
|
||||
namespace: istio-system
|
||||
workloadSelector:
|
||||
labels:
|
||||
istio: ingressgateway
|
||||
configPatches:
|
||||
- applyTo: HTTP_FILTER
|
||||
match:
|
||||
context: GATEWAY
|
||||
listener:
|
||||
filterChain:
|
||||
filter:
|
||||
name: envoy.filters.network.http_connection_manager
|
||||
subFilter:
|
||||
name: envoy.filters.http.router
|
||||
patch:
|
||||
operation: INSERT_BEFORE
|
||||
value:
|
||||
name: envoy.filters.http.lua
|
||||
typed_config:
|
||||
'@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
|
||||
inlineCode: |
|
||||
local function detect_auth_type(authz)
|
||||
if not authz or authz == "" then
|
||||
return "no"
|
||||
end
|
||||
if authz:match("^Basic%s+") then
|
||||
return "basic"
|
||||
end
|
||||
if authz:match("^Bearer%s+") then
|
||||
return "jwt"
|
||||
end
|
||||
return "no"
|
||||
end
|
||||
|
||||
function envoy_on_request(handle)
|
||||
local auth_type = detect_auth_type(handle:headers():get("authorization"))
|
||||
handle:headers():replace("x-auth-type", auth_type)
|
||||
handle:streamInfo():dynamicMetadata():set("sarex.auth_type", "value", auth_type)
|
||||
end
|
||||
|
||||
function envoy_on_response(handle)
|
||||
local auth_type = "no"
|
||||
local md = handle:streamInfo():dynamicMetadata():get("sarex.auth_type")
|
||||
if md and md["value"] and md["value"] ~= "" then
|
||||
auth_type = md["value"]
|
||||
end
|
||||
handle:headers():replace("x-auth-type", auth_type)
|
||||
end
|
||||
gateway-hsts:
|
||||
namespace: istio-system
|
||||
workloadSelector:
|
||||
labels:
|
||||
istio: ingressgateway
|
||||
configPatches:
|
||||
- applyTo: HTTP_ROUTE
|
||||
match:
|
||||
context: GATEWAY
|
||||
patch:
|
||||
operation: MERGE
|
||||
value:
|
||||
response_headers_to_add:
|
||||
- header:
|
||||
key: Strict-Transport-Security
|
||||
value: max-age=31536000
|
||||
append_action: OVERWRITE_IF_EXISTS_OR_ADD
|
||||
virtualServices:
|
||||
iam-api:
|
||||
name: iam-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /iam/api/
|
||||
rewrite: /external/api/
|
||||
service: iam-backend.iam.svc.cluster.local
|
||||
port: 8000
|
||||
mapper-api:
|
||||
name: mapper-api-virt-service
|
||||
namespace: gateway
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /mapper/api/
|
||||
rewrite: /api/
|
||||
service: backend-svc.mapper.svc.cluster.local
|
||||
port: 80
|
||||
rfi-frontend:
|
||||
name: rfi-frontend-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /rfi/static/
|
||||
rewrite: /
|
||||
service: frontend-svc.rfi.svc.cluster.local
|
||||
port: 80
|
||||
rfi-api:
|
||||
name: rfi-api-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /rfi/api/
|
||||
rewrite: /api/
|
||||
service: backend-svc.rfi.svc.cluster.local
|
||||
port: 80
|
||||
pm:
|
||||
name: pm-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /pm/api/
|
||||
rewrite: /api/
|
||||
service: backend-svc.pm.svc.cluster.local
|
||||
port: 8000
|
||||
- path:
|
||||
prefix: /pm/
|
||||
rewrite: /
|
||||
service: frontend-svc.pm.svc.cluster.local
|
||||
port: 80
|
||||
workspaces-api:
|
||||
name: workspaces-api-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /workspaces/api/
|
||||
rewrite: /api/
|
||||
service: backend-svc.workspaces.svc.cluster.local
|
||||
port: 80
|
||||
issues-api:
|
||||
name: issues-api-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /issues/api/
|
||||
rewrite: /api/
|
||||
service: backend-svc.issues.svc.cluster.local
|
||||
port: 80
|
||||
checklists-api:
|
||||
name: checklists-api-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /checklists/api/
|
||||
rewrite: /api/
|
||||
service: backend-svc.checklists.svc.cluster.local
|
||||
port: 80
|
||||
bim-api:
|
||||
name: bim-api-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /bimv2/api/
|
||||
rewrite: /api/
|
||||
service: backend-svc.bim.svc.cluster.local
|
||||
port: 80
|
||||
flows-api:
|
||||
name: flows-api-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /flows/api/
|
||||
rewrite: /api/
|
||||
service: backend-svc.flows.svc.cluster.local
|
||||
port: 80
|
||||
issues-frontend:
|
||||
name: issues-frontend-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /issues/static/
|
||||
rewrite: /
|
||||
service: frontend-svc.issues.svc.cluster.local
|
||||
port: 80
|
||||
remarks-frontend:
|
||||
name: remarks-frontend-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /remarks/static/
|
||||
rewrite: /
|
||||
service: frontend-service.remarks.svc.cluster.local
|
||||
port: 80
|
||||
auth-frontend:
|
||||
name: auth-frontend-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /auth/callback
|
||||
rewrite: /
|
||||
service: frontend-svc.auth-flow.svc.cluster.local
|
||||
port: 80
|
||||
flows-frontend:
|
||||
name: flows-frontend-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /flows/static/
|
||||
rewrite: /
|
||||
service: frontend-svc.flows.svc.cluster.local
|
||||
port: 80
|
||||
inspections-api:
|
||||
name: inspections-api-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /inspections/api/
|
||||
rewrite: /api/
|
||||
service: backend-svc.inspections.svc.cluster.local
|
||||
port: 80
|
||||
reviews-frontend:
|
||||
name: reviews-frontend-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /reviews/static/
|
||||
rewrite: /
|
||||
service: frontend-svc.reviews.svc.cluster.local
|
||||
port: 80
|
||||
cross-section-frontend:
|
||||
name: cross-section-frontend-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /cross-section/static/
|
||||
rewrite: /
|
||||
service: cross-section-static.cross-section.svc.cluster.local
|
||||
port: 80
|
||||
notes-api:
|
||||
name: notes-api-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /notes/api/
|
||||
rewrite: /api/
|
||||
service: backend-service.notes.svc.cluster.local
|
||||
port: 8000
|
||||
notes-frontend:
|
||||
name: notes-frontend-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /notes/static/
|
||||
rewrite: /
|
||||
service: frontend-service.notes.svc.cluster.local
|
||||
port: 80
|
||||
eav-api:
|
||||
name: eav-api-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /eav/api/v0
|
||||
rewrite: /api/v4
|
||||
service: backend-svc.eav.svc.cluster.local
|
||||
port: 80
|
||||
- path:
|
||||
prefix: /eav/api/v2
|
||||
rewrite: /api/v5
|
||||
service: backend-svc.eav.svc.cluster.local
|
||||
port: 80
|
||||
- path:
|
||||
prefix: /eav/api/v3
|
||||
rewrite: /api/v3
|
||||
service: backend-svc.eav.svc.cluster.local
|
||||
port: 80
|
||||
- path:
|
||||
prefix: /eav/api/v4
|
||||
rewrite: /api/v4
|
||||
service: backend-svc.eav.svc.cluster.local
|
||||
port: 80
|
||||
- path:
|
||||
prefix: /eav/api/v1
|
||||
rewrite: /api/v6
|
||||
service: backend-svc.eav.svc.cluster.local
|
||||
port: 80
|
||||
- path:
|
||||
prefix: /eav/admin/
|
||||
rewrite: /eav/admin/
|
||||
service: backend-svc.eav.svc.cluster.local
|
||||
port: 80
|
||||
srx-admin-frontend:
|
||||
name: srx-admin-frontend-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /control-interface/
|
||||
rewrite: /
|
||||
service: frontend-svc.control-interface.svc.cluster.local
|
||||
port: 8080
|
||||
s3-proxy-media:
|
||||
name: s3-proxy-media-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /media/
|
||||
rewrite: /
|
||||
service: s3-proxy-svc.django.svc.cluster.local
|
||||
port: 80
|
||||
bi-api:
|
||||
name: bi-api-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /analytics-v2/api/
|
||||
rewrite: /api/
|
||||
service: bi-backend-service.bi.svc.cluster.local
|
||||
port: 80
|
||||
bi-frontend:
|
||||
name: bi-frontend-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /analytics-v2/static/
|
||||
rewrite: /
|
||||
service: bi-frontend-frontend-svc.bi.svc.cluster.local
|
||||
port: 80
|
||||
- path:
|
||||
prefix: /analytics-v2/
|
||||
rewrite: /
|
||||
service: bi-frontend-frontend-svc.bi.svc.cluster.local
|
||||
port: 80
|
||||
zitadel:
|
||||
namespace: default
|
||||
hosts:
|
||||
- login.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /
|
||||
service: zitadel-idp-contour.zitadel.svc.cluster.local
|
||||
port: 8080
|
||||
camunda-operate:
|
||||
namespace: default
|
||||
hosts:
|
||||
- camunda.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /
|
||||
service: camunda-operate.camunda.svc.cluster.local
|
||||
port: 80
|
||||
stamp-verification:
|
||||
namespace: default
|
||||
hosts:
|
||||
- sarex-stamp-verification.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /
|
||||
service: frontend-service.stamp-verification.svc.cluster.local
|
||||
port: 80
|
||||
document-link:
|
||||
namespace: default
|
||||
hosts:
|
||||
- document-link.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /
|
||||
service: frontend-service.document-link.svc.cluster.local
|
||||
port: 80
|
||||
camunda-keycloak:
|
||||
namespace: default
|
||||
hosts:
|
||||
- camunda-keycloak.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /
|
||||
service: camunda-keycloak.camunda.svc.cluster.local
|
||||
port: 80
|
||||
camunda-identity:
|
||||
namespace: default
|
||||
hosts:
|
||||
- camunda-identity.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /
|
||||
service: camunda-identity.camunda.svc.cluster.local
|
||||
port: 80
|
||||
camunda-optimize:
|
||||
namespace: default
|
||||
hosts:
|
||||
- camunda-optimize.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /
|
||||
service: camunda-optimize.camunda.svc.cluster.local
|
||||
port: 80
|
||||
camunda-tasklist:
|
||||
namespace: default
|
||||
hosts:
|
||||
- camunda-tasklist.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /
|
||||
service: camunda-tasklist.camunda.svc.cluster.local
|
||||
port: 80
|
||||
rabbitmq:
|
||||
name: rabbitmq-virt-service
|
||||
namespace: default
|
||||
hosts:
|
||||
- rabbitmq.stand.sarex.tech
|
||||
gateways:
|
||||
- default/platform-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /
|
||||
service: rabbitmq.rabbitmq.svc.cluster.local
|
||||
port: 15672
|
||||
8
infrastructure/istio-config/stand/kustomization.yaml
Normal file
8
infrastructure/istio-config/stand/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
- certificate.yaml
|
||||
- zitadel-jwks-serviceentry.yaml
|
||||
patches:
|
||||
- path: istio-config.yaml
|
||||
@ -0,0 +1,18 @@
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: ServiceEntry
|
||||
metadata:
|
||||
name: zitadel-jwks
|
||||
namespace: default
|
||||
spec:
|
||||
hosts:
|
||||
- login.stand.sarex.tech
|
||||
location: MESH_INTERNAL
|
||||
resolution: DNS
|
||||
ports:
|
||||
- number: 8080
|
||||
name: http
|
||||
protocol: HTTP
|
||||
endpoints:
|
||||
- address: zitadel-idp-contour.zitadel.svc.cluster.local
|
||||
ports:
|
||||
http: 8080
|
||||
Loading…
Reference in New Issue
Block a user