cadrumo.application.auth.operator_probe_ports module¶
Application-owned capabilities for local operator authentication probes.
The operator probe use case only needs three small observations from the outer runtime: whether an active profile session exists, the health facts of a local certificate bundle, and the kind of a configured Cl@ve identity. Concrete adapter records, enums, and exceptions stay outside this contract; adapters translate them into the closed results declared here.
- class CertificateHealthBand(*values)[source]¶
Bases:
StrEnumApplication vocabulary for a certificate’s expiry health.
- OK¶
- WARN¶
- CRITICAL¶
- EXPIRED¶
- class CertificateHealthObservation(severity, days_until_expiry)[source]¶
Bases:
objectTranslated health facts required by the application probe.
- Parameters:
severity (CertificateHealthBand)
days_until_expiry (int)
-
severity:
CertificateHealthBand¶
- class CertificateHealthFailure(detail)[source]¶
Bases:
objectTranslated certificate-load failure safe for application projection.
- Parameters:
detail (str)
- class CertificateHealthProbeRequest(path, password, warn_days, critical_days, friendly_name)[source]¶
Bases:
objectApplication-owned input for one certificate health observation.
- Parameters:
-
path:
Path¶
-
password:
SecretStr¶
- class ActiveProfileSessionPresencePort(*args, **kwargs)[source]¶
Bases:
ProtocolObserve whether the storage runtime has an active profile session.
- class CertificateHealthProbePort(*args, **kwargs)[source]¶
Bases:
ProtocolObtain translated health or failure facts for one certificate bundle.
- evaluate(request)[source]¶
Evaluate the requested bundle without leaking adapter types.
- Return type:
- Parameters:
request (CertificateHealthProbeRequest)
- class ClaveIdentityObservation(kind)[source]¶
Bases:
objectTranslated accepted Cl@ve identity kind (for example, DNI or NIE).
- Parameters:
kind (str)
- class ClaveIdentityFailure(detail)[source]¶
Bases:
objectTranslated Cl@ve identity configuration refusal.
- Parameters:
detail (str)
- class ClaveIdentityProbePort(*args, **kwargs)[source]¶
Bases:
ProtocolClassify a configured Cl@ve identity at the outbound boundary.
- class OperatorProbePorts(active_profile_session, certificate_health, clave_identity)[source]¶
Bases:
objectRequired outbound capabilities for all operator authentication probes.
- Parameters:
active_profile_session (ActiveProfileSessionPresencePort)
certificate_health (CertificateHealthProbePort)
clave_identity (ClaveIdentityProbePort)
-
active_profile_session:
ActiveProfileSessionPresencePort¶
-
certificate_health:
CertificateHealthProbePort¶
-
clave_identity:
ClaveIdentityProbePort¶