Skip to content

feat: enable push status updates within helios #767

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

Merged
merged 5 commits into from
Jun 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .github/workflows/deploy_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ jobs:
echo "MAIL_PORT=${{ vars.MAIL_PORT }}" >> .env
echo "EMAIL_ENABLED=${{ vars.EMAIL_ENABLED }}" >> .env
echo "EMAIL_FROM=${{ vars.EMAIL_FROM }}" >> .env

echo "CLEANUP_WORKFLOW_RUN_DRY_RUN=${{ vars.CLEANUP_WORKFLOW_RUN_DRY_RUN }}" >> .env
echo "HELIOS_ENVIRONMENT_NAME=${{ vars.HELIOS_ENVIRONMENT_NAME }}" >> .env
echo "HELIOS_PROD_SECRET_KEY=${{ secrets.HELIOS_PROD_SECRET_KEY }}" >> .env
echo "HELIOS_STAGING_SECRET_KEY=${{ secrets.HELIOS_STAGING_SECRET_KEY }}" >> .env


- name: SSH to VM and Execute Docker-Compose Up
uses: appleboy/[email protected]
Expand Down
4 changes: 4 additions & 0 deletions compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ services:
- HELIOS_TOKEN_EXCHANGE_CLIENT=${HELIOS_TOKEN_EXCHANGE_CLIENT}
- HELIOS_TOKEN_EXCHANGE_SECRET=${HELIOS_TOKEN_EXCHANGE_SECRET}
- DATA_SYNC_RUN_ON_STARTUP=${DATA_SYNC_RUN_ON_STARTUP}
- CLEANUP_WORKFLOW_RUN_DRY_RUN=${CLEANUP_WORKFLOW_RUN_DRY_RUN}
- HELIOS_ENVIRONMENT_NAME=${HELIOS_ENVIRONMENT_NAME}
- HELIOS_PROD_SECRET_KEY=${HELIOS_PROD_SECRET_KEY}
- HELIOS_STAGING_SECRET_KEY=${HELIOS_STAGING_SECRET_KEY}
depends_on:
- postgres
- nats-server
Expand Down
2 changes: 2 additions & 0 deletions server/application-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ dependencies {
implementation 'org.flywaydb:flyway-database-postgresql:11.8.2'
implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
implementation 'io.sentry:sentry-spring-boot-starter-jakarta:8.9.0'
// Helios push-based status updates
implementation "de.tum.cit.aet:helios-status-spring-starter:1.0.0"
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6'
runtimeOnly 'org.postgresql:postgresql'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ spring:
issuer-uri: ${OAUTH_ISSUER_URL}

helios:
status:
enabled: false
environment-name: ${HELIOS_ENVIRONMENT_NAME}
endpoints:
- url: http://localhost:8080/api/environments/status
secretKey: ${HELIOS_LOCAL_SECRET_KEY:}
clientBaseUrl: "http://localhost:4200"

logging:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ spring:
issuer-uri: ${OAUTH_ISSUER_URL}

helios:
status:
enabled: true
environment-name: ${HELIOS_ENVIRONMENT_NAME}
endpoints:
- url: https://helios.aet.cit.tum.de/api/environments/status
secretKey: ${HELIOS_PROD_SECRET_KEY:}
- url: https://helios-staging.aet.cit.tum.de/api/environments/status
secretKey: ${HELIOS_STAGING_SECRET_KEY:}
clientBaseUrl: "https://helios.aet.cit.tum.de"

nats:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ spring:
issuer-uri: ${OAUTH_ISSUER_URL}

helios:
status:
enabled: true
environment-name: ${HELIOS_ENVIRONMENT_NAME}
endpoints:
- url: https://helios.aet.cit.tum.de/api/environments/status
secretKey: ${HELIOS_PROD_SECRET_KEY:}
- url: https://helios-staging.aet.cit.tum.de/api/environments/status
secretKey: ${HELIOS_STAGING_SECRET_KEY:}
clientBaseUrl: "https://helios-staging.aet.cit.tum.de"

nats:
Expand Down
Loading