Closed
Conversation
Co-authored-by: karant-dev <22682299+karant-dev@users.noreply.github.com>
Deploying autoredact with
|
| Latest commit: |
68f7f2c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://97058869.autoredact.pages.dev |
| Branch Preview URL: | https://copilot-add-global-allowlist.autoredact.pages.dev |
Co-authored-by: karant-dev <22682299+karant-dev@users.noreply.github.com>
…ups for allowlist Co-authored-by: karant-dev <22682299+karant-dev@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add global allowlist for safe IPs and domains
Add Global Allowlist for Safe IPs/Domains
Dec 12, 2025
Owner
|
@copilot Sorry for rework but another PR acting on a similar settings modal was merged into main (separate feature), find a way to pull the latest changes and incorporate your work with it |
Owner
|
Lot's changed, closing this PR and branch and will make a new one out of the same issue to start fresh. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users needed a way to prevent common safe values (localhost IPs, public DNS) from being redacted. This adds a configurable allowlist with sensible defaults and case-insensitive matching.
Changes
Allowlist Configuration (
src/constants/allowlist.ts)127.0.0.1,localhost,0.0.0.0,::1, private ranges (192.168.x.x,10.0.0.1), public DNS (8.8.8.8,1.1.1.1)State Management
AllowlistContextwith localStorage persistenceuseAllowlisthook for component accessOCR Integration
useOCR.tsandutils/ocr.tsfilter matches against allowlist before redactionUI
Screenshots
Settings Button
Settings Modal
Additional Fix
Changed
imageReftoloadedImagestate inuseOCRto resolve pre-existing lint error (ref accessed during render).Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.