Skip to content

Conversation

merolish
Copy link
Contributor

@merolish merolish commented Oct 1, 2025

Summary

  • Use AWS env vars for kms client
  • Support hypothetical backup write urls if they ever become available
  • Minor fixes to metrics and file reads

Rationale

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Copy link

vercel bot commented Oct 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
api-reference Ready Ready Preview Comment Oct 3, 2025 5:09pm
component-library Ready Ready Preview Comment Oct 3, 2025 5:09pm
developer-hub Ready Ready Preview Comment Oct 3, 2025 5:09pm
entropy-explorer Ready Ready Preview Comment Oct 3, 2025 5:09pm
insights Ready Ready Preview Comment Oct 3, 2025 5:09pm
proposals Ready Ready Preview Comment Oct 3, 2025 5:09pm
staking Ready Ready Preview Comment Oct 3, 2025 5:09pm

@merolish merolish changed the title feat(hip-3-pusher): Use AWS client env vars feat(hip-3-pusher): AWS client config, backup write support, minor fixes Oct 2, 2025
Comment on lines +37 to +39
except Exception as e:
logger.exception("Failed to load public key from KMS; it might be incorrectly configured; error: {}", repr(e))
exit()
Copy link
Contributor

Choose a reason for hiding this comment

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

Invoking exit() isn't ideal (often times this doesn't work the way you expect, esp in threaded/async workloads.) Lets just rethrow a chained exception. It should crash the program as expected. Something like

except Exception as e:
    logger.exception(...)
    throw Exception("Failed to load public key from KMS") from e

@merolish merolish merged commit 75f2e24 into main Oct 3, 2025
9 checks passed
@merolish merolish deleted the mike/hip3-aws-env branch October 3, 2025 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants