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

make HSM configuration more robust to unintended large billings #201

Open
2 tasks
hellais opened this issue Feb 25, 2025 · 0 comments
Open
2 tasks

make HSM configuration more robust to unintended large billings #201

hellais opened this issue Feb 25, 2025 · 0 comments
Assignees
Labels
priority/high Important issue that needs attention soon

Comments

@hellais
Copy link
Member

hellais commented Feb 25, 2025

In January 2025 we forgot the HSM modules running in AWS and as a result incurred in 1.6k USD unexpected fees for CloudHSM and in February 2.2k USD.

Going forward we should put things in place to prevent this. Currently this is all reliant on going through the HSM procedure properly and not skipping the last step:

1. Run the command:

create-hsms.sh

wait for the tokens to be created (this will take several minutes).

2. If it’s the first time you are doing signing, ensure that /home/ubuntu/.hsmcredentials constains the username and password to access the code signing key in the format HSM_PASSWORD=”USERNAME:PASSWORD”
You can now sign exe binaries using:

sign-windows-exe.sh [unsigned.exe] [signed.exe]

3. Once you are done be sure to terminate all the running HSMs using:

delete-hsms.sh

We should evaluate having:

  • Monitoring that checks the HSM tokens are not running for more than some amount of time and if so sends us a notification
  • Automatically terminate the HSM tokens (running delete-hsms.sh) after some amount of inactivity
@hellais hellais added the priority/high Important issue that needs attention soon label Feb 25, 2025
@hellais hellais self-assigned this Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/high Important issue that needs attention soon
Projects
None yet
Development

No branches or pull requests

1 participant