Select and authorize signing certificates by request context

Open
#9,446 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
php

Research direction

Start by identifying the certificate inventory and issuer/context contracts; the issue says implementation depends on those integrations, but names no files, tests, or entry points. Resolve the listed policy and lifecycle questions before implementation. Done means request policy controls eligible certificate choices, backend checks block prohibited signing, and automated integration and browser tests cover eligible, ambiguous, and prohibited selections while existing signed PDFs remain valid.

Written by the indexing model from the issue text.

Description

enhancement

Goal

Automatically suggest and securely authorize the appropriate personal signing certificate for each signature request, considering its organizational context and the signer's eligible certificates.

Confirmed requirements

  • Associate signing requests with a backend-validated organizational context when applicable.
  • Preserve the relevant context and resolved policy across the signing lifecycle.
  • When a request belongs to organization A, prefer an eligible certificate associated with A.
  • When a request belongs to organization B, prefer an eligible certificate associated with B.
  • Support users belonging to multiple groups and owning multiple certificates.
  • Allow manual selection among certificates permitted by the request policy.
  • Allow certificates from another organization or external issuer only when explicitly permitted.
  • Support one optional global default certificate per user without overriding context-specific eligibility.
  • Prompt for selection when multiple eligible certificates remain and no unambiguous default exists.
  • Handle missing, expired, revoked, disabled and inaccessible certificates.
  • Prevent unauthorized cross-context use through backend checks, including immediately before signing.
  • Preserve the distinction between persistent certificates and temporary Click to Sign certificates.
  • Record the effective certificate and issuer used for signing without exposing private keys or passwords.
  • Preserve validation and auditability of previously signed documents.

Questions to resolve

  • Which event establishes the organizational context of a signing request.
  • Whether the context may differ for individual signers in the same request.
  • Handling an external signer who is not a member of the requesting organization.
  • The precise eligibility rules for imported certificates.
  • The treatment of group membership changes after a request is created.
  • Recovery and UX when no eligible certificate exists.

Planning gate

Implementation depends on the certificate inventory and issuer/context contracts. UX prototypes and simulated contract tests may proceed before those integrations are available.

Done when

  • Certificate selection is predictable for multi-group users.
  • Request policy determines eligibility; frontend choices cannot bypass it.
  • Temporary, imported and persistent certificate flows remain functional.
  • Automated integration and browser tests cover eligible, ambiguous and prohibited selections.
  • Existing signed PDFs remain valid and signing documentation is updated.
Dominant language
PHP
Stars
844
Forks
176
Avg merge
14h 3m
Merged PRs (30d)
344

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LibreSign/libresign

All issues in LibreSign/libresign

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.