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

fix: remove API secrets from web3.py loggers [APE-1486] #1715

Merged
merged 5 commits into from
Oct 31, 2023

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Oct 31, 2023

What I did

we did good at sanitizing secrets everywhere in our own logs, however they were still in the web3.py loggers.
This PR add some detection + handling of URLs in ALL loggers from Ape and will automatically clear them.

Now, the logs show:

DEBUG: Making request HTTP. URI: https://eth-goerli.g.alchemy.com/[hidden] Method: eth_chainId

instead of the alchemy API key

How I did it

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@vany365 vany365 changed the title fix: remove API secrets from web3.py loggers fix: remove API secrets from web3.py loggers [APE-1486] Oct 31, 2023
@antazoey antazoey marked this pull request as draft October 31, 2023 19:24
@antazoey antazoey marked this pull request as ready for review October 31, 2023 19:42
@antazoey antazoey merged commit 09d9098 into ApeWorX:main Oct 31, 2023
15 checks passed
@antazoey antazoey deleted the fix/web3-secrets-logger branch October 31, 2023 21:17
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