Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update takserver to 5.3-24 #118

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b967e75
update takserver to 5.3-24
rambo Jan 25, 2025
62e7acd
increase timeout
rambo Jan 25, 2025
0a61c31
update rmapi pointer
rambo Jan 26, 2025
bb87fc4
update takrmapi pointer
rambo Jan 26, 2025
d8e0239
battlelog miniwerk configs
rambo Jan 26, 2025
7fb2cb8
Update compositions for new miniwerk config requirements
rambo Jan 26, 2025
a757485
updated api dockerfile
rambo Jan 26, 2025
4ce8eb4
disable battlelog from manifest in production until we finish integra…
rambo Jan 26, 2025
5463227
log the random callsign we try to get things for to refer to logs
rambo Jan 26, 2025
9ee0658
try to set log rmapi/takrmapi levels via env
rambo Jan 26, 2025
061f2d4
retry the user files
rambo Jan 26, 2025
a6de804
takintegration race conditions and temp directory handling
rambo Jan 26, 2025
54f9b52
update takrmapi pointer, use prefixed log_level
rambo Jan 26, 2025
2e9a3ae
fix production log level ENV
rambo Jan 26, 2025
66fd18b
takrmapi mitigations for https://github.com/pvarki/python-tak-rmapi/i…
rambo Jan 26, 2025
3647a14
Add release tag to ENV/ARG for rmapi and rmui
rambo Jan 26, 2025
100eeda
update api pointer for deployment tag
rambo Jan 26, 2025
4f75e14
Add mTLS verify failure reason to the redirects
rambo Jan 26, 2025
4f80190
treat 495 as 302 redirect to the error page
rambo Jan 26, 2025
26e8283
update api pointer to include the new by role and only deleted list e…
rambo Jan 27, 2025
2b77a3c
update submodule pointers to current mains
rambo Feb 3, 2025
e3ff159
updates path to update
rem-ari-karhunen Jan 29, 2025
1e66bca
update takserver pointer, ref 43b90384f3f7a74b803d0a9b85dcef58348c6f9f
rambo Feb 5, 2025
2caad91
update rmapi pointer to the group names branch
rambo Feb 10, 2025
9ed8215
update takserver pointer to new group names branch
rambo Feb 10, 2025
a4efed0
update nginx tags after rebasing the Snyk update from main
rambo Feb 10, 2025
724f426
update submodule pointers to main-merges
rambo Feb 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.6.0
current_version = 1.7.0
commit = False
tag = False

Expand Down
3 changes: 2 additions & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# `docker-compose -p rmdev -f docker-compose-local.yml -f docker-compose-dev.yml up -d`

x-nginxbuilds: &nginxbuildinfo
image: pvarki/nginx:1.25${DOCKER_TAG_EXTRA:-}
image: pvarki/nginx:1.27${DOCKER_TAG_EXTRA:-}
build:
context: ./nginx
dockerfile: Dockerfile
Expand Down Expand Up @@ -39,6 +39,7 @@ services:
SERVER_DOMAIN: ${SERVER_DOMAIN:-localmaeher.dev.pvarki.fi}
API_PORT: ${NGINX_HTTPS_PORT:-4439}
VITE_ASSET_SET: ${VITE_ASSET_SET:-neutral}
RELEASE_TAG: "localdev"
networks:
- intranet
ports: # REMINDER Do not expose these in production
Expand Down
32 changes: 21 additions & 11 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ x-keycloakinit_users_env: &keycloakinit_users_env
KEYCLOAK_PASSWORD: *kcadminpass # pragma: allowlist secret

x-takbuilds: &takbuildinfo
image: &takimage "pvarki/takserver:${TAK_RELEASE:-5.2-RELEASE-30}${DOCKER_TAG_EXTRA:-}"
image: &takimage "pvarki/takserver:${TAK_RELEASE:-5.3-RELEASE-24}${DOCKER_TAG_EXTRA:-}"
build:
context: ./takserver
dockerfile: Dockerfile
args:
TAK_RELEASE: ${TAK_RELEASE:-5.2-RELEASE-30}
TAK_RELEASE: ${TAK_RELEASE:-5.3-RELEASE-24}

x-nginxbuilds: &nginxbuildinfo
image: pvarki/nginx:1.25${DOCKER_TAG_EXTRA:-}
image: pvarki/nginx:1.27${DOCKER_TAG_EXTRA:-}
build:
context: ./nginx
dockerfile: Dockerfile
Expand Down Expand Up @@ -120,10 +120,13 @@ services:
target: production
environment:
MW_DOMAIN: *serverdomain
MW_PRODUCTS: "tak,kc,fake"
MW_PRODUCTS: "tak,kc,fake,bl"
MW_RASENMAEHER__API_PORT: *apiport
MW_RASENMAEHER__USER_PORT: *apiport
MW_FAKE__API_PORT: *productport
MW_FAKE__USER_PORT: *productport
MW_TAK__API_PORT: *takapiport
MW_TAK__USER_PORT: 8443
CAROOT: "/data/persistent/mkcert"
MW_LE_EMAIL: "[email protected]"
MW_LE_TEST: "true"
Expand Down Expand Up @@ -399,6 +402,10 @@ services:
RM_KC_USERNAME: *kcadminuser
RM_KC_PASSWORD: *kcadminpass # pragma: allowlist secret
RM_KC_REALM: *kc_realm
UVICORN_LOG_LEVEL: "debug"
RM_LOG_LEVEL: "DEBUG"
RM_LOG_LEVEL_INT: "10"
RELEASE_TAG: "local"
networks:
- apinet
- kcnet
Expand Down Expand Up @@ -441,6 +448,7 @@ services:
target: production
args:
VITE_ASSET_SET: ${VITE_ASSET_SET:-neutral}
RELEASE_TAG: "local"
volumes:
- rmui_files:/deliver

Expand Down Expand Up @@ -611,7 +619,7 @@ services:
- taknet
- dbnet
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- kraftwerk_shared_tak:/pvarki
- tak_data:/opt/tak/data
- le_certs:/le_certs
Expand All @@ -626,7 +634,7 @@ services:
takinit:
condition: service_completed_successfully
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand Down Expand Up @@ -663,7 +671,7 @@ services:
takconfig:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand All @@ -687,7 +695,7 @@ services:
takmsg:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand All @@ -711,7 +719,7 @@ services:
takmsg:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
network_mode: "service:takconfig"
Expand All @@ -734,7 +742,7 @@ services:
takapi:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
network_mode: "service:takconfig"
Expand All @@ -748,7 +756,7 @@ services:
restart: unless-stopped

takrmapi:
image: pvarki/takrmapi:local${DOCKER_TAG_EXTRA:-}-tak${TAK_RELEASE:-5.2-RELEASE-30}
image: pvarki/takrmapi:local${DOCKER_TAG_EXTRA:-}-tak${TAK_RELEASE:-5.3-RELEASE-24}
build:
context: ./takintegration
dockerfile: Dockerfile
Expand All @@ -758,6 +766,8 @@ services:
network_mode: "service:takconfig"
environment:
LOG_CONSOLE_FORMATTER: "local"
UVICORN_LOG_LEVEL: "debug"
TI_LOG_LEVEL: "10"
volumes:
- ca_public:/ca_public
- le_certs:/le_certs
Expand Down
48 changes: 29 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ x-keycloakinit_users_env: &keycloakinit_users_env
KEYCLOAK_PASSWORD: *kcadminpass # pragma: allowlist secret

x-takbuilds: &takbuildinfo
image: &takimage "pvarki/takserver:${TAK_RELEASE:-5.2-RELEASE-30}-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}"
image: &takimage "pvarki/takserver:${TAK_RELEASE:-5.3-RELEASE-24}-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}"
build:
context: ./takserver
dockerfile: Dockerfile
args:
TAK_RELEASE: ${TAK_RELEASE:-5.2-RELEASE-30}
TAK_RELEASE: ${TAK_RELEASE:-5.3-RELEASE-24}

x-nginxbuilds: &nginxbuildinfo
image: pvarki/nginx:1.25-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/nginx:1.27-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./nginx
dockerfile: Dockerfile
Expand Down Expand Up @@ -115,20 +115,24 @@ x-takserver_env: &takserver_env

services:
miniwerk:
image: pvarki/miniwerk:1.1.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/miniwerk:1.3.0-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./miniwerk
dockerfile: Dockerfile
target: production
environment:
MW_DOMAIN: *serverdomain
MW_RASENMAEHER__API_PORT: *apiport
MW_RASENMAEHER__USER_PORT: *apiport
MW_FAKE__API_PORT: *productport
MW_FAKE__USER_PORT: *productport
MW_TAK__API_PORT: *takapiport
MW_TAK__USER_PORT: 8443
MW_LE_EMAIL: ${MW_LE_EMAIL?LE contact email must be defined}
MW_LE_TEST: ${MW_LE_TEST:-true} # see example_env.sh
MW_MKCERT: ${MW_MKCERT:-false} # When LetEncrypt cannot be used set to "true"
MW_KEYTYPE: "rsa"
#MW_PRODUCTS: "tak,kc,bl"
MW_PRODUCTS: "tak,kc"
volumes:
- kraftwerk_shared_fake:/pvarkishares/fake
Expand All @@ -141,7 +145,7 @@ services:
- "80:80"

cfssl:
image: pvarki/cfssl:api-1.2.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/cfssl:api-1.2.0-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./cfssl
dockerfile: Dockerfile
Expand All @@ -164,7 +168,7 @@ services:
restart: unless-stopped

ocsp:
image: pvarki/cfssl:ocsp-1.2.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/cfssl:ocsp-1.2.0-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./cfssl
dockerfile: Dockerfile
Expand All @@ -190,7 +194,7 @@ services:
restart: unless-stopped

ocsprest:
image: pvarki/cfssl:ocsprest-1.0.4-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/cfssl:ocsprest-1.0.4-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./cfssl
dockerfile: Dockerfile
Expand Down Expand Up @@ -250,7 +254,7 @@ services:
condition: service_completed_successfully

openldap:
image: pvarki/openldap:1.0.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/openldap:1.0.0-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./keycloak/openldap
dockerfile: Dockerfile
Expand Down Expand Up @@ -360,7 +364,7 @@ services:
condition: service_healthy

rmapi:
image: pvarki/rmapi:1.5.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/rmapi:1.6.1-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./api
dockerfile: Dockerfile
Expand All @@ -381,6 +385,8 @@ services:
RM_KC_USERNAME: *kcadminuser
RM_KC_PASSWORD: *kcadminpass # pragma: allowlist secret
RM_KC_REALM: *kc_realm
RM_LOG_LEVEL: "INFO"
RELEASE_TAG: ${RELEASE_TAG:-1.7.0}
networks:
- apinet
- kcnet
Expand Down Expand Up @@ -414,18 +420,19 @@ services:
restart: unless-stopped

rmui:
image: pvarki/rmui:1.3.0-${VITE_ASSET_SET:-neutral}-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/rmui:1.3.0-${VITE_ASSET_SET:-neutral}-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./ui
dockerfile: Dockerfile
target: production
args:
VITE_ASSET_SET: ${VITE_ASSET_SET:-neutral}
RELEASE_TAG: ${RELEASE_TAG:-1.7.0}
volumes:
- rmui_files:/deliver

nginx_templates:
image: pvarki/nginx:templates-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/nginx:templates-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./nginx
dockerfile: Dockerfile
Expand Down Expand Up @@ -484,7 +491,7 @@ services:
restart: unless-stopped

kwinit: # Mostly to make sure it's built
image: pvarki/kw_product_init:1.0.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/kw_product_init:1.0.0-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./kw_product_init
dockerfile: Dockerfile
Expand Down Expand Up @@ -515,7 +522,7 @@ services:
- taknet
- dbnet
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- kraftwerk_shared_tak:/pvarki
- tak_data:/opt/tak/data
- le_certs:/le_certs
Expand All @@ -530,7 +537,7 @@ services:
takinit:
condition: service_completed_successfully
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand Down Expand Up @@ -563,7 +570,7 @@ services:
takconfig:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand All @@ -587,7 +594,7 @@ services:
takmsg:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand All @@ -611,7 +618,7 @@ services:
takmsg:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
network_mode: "service:takconfig"
Expand All @@ -634,7 +641,7 @@ services:
takapi:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
network_mode: "service:takconfig"
Expand All @@ -648,13 +655,16 @@ services:
restart: unless-stopped

takrmapi:
image: pvarki/takrmapi:1.3.0-tak${TAK_RELEASE:-5.2-RELEASE-30}-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/takrmapi:1.4.1-tak${TAK_RELEASE:-5.3-RELEASE-24}-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./takintegration
dockerfile: Dockerfile
target: production
args:
TAKSERVER_IMAGE: *takimage
environment:
UVICORN_LOG_LEVEL: "info"
TI_LOG_LEVEL: "20"
labels:
- "autoheal=true"
network_mode: "service:takconfig"
Expand Down
2 changes: 1 addition & 1 deletion nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN chmod a+x /entrypoint_deliver.sh \
ENTRYPOINT ["/entrypoint_deliver.sh"]

# Actual NGinx container
FROM nginx:1.27.4-alpine as production
FROM nginx:1.27-alpine as production
COPY entrypoint_templates.sh /
COPY crl_watcher.sh /usr/local/bin
RUN apk add --no-cache inotify-tools bash procps
Expand Down
6 changes: 3 additions & 3 deletions nginx/templates_rasenmaeher/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ server {

location /api {
if ($ssl_client_verify != SUCCESS) {
return 302 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail;
return 302 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail&exta=$ssl_client_verify;
}
proxy_pass http://${NGINX_UPSTREAM}:${NGINX_UPSTREAM_PORT}/api;
proxy_redirect off;
Expand All @@ -123,14 +123,14 @@ server {
}

# Even though users sees code 400 the code is 495 http://nginx.org/en/docs/http/ngx_http_ssl_module.html#errors
error_page 495 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail;
error_page 495 =302 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail&exta=$ssl_client_verify;

location / {
if ($redir_uri != "") {
return 301 $redir_uri$request_uri;
}
if ($ssl_client_verify != SUCCESS) {
return 302 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail;
return 302 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail&exta=$ssl_client_verify;
}
index index.html;
root /rmui_files;
Expand Down
2 changes: 1 addition & 1 deletion takserver
Loading
Loading