Skip to content

Conversation

vitormattos
Copy link
Member

Was used a hardcoded TSA server and without authentication for now.

Validation page:

Validation page

Administration settings:

Administration settings

@github-project-automation github-project-automation bot moved this to 0. Needs triage in Roadmap Sep 9, 2025
@vitormattos vitormattos marked this pull request as draft September 9, 2025 04:09
Copy link
Contributor

@AntDavidLima AntDavidLima left a 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 😆

@vitormattos vitormattos requested a review from Copilot September 22, 2025 22:32
Copy link

@Copilot Copilot AI left a 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)) {
Copy link
Preview

Copilot AI Sep 22, 2025

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.

Suggested change
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]>
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.

2 participants