Skip to content

Conversation

@ArneTR
Copy link
Member

@ArneTR ArneTR commented Oct 1, 2024

This PR introduces SSL functionality to GMT.

Previously it was advised to use Cloudflare in front of GMT if using it in a live version. Howver even that needed an origin certificate (https://developers.cloudflare.com/ssl/origin-configuration/origin-ca/)

This PR does:

  • remove port 80 binding
  • force DB SSL connection (without CA check though as we use snakeoil certs @ribalba I think this is fine ...?)
  • make SSL in install procedure
ArneTR added 30 commits June 30, 2024 15:22
* main: (79 commits) Missing commit hash should still allow comparison Removed non ASCII character Missing notes should not throw error Simplied access to phase_stats_object Bump python from 3.12.5-slim-bookworm to 3.12.6-slim-bookworm in /docker (#898) Bump psycopg[binary] from 3.2.1 to 3.2.2 (#900) Bump fastapi[standard] from 0.114.0 to 0.114.2 (#899) Added new demo data [skip ci] (#892) Added re-licensing option Bump pytest from 8.3.2 to 8.3.3 (#890) Updated Cloud Energy Bump pydantic from 2.9.0 to 2.9.1 (#889) Adds checks to the install scripts (#886) Bump fastapi[standard] from 0.113.0 to 0.114.0 (#887) Fetch mode named digestable (#885) Clarifications on units in CarbonDB Guard clause when non-git root supplied in CLI (#874) Bump pydantic from 2.8.2 to 2.9.0 (#883) Bump fastapi[standard] from 0.112.2 to 0.113.0 (#884) Bump pylint from 3.2.6 to 3.2.7 (#881) ...
* main: Authentication in GMT (#872) Phase name check (#893) Carbondb unique (#877) Added DiskIO Reporter (#825) Bump pylint from 3.3.0 to 3.3.1 (#913) Bump aiohttp from 3.10.5 to 3.10.6 (#912) Bump plotext from 5.3.1 to 5.3.2 (#914) Bump pandas from 2.2.2 to 2.2.3 (#910) Bump plotext from 5.2.8 to 5.3.1 (#909) Bump pylint from 3.2.7 to 3.3.0 (#911) Bump psycopg-pool from 3.2.2 to 3.2.3 (#901) Bump pydantic from 2.9.1 to 2.9.2 (#904) Bump fastapi[standard] from 0.114.2 to 0.115.0 (#905) Importer for Measurements (#908)
@ArneTR ArneTR changed the base branch from main to refactor-repoters-and-install October 1, 2024 13:09
Base automatically changed from refactor-repoters-and-install to main October 1, 2024 13:24
* main: Refactor reporters and install script (#920) Makes the disk optional (#926) Added uninstall script (#927) Bump aiohttp from 3.10.6 to 3.10.8 (#925) Bump psycopg[binary] from 3.2.2 to 3.2.3 (#924) Bump uvicorn[standard] from 0.30.6 to 0.31.0 (#923) Bump redis from 5.0.8 to 5.1.0 (#922) Adding dev requirements again Typo Catching response failure for API request and handling gracefully Changing default to ip_api_com as this has shown to be more reliable Added timeline_project to demo data Changed to -solutions Changed to -solutions in container cache and gitmodules Groupby error in API
@github-actions
Copy link

github-actions bot commented Oct 1, 2024

Old Energy Estimation

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run (incl. overhead) 26.0853 1682.83 3.99 422
Measurement #1 26.0276 1682.83 4.01 420

🌳 CO2 Data:
City: Boydton, Lat: 36.6534, Lon: -78.375
IP: 20.246.78.208
CO₂ from energy is: 0.590673330 g
CO₂ from manufacturing (embodied carbon) is: 0.120402427 g
Carbon Intensity for this location: 351 gCO₂eq/kWh
SCI: 0.711076 gCO₂eq / pipeline run emitted

@github-actions
Copy link

github-actions bot commented Oct 1, 2024

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run (incl. overhead) 24.5403 1821.73 3.93 464
Measurement #1 24.4779 1821.73 3.94 462

🌳 CO2 Data:
City: San Jose, Lat: 37.1835, Lon: -121.7714
IP: 52.234.42.145
CO₂ from energy is: 0.579310140 g
CO₂ from manufacturing (embodied carbon) is: 0.132385607 g
Carbon Intensity for this location: 318 gCO₂eq/kWh
SCI: 0.711696 gCO₂eq / pipeline run emitted

Copy link
Member

@ribalba ribalba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ArneTR ArneTR merged commit db8aebb into main Oct 2, 2024
4 checks passed
@ArneTR ArneTR deleted the ssl branch October 2, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants