Manage multiple certificate authorities by organizational context

Abierto
#9,443 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
php

Línea de trabajo

Start by reading the existing policy infrastructure and the code for CA configuration, certificate issuance, key storage, and CRL routing; the issue does not name specific files or tests. Map how issuer identity and organizational context flow through those paths before proposing an implementation. Done means multiple CAs operate with context isolation, legacy certificates and CRL URLs remain valid, and the specified authorization and revocation tests and documentation are complete.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

Goal

Allow a single LibreSign installation to manage multiple certificate authorities (CAs) and associate them with organizational contexts through the existing policy system.

This enables distinct certificate issuers for SaaS customers without equating a Nextcloud group identifier with the cryptographic identity of a CA.

Current behavior

The active CA is identified primarily through instance-level configuration. Certificate issuance, private-key storage and CRL handling are not yet designed around a registry of independent issuers.

Confirmed requirements

  • Register multiple CAs with stable, opaque public identifiers.
  • Preserve issuer identity, key generation and certificate engine (OpenSSL or CFSSL).
  • Maintain compatibility with the existing single-CA configuration and certificates.
  • Associate CAs with groups and organizational contexts without exposing group names in public CRL paths.
  • Support system-wide defaults and group-scoped CA selection through existing policy infrastructure.
  • Allow the system administrator to delegate specific CA administration capabilities.
  • Separate policy configuration from privileged CA operations, key custody and rotation.
  • Keep CA private keys protected; do not expose raw private-key export as an ordinary group administration feature.
  • Maintain correct CRL generation, distribution, caching and revocation for each issuer.
  • Preserve historical CRL URLs and validation of existing certificates.
  • Identify revocation records by issuer and serial number rather than treating serial numbers as globally unique.
  • Handle users belonging to multiple groups without ambiguous implicit issuer selection.

Initial architectural direction

Use independent CA identities with explicit associations to organizational contexts. Keep engineType as part of CRL routing. Start with independently managed roots; evaluate intermediate-CA hierarchies separately if a demonstrated need arises.

Questions to resolve

  • Whether one context may authorize several CAs.
  • Provisioning, rotation, disablement and eventual retirement of a CA.
  • Exact delegated operations available to group administrators.
  • Migration of legacy issuer, storage and CRL metadata.
  • Isolation boundaries in a shared SaaS process.

Done when

  • Multiple issuers can coexist and operate without cross-context certificate or key access.
  • Policies determine CA eligibility through backend-validated contexts.
  • Revocation and validation remain correct for new and historical certificates.
  • Cross-engine, cross-context and negative authorization tests pass.
  • CA administration and migration are documented.

Handoff

Before closing, reconcile downstream subject-attribute and signing-selection epics with the actual issuer identity, organizational-context and authorization contracts.

Lenguaje dominante
PHP
Estrellas
844
Forks
176
Merge medio
14 h 3 min
PR fusionados (30 d)
344

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de LibreSign/libresign

Todos los issues de LibreSign/libresign

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.