Skip to content

Commit

Permalink
Merge pull request #1153 from equinor/master
Browse files Browse the repository at this point in the history
Release Configure DNS Alias for Console, update headers fod oauth2 feature
  • Loading branch information
Richard87 authored Dec 17, 2024
2 parents a8b83ac + aa75ac6 commit 1172878
Show file tree
Hide file tree
Showing 10 changed files with 89 additions and 9 deletions.
1 change: 1 addition & 0 deletions .env.c2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export AZURE_CLIENT_ID=8186a108-135d-478e-af97-e200cb238757
export OAUTH2_REDIS_QA_HOSTNAME=radix-c2-qa.redis.cache.windows.net
export OAUTH2_REDIS_PROD_HOSTNAME=radix-c2-prod.redis.cache.windows.net
export ACTIVE_ENVIRONMENT=prod
1 change: 1 addition & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export AZURE_CLIENT_ID=5687b237-eda3-4ec3-a2a1-023e85a2bd84
export OAUTH2_REDIS_QA_HOSTNAME=radix-dev-qa.redis.cache.windows.net
export OAUTH2_REDIS_PROD_HOSTNAME=radix-dev-prod.redis.cache.windows.net
export ACTIVE_ENVIRONMENT=qa
2 changes: 2 additions & 0 deletions .env.platform
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export AZURE_CLIENT_ID=a593a59c-8f76-490e-937b-a90779039a90
export OAUTH2_REDIS_QA_HOSTNAME=radix-platform-qa.redis.cache.windows.net
export OAUTH2_REDIS_PROD_HOSTNAME=radix-platform-prod.redis.cache.windows.net
export DNS_NAME=radix.equinor.com
export ACTIVE_ENVIRONMENT=prod
1 change: 1 addition & 0 deletions .env.playground
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export AZURE_CLIENT_ID=a593a59c-8f76-490e-937b-a90779039a90
export OAUTH2_REDIS_QA_HOSTNAME=radix-playground-qa.redis.cache.windows.net
export OAUTH2_REDIS_PROD_HOSTNAME=radix-playground-prod.redis.cache.windows.net
export ACTIVE_ENVIRONMENT=prod
8 changes: 4 additions & 4 deletions proxy/server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ server {

location /api/ {
proxy_pass https://server-radix-api-${RADIX_ENVIRONMENT}.${RADIX_CLUSTERNAME}.${RADIX_DNS_ZONE};
proxy_set_header Authorization "Bearer $http_x_forwarded_access_token";
proxy_set_header Authorization "Bearer $http_x_auth_request_access_token";
proxy_set_header x-forwarded-access-token "";
}

location /cost-api/ {
proxy_pass https://server-radix-cost-allocation-api-${RADIX_ENVIRONMENT}.${RADIX_CLUSTERNAME}.${RADIX_DNS_ZONE}/api/v1/;
proxy_set_header Authorization "Bearer $http_x_forwarded_access_token";
proxy_set_header Authorization "Bearer $http_x_auth_request_access_token";
proxy_set_header x-forwarded-access-token "";
}

Expand All @@ -27,13 +27,13 @@ server {

location /log-api/ {
proxy_pass https://server-radix-log-api-${RADIX_ENVIRONMENT}.${RADIX_CLUSTERNAME}.${RADIX_DNS_ZONE}/api/v1/;
proxy_set_header Authorization "Bearer $http_x_forwarded_access_token";
proxy_set_header Authorization "Bearer $http_x_auth_request_access_token";
proxy_set_header x-forwarded-access-token "";
}

location /scan-api/ {
proxy_pass https://server-radix-vulnerability-scanner-api-${RADIX_ENVIRONMENT}.${RADIX_CLUSTERNAME}.${RADIX_DNS_ZONE}/api/v1/;
proxy_set_header Authorization "Bearer $http_x_forwarded_access_token";
proxy_set_header Authorization "Bearer $http_x_auth_request_access_token";
proxy_set_header x-forwarded-access-token "";
}

Expand Down
17 changes: 16 additions & 1 deletion radixconfig.c2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
spec:
build:
useBuildKit: true
dnsAlias:
- alias: "console"
component: web
environment: "prod"
environments:
- name: qa
build:
Expand Down Expand Up @@ -58,9 +62,20 @@ spec:
setAuthorizationHeader: true
sessionStoreType: redis
redisStore:
connectionUrl: rediss://radix-c2-qa.redis.cache.windows.net:6380
connectionUrl: rediss://radix-c2-prod.redis.cache.windows.net:6380
environmentConfig:
- environment: qa
authentication:
oauth2:
redisStore:
connectionUrl: rediss://radix-c2-qa.redis.cache.windows.net:6380
resources:
requests:
cpu: "20m"
memory: "50Mi"
limits:
cpu: "50m"
memory: "50Mi"
horizontalScaling:
maxReplicas: 1
minReplicas: 0
Expand Down
17 changes: 16 additions & 1 deletion radixconfig.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
spec:
build:
useBuildKit: true
dnsAlias:
- alias: "console"
component: web
environment: "qa"
environments:
- name: qa
build:
Expand Down Expand Up @@ -58,9 +62,20 @@ spec:
setAuthorizationHeader: true
sessionStoreType: redis
redisStore:
connectionUrl: rediss://radix-dev-qa.redis.cache.windows.net:6380
connectionUrl: rediss://radix-dev-prod.redis.cache.windows.net:6380
environmentConfig:
- environment: qa
authentication:
oauth2:
redisStore:
connectionUrl: rediss://radix-dev-qa.redis.cache.windows.net:6380
resources:
requests:
cpu: "20m"
memory: "50Mi"
limits:
cpu: "50m"
memory: "50Mi"
horizontalScaling:
maxReplicas: 1
minReplicas: 0
Expand Down
17 changes: 16 additions & 1 deletion radixconfig.platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
spec:
build:
useBuildKit: true
dnsAlias:
- alias: "console"
component: web
environment: "prod"
environments:
- name: qa
build:
Expand Down Expand Up @@ -58,9 +62,20 @@ spec:
setAuthorizationHeader: true
sessionStoreType: redis
redisStore:
connectionUrl: rediss://radix-platform-qa.redis.cache.windows.net:6380
connectionUrl: rediss://radix-platform-prod.redis.cache.windows.net:6380
environmentConfig:
- environment: qa
authentication:
oauth2:
redisStore:
connectionUrl: rediss://radix-platform-qa.redis.cache.windows.net:6380
resources:
requests:
cpu: "20m"
memory: "50Mi"
limits:
cpu: "50m"
memory: "50Mi"
horizontalScaling:
maxReplicas: 1
minReplicas: 0
Expand Down
17 changes: 16 additions & 1 deletion radixconfig.playground.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
spec:
build:
useBuildKit: true
dnsAlias:
- alias: "console"
component: web
environment: "prod"
environments:
- name: qa
build:
Expand Down Expand Up @@ -58,9 +62,20 @@ spec:
setAuthorizationHeader: true
sessionStoreType: redis
redisStore:
connectionUrl: rediss://radix-playground-qa.redis.cache.windows.net:6380
connectionUrl: rediss://radix-playground-prod.redis.cache.windows.net:6380
environmentConfig:
- environment: qa
authentication:
oauth2:
redisStore:
connectionUrl: rediss://radix-playground-qa.redis.cache.windows.net:6380
resources:
requests:
cpu: "20m"
memory: "50Mi"
limits:
cpu: "50m"
memory: "50Mi"
horizontalScaling:
maxReplicas: 1
minReplicas: 0
Expand Down
17 changes: 16 additions & 1 deletion radixconfig.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
spec:
build:
useBuildKit: true
dnsAlias:
- alias: "console"
component: web
environment: "${ACTIVE_ENVIRONMENT}"
environments:
- name: qa
build:
Expand Down Expand Up @@ -58,9 +62,20 @@ spec:
setAuthorizationHeader: true
sessionStoreType: redis
redisStore:
connectionUrl: rediss://${OAUTH2_REDIS_QA_HOSTNAME}:6380
connectionUrl: rediss://${OAUTH2_REDIS_PROD_HOSTNAME}:6380
environmentConfig:
- environment: qa
authentication:
oauth2:
redisStore:
connectionUrl: rediss://${OAUTH2_REDIS_QA_HOSTNAME}:6380
resources:
requests:
cpu: "20m"
memory: "50Mi"
limits:
cpu: "50m"
memory: "50Mi"
horizontalScaling:
maxReplicas: 1
minReplicas: 0
Expand Down

0 comments on commit 1172878

Please sign in to comment.