From c5d0e43a4d2603bd8f658c3179b859ef49438f61 Mon Sep 17 00:00:00 2001 From: mamo Date: Mon, 18 Nov 2024 12:43:40 +0000 Subject: [PATCH] new configuration version --- .../k8s-nai-6ec6739e824c8e56d9633622.yaml | 3 +- ...e-proxy-auth-6ec6739e824c8e56d9633622.yaml | 18 ++ .../opt/nevisauth/default/conf/esauth4.xml | 200 ++++++++++++------ .../k8s-npi-92e282d1dc2b69d9e4f91fc0.yaml | 2 +- .../WEB-INF/web.xml | 58 ++++- 5 files changed, 216 insertions(+), 65 deletions(-) create mode 100644 DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/etc/nevis/k8s-nai-sh4r3d-keystore-proxy-auth-6ec6739e824c8e56d9633622.yaml diff --git a/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/etc/nevis/k8s-nai-6ec6739e824c8e56d9633622.yaml b/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/etc/nevis/k8s-nai-6ec6739e824c8e56d9633622.yaml index 4875001..d03da2a 100644 --- a/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/etc/nevis/k8s-nai-6ec6739e824c8e56d9633622.yaml +++ b/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/etc/nevis/k8s-nai-6ec6739e824c8e56d9633622.yaml @@ -45,10 +45,11 @@ spec: podDisruptionBudget: maxUnavailable: "50%" git: - tag: "r-612de5fc83fd2311722a210577306790f282916d" + tag: "r-2d22feca491bf9199db3855019e70ca5ffd0c219" dir: "DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai" credentials: "git-credentials" keystores: + - "nai-sh4r3d-keystore-proxy-auth" - "nai-default-identity" - "nai-sh4r3d-default-default-signer" truststores: diff --git a/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/etc/nevis/k8s-nai-sh4r3d-keystore-proxy-auth-6ec6739e824c8e56d9633622.yaml b/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/etc/nevis/k8s-nai-sh4r3d-keystore-proxy-auth-6ec6739e824c8e56d9633622.yaml new file mode 100644 index 0000000..fee9f43 --- /dev/null +++ b/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/etc/nevis/k8s-nai-sh4r3d-keystore-proxy-auth-6ec6739e824c8e56d9633622.yaml @@ -0,0 +1,18 @@ +apiVersion: "operator.nevis-security.ch/v1" +kind: "NevisKeyStore" +metadata: + name: "nai-sh4r3d-keystore-proxy-auth" + namespace: "adn-postit-tknxchng-01-dev" + labels: + deploymentTarget: "nai" + annotations: + projectKey: "DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT" + patternId: "6ec6739e824c8e56d9633622" +spec: + cn: "New_OAuth_2.0_Authorization_Server_OpenID_Provider-signer" + usage: "signer" + san: + dns: + - "nai" + - "nai.adn-postit-tknxchng-01-dev" + email: [] diff --git a/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/var/opt/nevisauth/default/conf/esauth4.xml b/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/var/opt/nevisauth/default/conf/esauth4.xml index 16d8290..9ebda93 100644 --- a/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/var/opt/nevisauth/default/conf/esauth4.xml +++ b/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/nai/var/opt/nevisauth/default/conf/esauth4.xml @@ -42,6 +42,11 @@ + + + + + @@ -55,13 +60,14 @@ - + + - - + + @@ -288,7 +294,7 @@ - + @@ -297,6 +303,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -304,70 +341,113 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/npi/etc/nevis/k8s-npi-92e282d1dc2b69d9e4f91fc0.yaml b/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/npi/etc/nevis/k8s-npi-92e282d1dc2b69d9e4f91fc0.yaml index 1be06d9..0c41d14 100644 --- a/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/npi/etc/nevis/k8s-npi-92e282d1dc2b69d9e4f91fc0.yaml +++ b/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/npi/etc/nevis/k8s-npi-92e282d1dc2b69d9e4f91fc0.yaml @@ -46,7 +46,7 @@ spec: podDisruptionBudget: maxUnavailable: "50%" git: - tag: "r-612de5fc83fd2311722a210577306790f282916d" + tag: "r-2d22feca491bf9199db3855019e70ca5ffd0c219" dir: "DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/npi" credentials: "git-credentials" keystores: diff --git a/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/npi/var/opt/nevisproxy/default/host-cossa.agov-w.azure.adnovum.net/WEB-INF/web.xml b/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/npi/var/opt/nevisproxy/default/host-cossa.agov-w.azure.adnovum.net/WEB-INF/web.xml index 75442da..2888d2b 100644 --- a/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/npi/var/opt/nevisproxy/default/host-cossa.agov-w.azure.adnovum.net/WEB-INF/web.xml +++ b/DEFAULT-ADN-POST-IAM-TKNXCHNG-PROJECT/DEFAULT-ADN-POST-IAM-TKNXCHNG-INV/npi/var/opt/nevisproxy/default/host-cossa.agov-w.azure.adnovum.net/WEB-INF/web.xml @@ -99,6 +99,33 @@ /var/opt/nevisproxy/default/host-cossa.agov-w.azure.adnovum.net/WEB-INF/security_cossa_realm_tokenintrospection.conf + + + OAuth_Preflighted_CORS_New OAuth 2.0 Authorization Server / OpenID Provider + ch::nevis::isiweb4::filter::lua::LuaFilter + + + Script + + function inputHeader(request, response) + response:setHeader("Access-Control-Allow-Origin", "*") + response:setHeader("Access-Control-Allow-Credentials", "true") + response:setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, OPTIONS") + response:setHeader("Access-Control-Allow-Headers", "Authorization") + response:setHeader("Access-Control-Expose-Headers", "*") + response:setHeader("Access-Control-Max-Age", "600") + if request:getMethod() == "OPTIONS" then + response:send(204) + end + end + + + + + Script.InputHeaderFunctionName + inputHeader + + Qos @@ -193,6 +220,21 @@ SessionHandler_cossa_realm /asdf/* + + + SessionHandler_cossa_realm + /qwert/* + + + + OAuth_Preflighted_CORS_New OAuth 2.0 Authorization Server / OpenID Provider + /asdf/* + + + + OAuth_Preflighted_CORS_New OAuth 2.0 Authorization Server / OpenID Provider + /qwert/* + ModSecurity_cossa_realm_TokenIntrospection @@ -209,6 +251,11 @@ /asdf/* + + AuthenticationService_cossa_realm + /qwert/* + + ch::nevis::isiweb4::listener::SessionListener @@ -344,10 +391,10 @@ true - + Hosting_Default - + ch::nevis::isiweb4::servlet::defaults::DefaultServlet @@ -413,7 +460,7 @@ /nevislogrend - + Hosting_Default /asdf/* @@ -428,6 +475,11 @@ Connector_cossa_realm_TokenIntrospection /oauth/introspect2/* + + + Hosting_Default + /qwert/* + Hosting_Default