Title: DownloadManager: document redact_url kwarg by bitcoin3us · Pull Request #6 · MicroPythonOS/docs · GitHub
Open Graph Title: DownloadManager: document redact_url kwarg by bitcoin3us · Pull Request #6 · MicroPythonOS/docs
X Title: DownloadManager: document redact_url kwarg by bitcoin3us · Pull Request #6 · MicroPythonOS/docs
Description: Summary Companion to MicroPythonOS#136 which adds a redact_url=False kwarg to DownloadManager.download_url. This documents: The new kwarg in the parameters table A new "Redacting Sensitive URLs" section covering when callers should opt in, what gets redacted (URL path/query, response headers, exception messages — host kept for failure triage), and why the default is False Common cases that benefit from redact_url=True: API-key-in-URL, OAuth-token-in-URL, wallet xpubs in indexer URLs, LNBits readkey paths Why Motivating case in the wild: LightningPiggyApp PR #25/#26 on-chain wallet queries Blockbook with the xpub in the URL path. The Lightning Piggy app scrubs xpubs from its own logs, but DownloadManager's built-in URL logging was re-leaking the xpub on every poll. The kwarg gives callers a clean opt-in to hide the secret-bearing portion. Test plan Markdown renders correctly (only the parameters table + one new section added; existing content unchanged) Docs site preview: confirm the new "Redacting Sensitive URLs" anchor renders and the table-of-contents picks it up Once MicroPythonOS#136 merges, verify the example code blocks here match the shipped signature
Open Graph Description: Summary Companion to MicroPythonOS#136 which adds a redact_url=False kwarg to DownloadManager.download_url. This documents: The new kwarg in the parameters table A new "Redacting Sensitive UR...
X Description: Summary Companion to MicroPythonOS#136 which adds a redact_url=False kwarg to DownloadManager.download_url. This documents: The new kwarg in the parameters table A new "Redacting Sensitiv...
Opengraph URL: https://github.com/MicroPythonOS/docs/pull/6
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a06dcf19-6446-23c3-efe5-0b3774cc7fdc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E314:E1B7B:14D12C:1E7153:6A4DFD08 |
| html-safe-nonce | d09f673a676c42a36847aa49b8388f0d14bf37a840d7f45959fa23b45a38a808 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzE0OkUxQjdCOjE0RDEyQzoxRTcxNTM6NkE0REZEMDgiLCJ2aXNpdG9yX2lkIjoiMjQ0NDM2ODQ0OTQ2MTE1NzEyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 08fc7c72003c8c11a701ce669885eb6cd8dac5db1a58ed8b3229750902dc58b1 |
| hovercard-subject-tag | pull_request:3677289709 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/MicroPythonOS/docs/pull/6/files |
| twitter:image | https://avatars.githubusercontent.com/u/115934595?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/115934595?s=400&v=4 |
| og:image:alt | Summary Companion to MicroPythonOS#136 which adds a redact_url=False kwarg to DownloadManager.download_url. This documents: The new kwarg in the parameters table A new "Redacting Sensitive UR... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/MicroPythonOS/docs git https://github.com/MicroPythonOS/docs.git |
| octolytics-dimension-user_id | 213598128 |
| octolytics-dimension-user_login | MicroPythonOS |
| octolytics-dimension-repository_id | 1003528243 |
| octolytics-dimension-repository_nwo | MicroPythonOS/docs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1003528243 |
| octolytics-dimension-repository_network_root_nwo | MicroPythonOS/docs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4314b1df11fa8a565684f3a72dc971e3785da365 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width