René's URL Explorer Experiment


Title: feat(logs): redact PII from workflow logs via configurable rules by TheodoreSpeaks · Pull Request #5136 · simstudioai/sim · GitHub

Open Graph Title: feat(logs): redact PII from workflow logs via configurable rules by TheodoreSpeaks · Pull Request #5136 · simstudioai/sim

X Title: feat(logs): redact PII from workflow logs via configurable rules by TheodoreSpeaks · Pull Request #5136 · simstudioai/sim

Description: Summary Adds enterprise PII redaction for workflow execution logs, configured under Data Retention as org-scoped rules — each rule selects which PII entity types to mask and which workspaces it applies to (empty workspaces = all; empty entity types = redact nothing). Reuses the guardrails Microsoft Presidio engine in mask mode, applied at the single log-persist choke point (completeWorkflowExecution), covering both the inline and externalized write paths. Redaction is byte-budgeted/chunked (one batched subprocess per persist, not per block), structure-preserving (masks string leaves, rebuilds via structuredClone), and fail-safe (scrubs rather than leaks on error). Adds a check-digit-validated VIN recognizer so it won't false-match arbitrary 17-char codes. Adds per-workspace data-retention-hours overrides (resolved workspace ?? org ?? plan default) via a new nullable workspace.data_retention_settings column. UI mirrors Access Control: a rules list + ChipModal (grouped checkbox grid for entity types, workspace multiselect), persisting on save with an unsaved-changes guard. Type of Change New feature Testing Unit tests for the redaction transform (recursion, batched substitution, structure preservation, fail-safe scrub, oversized-string skip) — passing. Verified Presidio masking end-to-end locally (email/phone/credit-card/VIN), incl. VIN check-digit precision (valid VINs masked, random 17-char tokens left alone). bun run lint, bun run check:api-validation:strict, and bun run check:migrations origin/staging all pass. Migration is a single additive nullable column (expand-phase, backward-compatible). Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Adds enterprise PII redaction for workflow execution logs, configured under Data Retention as org-scoped rules — each rule selects which PII entity types to mask and which workspaces it ap...

X Description: Summary Adds enterprise PII redaction for workflow execution logs, configured under Data Retention as org-scoped rules — each rule selects which PII entity types to mask and which workspaces it ap...

Opengraph URL: https://github.com/simstudioai/sim/pull/5136

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:299c6a49-8461-2cdd-545e-6faa02cfde5f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCD12:71C2F:8A1E72:BDDFE8:6AFB4967
html-safe-noncede8b6d7bf89b28ed30946be731f1aa7259fe717eaf54e7412d60e59eee9161c8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDEyOjcxQzJGOjhBMUU3MjpCRERGRTg6NkFGQjQ5NjciLCJ2aXNpdG9yX2lkIjoiNDEyODU5MjY3NzIwMzI5ODY2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8179013c768dcf8833c4a0ac8133ac5954efda28f1895851d9cb3efaee446281
hovercard-subject-tagpull_request:3895740962
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5136/files
twitter:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
og:image:altSummary Adds enterprise PII redaction for workflow execution logs, configured under Data Retention as org-scoped rules — each rule selects which PII entity types to mask and which workspaces it ap...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5136/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5136%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5136%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5136/files
Reloadhttps://github.com/simstudioai/sim/pull/5136/files
Reloadhttps://github.com/simstudioai/sim/pull/5136/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
feat/redact-pii-workflow-loghttps://github.com/simstudioai/sim/tree/feat/redact-pii-workflow-log
Conversation 51 https://github.com/simstudioai/sim/pull/5136
Commits 13 https://github.com/simstudioai/sim/pull/5136/commits
Checks 15 https://github.com/simstudioai/sim/pull/5136/checks
Files changed https://github.com/simstudioai/sim/pull/5136/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5136/files
feat(logs): redact PII from workflow logs via configurable rules https://github.com/simstudioai/sim/pull/5136/files#top
Show all changes 13 commits https://github.com/simstudioai/sim/pull/5136/files
9df460f feat(logs): redact PII from workflow logs via configurable rules TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/9df460f16ab35ec4d9c9327d8a17c49c42cb07b0
d9a4dd4 Merge remote-tracking branch 'origin/staging' into feat/redact-pii-wo… TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/d9a4dd466e5503319a3aa569ed96396be4a87ed3
147b143 fix(logs): widen PII entity visibleValues to string[] for strict buil… TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/147b143575699d1d15be35967045ac88c803beeb
1635ce1 fix(logs): redact error/trigger/executionState; keep guardrails impor… TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/1635ce17e75749cf08ff2ecb2f4fd8eb5aca8528
e5dfe05 refactor(logs): drop per-workspace retention override; PII redaction … TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/e5dfe056c046a2887ed13425a8ccc3b0d2e37e90
a5ca0f4 fix(logs): redact oversized strings and executionData.environment TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/a5ca0f4faa2e8ce7ce854821bfe48e72ade05c05
b19296c refactor(logs): single-scope PII rules with most-specific-wins resolu… TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/b19296cad6146ff38547a41c5051df0067cb6557
f599a7a feat(logs): default + workspace-overrides UI for PII redaction TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/f599a7a6699398e84400a7a021c8b109bdd70c8b
a0de0f3 improvement(logs): clearer default/overrides PII UI TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/a0de0f31fea69580d5a78c8e3adb0f7a116486be
9f2ed1c fix(guardrails): handle stdin EPIPE in PII python spawns TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/9f2ed1cfc7eeb6ca0f8a6e14bdbfa7d245e768f9
7313e18 fix(logs): redact executionData.correlation TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/7313e18b08230fb84b1a24af3672e6ad15f5a62d
0605fcf fix(logs): enforce unique PII rule scope server-side TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/0605fcf04b06353467ff0bb53d024294f52a1b03
ad7d1fa fix(logs): re-hydrate data-retention form on org switch TheodoreSpeaks Jun 19, 2026 https://github.com/simstudioai/sim/pull/5136/commits/ad7d1fa766f97e14653da21b3bbf504800d3a522
Clear filters https://github.com/simstudioai/sim/pull/5136/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5136/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5136/files
route.ts https://github.com/simstudioai/sim/pull/5136/files#diff-8f3dc0961fbc8617ca20ce336584088128df5fc8038d1ee76eb627dff73b25b7
data-retention-settings.tsx https://github.com/simstudioai/sim/pull/5136/files#diff-764e9cf912d26c066290a0b604241370dd169586b89737be53eb4827da0b53ee
data-retention.ts https://github.com/simstudioai/sim/pull/5136/files#diff-2c290e62aacd6a5586214c1f8ca21ed8a4d8e9cee32c8c2bfaa3d95a1e21e6f2
organization.ts https://github.com/simstudioai/sim/pull/5136/files#diff-589c92452da41752ecc4e89e1da6948c485eb8dbf0da7b924126e46eb18f08bc
primitives.ts https://github.com/simstudioai/sim/pull/5136/files#diff-74acbd246ecd57f97189320f8dbdafcd78d0d5150fd1d25da51057ebd06f43f1
retention.test.ts https://github.com/simstudioai/sim/pull/5136/files#diff-f1bcd54f5d77bb6490d2eb8a3aef690ee5570ed2f6db11c4b31b6b4a302c5980
retention.ts https://github.com/simstudioai/sim/pull/5136/files#diff-31038279e82d6e375ed75ef055381db410d7e64a5c82e785f385bb2f1684eca0
pii-entities.ts https://github.com/simstudioai/sim/pull/5136/files#diff-152b565f41d018f52e7c31ea9388b68cd91a311b278499da00808224f70738d2
validate_pii.py https://github.com/simstudioai/sim/pull/5136/files#diff-0e7113d1f2eef012815d445ece1d08b7ae24134ddff2e75ea59d1878bf2438c6
validate_pii.ts https://github.com/simstudioai/sim/pull/5136/files#diff-cc2e64c77312e17d68146afdb9708495ff2b8a265dafcd4dd289edf26f98fba0
logger.ts https://github.com/simstudioai/sim/pull/5136/files#diff-c93eef5145bbe011ec0c231c435952a4a5d8f1826332935030595b98b5980ee6
pii-redaction.test.ts https://github.com/simstudioai/sim/pull/5136/files#diff-74996699d727aa76b8ea73c823819b6448e3dfeffa7d85f3049355b9c08f282a
pii-redaction.ts https://github.com/simstudioai/sim/pull/5136/files#diff-64a20e8a194771f20a82dbaaa6aef740450f4ed6c996783dcfb827f7ec3e1b91
schema.ts https://github.com/simstudioai/sim/pull/5136/files#diff-9a959e2ce3cb4c86957bbae021d06eae364f7b0cb18964f5873bab53220af928
apps/sim/app/api/organizations/[id]/data-retention/route.tshttps://github.com/simstudioai/sim/pull/5136/files#diff-8f3dc0961fbc8617ca20ce336584088128df5fc8038d1ee76eb627dff73b25b7
View file https://github.com/simstudioai/sim/blob/ad7d1fa766f97e14653da21b3bbf504800d3a522/apps/sim/app/api/organizations/%5Bid%5D/data-retention/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5136/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5136/files#diff-8f3dc0961fbc8617ca20ce336584088128df5fc8038d1ee76eb627dff73b25b7
https://github.com/simstudioai/sim/pull/5136/files#diff-8f3dc0961fbc8617ca20ce336584088128df5fc8038d1ee76eb627dff73b25b7
https://github.com/simstudioai/sim/pull/5136/files#diff-8f3dc0961fbc8617ca20ce336584088128df5fc8038d1ee76eb627dff73b25b7
https://github.com/simstudioai/sim/pull/5136/files#diff-8f3dc0961fbc8617ca20ce336584088128df5fc8038d1ee76eb627dff73b25b7
Please reload this pagehttps://github.com/simstudioai/sim/pull/5136/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5136/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.