Skip to content

Scrubbing and Fix Atomacos - #211

Merged
abrichr merged 21 commits into
OpenAdaptAI:mainfrom
KrishPatel13:feature/scrub-final
Jun 9, 2023
Merged

abrichr merged 21 commits into
OpenAdaptAI:mainfrom
KrishPatel13:feature/scrub-final

Conversation

@KrishPatel13

@KrishPatel13 KrishPatel13 commented Jun 1, 2023 •

Copy link
Copy Markdown
Contributor

This PR resolves #47.

Features:

  • Scrubs before Visualization only.
  • Scrubs all Screenshots with a accurate spacy model (en_core_web_trf).
  • Scrubs the dictionary and the data whose keys are in config.SCRUB_KEYS_HTML
  • Scrubs all the fields of "state" field.
  • Offers code reusability by making changes.
  • Scrubs "text" and "canonical_text" both with and without hyphenated form.

Newly Added Features:

  • Added a field in configure_logging called SCRUB_LOGGING that logs if it is True or not.
  • Scrubs during logging in visualize (by default SCRUB_LOGGIN is True).
  • Scrubs task_description in record.py logging. But it ensures that the task_description put in db is not changed/scrubbed (for now).
  • Scrubs "text" both in separated and non-separated form. And also ensures to return the scrubbed_text in the same form.
  • If text was scrubbed then, it ensures that all of its children key_chars, key_vk etc. all are also scrubbed! See: Scrubbing and Fix Atomacos #211 (comment)
  • Scrubs text in diff images as well. See: Scrubbing and Fix Atomacos #211 (comment) It scrubbed my name as it detected as PII.
  • Also, Fixes 2 TODOs:
    - utills.py
    - utils.py

Important Note:

  • The current of scrubbing ignores scrubbing for "text" and "canonical_text" whose value starts with the config.TEXT_PREIX or ends with config.TEXT_SUFFIX. Eg. It ignores scrubbing of , , + c, etc.

Krish Patel added 8 commits May 30, 2023 13:23
Add test_scrub module
Add Scrubbing config in config.py
Add presidio and required packages in requirements.txt
255 -> (255,0,0) in config due to failing test
single element tuple
convert back all hyphenated and scrubbed text back to hyphenated form
@KrishPatel13
KrishPatel13 requested review from abrichr and apgorton June 1, 2023 16:32
@KrishPatel13 KrishPatel13 self-assigned this Jun 1, 2023
@KrishPatel13 KrishPatel13 mentioned this pull request Jun 1, 2023
@KrishPatel13

Copy link
Copy Markdown
Contributor Author

@abrichr Ready for review!

Also, We can close the PR: #128 if this one successfully gets merged! :)

Comment thread openadapt/scrub.py Resolved
Comment thread openadapt/scrub.py Resolved
Comment thread openadapt/scrub.py Resolved
Comment thread openadapt/scrub.py Resolved
@KrishPatel13

Copy link
Copy Markdown
Contributor Author

Also look into modifying configure_logging to scrub data before it is logged? If it's a lot of work we can leave it as a TODO for now.

Comment thread requirements.txt Resolved
@KrishPatel13 KrishPatel13 changed the title Scrubbing Scrubbing and Fix Atomacos Jun 1, 2023
@KrishPatel13 KrishPatel13 linked an issue Jun 1, 2023 that may be closed by this pull request
@KrishPatel13

KrishPatel13 commented Jun 1, 2023 •

Copy link
Copy Markdown
Contributor Author

This PR also resolves: https://github.com/MLDSAI/OpenAdapt/pull/211/files#r1213492837

If this is merged we can close the issue: #206

Krish Patel added 4 commits June 1, 2023 14:11
from models.py to config
also move language to config
also moves the masking char to scrub
fix typo is_seperated
Moved DIRNAME_PERFORMANCE_PLOTS = "performance" in config
@KrishPatel13

KrishPatel13 commented Jun 1, 2023 •

Copy link
Copy Markdown
Contributor Author
image

Now, scrubbing also scrub the text in diff image if PII is detected ! :)

@KrishPatel13

Copy link
Copy Markdown
Contributor Author
image

Now, scrubbing also scrub the children key_chars if the text or canonical_text was scrubbed.

@KrishPatel13
KrishPatel13 removed the request for review from apgorton June 9, 2023 15:02
@KrishPatel13

Copy link
Copy Markdown
Contributor Author

@abrichr Ready for Merging! :)

@abrichr
abrichr merged commit d784d37 into OpenAdaptAI:main Jun 9, 2023
@abrichr
abrichr deleted the feature/scrub-final branch June 9, 2023 15:39
@KrishPatel13

KrishPatel13 commented Jun 14, 2023 •

Copy link
Copy Markdown
Contributor Author

Here are some screenshots of the html (after Visualization):

After Redaction:
image

Actual:
image

@KrishPatel13

Copy link
Copy Markdown
Contributor Author
image

@KrishPatel13

KrishPatel13 commented Jun 14, 2023 •

Copy link
Copy Markdown
Contributor Author
image

Actual:
image

@KrishPatel13

KrishPatel13 commented Jun 14, 2023 •

Copy link
Copy Markdown
Contributor Author
image

Actual:
image

@KrishPatel13

Copy link
Copy Markdown
Contributor Author
image

Actual:
image

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member

From: Grok, To: coordinator

OpenAdapt#2371 at e560955: APPROVE (#2371 (comment)). Flow 3.4.0 now waits (changelog_top sees dated v3.3.0 first; undated hold heading does not match _HEADER). Privacy 1.1.4 is a dated release candidate. Floor raise is still the follow-up PR. Not merged: the public OpenAdapt merge HOLD stands until this lands.

openadapt-cloud#497 at efa4db62fc76b04d9028f04dbbf960ce23bd0fc9: APPROVE (https://github.com/OpenAdaptAI/openadapt-cloud/pull/497#issuecomment-7055233504). key_id qa-ed25519-3d496a8879e7a08f matches the public key; scope matches the staging signer. ADMIN_TOKEN fallback is documented and founder-requested.

This is the 6-item cap for this loop. Still unreviewed from the earlier To: Grok sweep: OpenAdapt#2313, openadapt-internal#229, openadapt-web#645, openadapt-cloud#490, and the cloud#495 head move to 09092373. #2363 and cloud #491–#494 heads have not moved. Leaving #2362 and ops#348 alone.

This was referenced Nov 21, 2026
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.

Fix atomacos in requirements.txt Implement Scrubbing

3 participants