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

Add guidance for checking if an uploaded file is encrypted #3869

Open
3 of 11 tasks
Andrew565 opened this issue Feb 27, 2025 · 3 comments
Open
3 of 11 tasks

Add guidance for checking if an uploaded file is encrypted #3869

Andrew565 opened this issue Feb 27, 2025 · 3 comments

Comments

@Andrew565
Copy link
Contributor

Duplicate check

  • I've searched for any related issues and avoided creating a duplicate issue.

This update is for:

Component

What is the name?

va-file-input

What is the nature of this update?

  • How to build this component/pattern
  • When to use this component/pattern
  • When to use something else
  • Usability guidance
  • Accessibility considerations
  • Content considerations
  • Implementation
  • Package information
  • Addition to Forms Library documentation
  • Update to existing Forms Library documentation

What problem does this solve?

va-file-input does not and will not support detecting if an uploaded file is encrypted. The guidance should be updated to point developers towards implementing their own encryption detection solution, including making use of the checkIsEncryptedPDF function and/or interfacing with the Lighthouse API if available.

Additional Context

The checkIsEncryptedPDF function only checks if there is password protection on the file, it does not distinguish between "user" and "owner" passwords. For some apps, an "owner" password is acceptable but a "user" password is not. The Lighthouse API claims to distinguish between these two types, but is only available to VA Benefits Applications (VBA), not Veterans Health Applications (VHA) like the 1010 form.

@caw310
Copy link
Contributor

caw310 commented Feb 28, 2025

Please add your estimate of 1, 2, 3, 5, 8 or 13
@Andrew565
@ataker 3
@harshil1793
@it-harrison - 3
@jamigibbs
@micahchiang
@powellkerry
@rmessina1010
@rsmithadhoc

@micahchiang
Copy link
Contributor

Add a link from the design site to platform docs. Link could be placed here - https://design.va.gov/components/form/file-input#usage.

Actual docs should live on platform doc site.

@micahchiang
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants