-
-
Notifications
You must be signed in to change notification settings - Fork 96
feat: implement TSA #5423
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
base: main
Are you sure you want to change the base?
feat: implement TSA #5423
Conversation
87cce3b
to
f3191b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The little I had the capacity to understand seemed right to me 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements TSA (Timestamp Authority) support for digital signatures, allowing documents to be timestamped during signing for better authentication and non-repudiation.
- Adds TSA configuration in admin settings with hardcoded FreeTSA server URL
- Integrates timestamp extraction and display in signature validation
- Updates signing engines to include TSA server configuration and timestamp data parsing
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
tests/integration/features/sign/signed.feature | Adds test configuration for TSA URL setting |
src/views/Validation.vue | Displays timestamp information in signature validation UI |
src/views/Settings/TSA.vue | New admin settings component for TSA configuration |
src/views/Settings/Settings.vue | Integrates TSA settings component |
lib/Service/FileService.php | Formats timestamp data for frontend display |
lib/Handler/SignEngine/TSA.php | New TSA handler for timestamp extraction and parsing |
lib/Handler/SignEngine/Pkcs12Handler.php | Integrates TSA timestamp extraction in certificate chain processing |
lib/Handler/SignEngine/JSignPdfHandler.php | Adds TSA server URL parameter to PDF signing |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
||
if ($type !== null && isset($n['content']) && is_string($n['content'])) { | ||
$txt = $n['content']; | ||
if (@preg_match('//u', $txt) && preg_match('/[\P{C}]/u', $txt)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first preg_match has an empty pattern '//', which will likely cause a warning or error. This should be removed or replaced with a valid UTF-8 validation pattern.
if (@preg_match('//u', $txt) && preg_match('/[\P{C}]/u', $txt)) { | |
if (preg_match('/./u', $txt) && preg_match('/[\P{C}]/u', $txt)) { |
Copilot uses AI. Check for mistakes.
Was used a hardcoded TSA server and without authentication for now Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
solve #5423 (comment) Signed-off-by: Vitor Mattos <[email protected]>
f3191b1
to
bb5f0d3
Compare
Was used a hardcoded TSA server and without authentication for now.
Validation page:
Administration settings: