File tree Expand file tree Collapse file tree 16 files changed +63
-28
lines changed
git-service/BareRepository/source/security Expand file tree Collapse file tree 16 files changed +63
-28
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ services:
7676 - editor
7777
7878 environment :
79+ - NODE_TLS_REJECT_UNAUTHORIZED=0
7980 - GATEWAY_URL=http://gateway
8081 - EDITOR_URL=http://gateway
8182 - AUTH_DIGEST_CREDENTIALS=user:pwd
@@ -90,6 +91,7 @@ services:
9091 depends_on :
9192 - gateway
9293 environment :
94+ - NODE_TLS_REJECT_UNAUTHORIZED=0
9395 - GATEWAY_URL=http://gateway
9496 - MINIO_HOST=minio
9597 - MINIO_PORT=9000
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ services:
7272 - " 5859:5858"
7373 - " 4005:3000"
7474 environment :
75+ - NODE_TLS_REJECT_UNAUTHORIZED=0
7576 - GIT_USER=git
7677 - GIT_URL=ssh://git@publishing/tweek/repo
7778 - GIT_PUBLIC_KEY_PATH=/run/secrets/tweek_ssh_public_key
@@ -112,11 +113,16 @@ services:
112113
113114 oidc-server-mock :
114115 container_name : oidc-server-mock
115- image : soluto/oidc-server-mock:0.1.0
116+ image : ghcr.io/ soluto/oidc-server-mock:0.5.2
116117 ports :
117- - " 8082:80"
118+ - " 8082:443"
119+ volumes :
120+ - ./https:/https:ro
118121 environment :
119122 ASPNETCORE_ENVIRONMENT : Development
123+ ASPNETCORE_URLS : https://+:443
124+ ASPNETCORE_Kestrel__Certificates__Default__Password : oidc-server-mock-pwd
125+ ASPNETCORE_Kestrel__Certificates__Default__Path : /https/aspnetapp.pfx
120126 CLIENTS_CONFIGURATION_INLINE : |
121127 [
122128 {
Original file line number Diff line number Diff line change 1010 "providers" : {
1111 "mock" : {
1212 "name" : " Mock OpenId Connect server" ,
13- "issuer" : " http ://localhost:8082" ,
14- "authority" : " http ://localhost:8082" ,
15- "jwks_uri" : " http ://oidc-server-mock/.well-known/openid-configuration/jwks" ,
13+ "issuer" : " https ://localhost:8082" ,
14+ "authority" : " https ://localhost:8082" ,
15+ "jwks_uri" : " https ://oidc-server-mock/.well-known/openid-configuration/jwks" ,
1616 "client_id" : " tweek-openid-mock-client" ,
1717 "login_info" : {
1818 "login_type" : " oidc" ,
Original file line number Diff line number Diff line change 99 "providers" : {
1010 "mock" : {
1111 "name" : " Mock OpenId Connect server" ,
12- "issuer" : " http ://localhost:8082" ,
13- "authority" : " http ://localhost:8082" ,
14- "jwks_uri" : " http ://localhost:8082/.well-known/openid-configuration/jwks" ,
12+ "issuer" : " https ://localhost:8082" ,
13+ "authority" : " https ://localhost:8082" ,
14+ "jwks_uri" : " https ://localhost:8082/.well-known/openid-configuration/jwks" ,
1515 "client_id" : " tweek-openid-mock-client" ,
1616 "login_info" : {
1717 "login_type" : " oidc" ,
Original file line number Diff line number Diff line change 44 "providers" : {
55 "mock" : {
66 "name" : " Mock OpenId Connect server" ,
7- "issuer" : " http ://oidc-server-mock" ,
8- "authority" : " http ://oidc-server-mock" ,
9- "jwks_uri" : " http ://oidc-server-mock/.well-known/openid-configuration/jwks" ,
7+ "issuer" : " https ://oidc-server-mock" ,
8+ "authority" : " https ://oidc-server-mock" ,
9+ "jwks_uri" : " https ://oidc-server-mock/.well-known/openid-configuration/jwks" ,
1010 "client_id" : " tweek-openid-mock-client" ,
1111 "login_info" : {
1212 "login_type" : " oidc" ,
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ services:
4848 depends_on :
4949 - publishing
5050 environment :
51+ NODE_TLS_REJECT_UNAUTHORIZED : ' 0'
5152 GIT_PRIVATE_KEY_PATH : /run/secrets/tweek_ssh_private_key
5253 GIT_PUBLIC_KEY_PATH : /run/secrets/tweek_ssh_public_key
5354 GIT_URL : ssh://git@publishing/tweek/repo
@@ -136,10 +137,12 @@ services:
136137 target : 8222
137138 oidc-server-mock :
138139 container_name : oidc-server-mock
140+ image : ghcr.io/soluto/oidc-server-mock:0.5.2
139141 environment :
140142 ASPNETCORE_ENVIRONMENT : Development
141- OIDC_CLIENT_ID : tweek-openid-mock-client
142- REDIRECT_URIS : http://localhost:8081/auth-result/oidc
143+ ASPNETCORE_URLS : https://+:443
144+ ASPNETCORE_Kestrel__Certificates__Default__Password : oidc-server-mock-pwd
145+ ASPNETCORE_Kestrel__Certificates__Default__Path : /https/aspnetapp.pfx
143146 CLIENTS_CONFIGURATION_INLINE : |
144147 [
145148 {
@@ -177,10 +180,10 @@ services:
177180 "Password":"pwd"
178181 }
179182 ]
180- image : soluto/oidc-server-mock:0.1.0
181183 ports :
182- - published : 8082
183- target : 80
184+ - 8082:443
185+ volumes :
186+ - ./https:/https:ro
184187 publishing :
185188 build :
186189 args :
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ If using Minikube/Microk8s create port forwarding:
2929
3030``` bash
3131kubectl port-forward deployment/gateway 8081:80
32- kubectl port-forward deployment/oidc-server-mock 8082:80
32+ kubectl port-forward deployment/oidc-server-mock 8082:443
3333```
3434
3535Finally, open in browser [ http://localhost:8081 ] ( http://localhost:8081 ) .
Original file line number Diff line number Diff line change 1616 "providers": {
1717 "mock": {
1818 "name": "Mock OpenId Connect server",
19- "issuer": "http ://localhost:8082",
20- "authority": "http ://localhost:8082",
21- "jwks_uri": "http ://oidc-server-mock:8082/.well-known/openid-configuration/jwks",
19+ "issuer": "https ://localhost:8082",
20+ "authority": "https ://localhost:8082",
21+ "jwks_uri": "https ://oidc-server-mock:8082/.well-known/openid-configuration/jwks",
2222 "client_id": "tweek-openid-mock-client",
2323 "login_info": {
2424 "login_type": "oidc",
Original file line number Diff line number Diff line change 1111 spec :
1212 containers :
1313 - name : oidc-mock
14- image : soluto/oidc-server-mock:0.1.0
14+ image : ghcr.io/ soluto/oidc-server-mock:0.5.2
1515 env :
1616 - name : ASPNETCORE_ENVIRONMENT
1717 value : Development
3434 app : oidc-server-mock
3535 ports :
3636 - port : 8082
37- targetPort : 80
37+ targetPort : 443
3838---
You can’t perform that action at this time.
0 commit comments