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

feat: validate from uploaded file #4239

Open
wants to merge 100 commits into
base: main
Choose a base branch
from

Conversation

vitormattos
Copy link
Member

@vitormattos vitormattos commented Jan 3, 2025

Dependency added:

  • poppler-utils

Was added as fallback to native PHP signature parser.

🏚️ Before 🏡 After
Screenshot_20250102_233051 Screenshot_20250102_232935
Screenshot_20250106_231154
Screenshot_20250106_231009

to-do

  • Implement upload at frontend
  • Create endpoint
  • Add integration tests
  • Match uploaded file with existing files
  • Display data from uploaded file when not matched with existing files
  • Display that have a newest version of uploaded file
  • Details about signer
    • Sign date
    • Certificate chain
  • Show more details about file
    • File size
    • Page counter
    • PDF version
    • Has the file been changed after signing?
    • PDF metadata
    • Signature hash used
    • Load certificate chain using poppler-utils

@vitormattos vitormattos added this to the Next Major (31) milestone Jan 3, 2025
@vitormattos vitormattos self-assigned this Jan 3, 2025
@vitormattos vitormattos changed the title Feat/validate from uploaded file feat: validate from uploaded file Jan 3, 2025
@vitormattos vitormattos force-pushed the feat/validate-from-uploaded-file branch 2 times, most recently from f1d04db to c023f35 Compare January 4, 2025 13:01
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Is necessary to identify the file to parse from UUID.

Signed-off-by: Vitor Mattos <[email protected]>
A step to be possible choose what kind of metadata I want

Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
The file could be not signed

Signed-off-by: Vitor Mattos <[email protected]>
This method trigger loadSigners internally, because this was moved to
the final of flow and also because the loadSigned could generate new
messages

Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
@vitormattos vitormattos force-pushed the feat/validate-from-uploaded-file branch from 37e5cba to 1ecff7b Compare January 6, 2025 23:37
Signed-off-by: Vitor Mattos <[email protected]>
@vitormattos vitormattos force-pushed the feat/validate-from-uploaded-file branch from 1ecff7b to afd602a Compare January 6, 2025 23:37
@vitormattos vitormattos force-pushed the feat/validate-from-uploaded-file branch from 49ac7fb to 784b751 Compare January 8, 2025 17:54
removed typo that was added to be possible validate when pdfsig don't
exists

Signed-off-by: Vitor Mattos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 0. Needs triage
Development

Successfully merging this pull request may close these issues.

1 participant