IF Commons GitHub

sql/typed/models/identity-pki.auto

The typed tables of the identityPki model, generated by IFC Data from the model. Do not edit: change the model and run bun tools/typed.ts --write.

Public-key credentials

Source: commons/data/sql/typed/models/identity-pki.auto.ts

0 of 12 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

identityPkinamespace
namespace identityPki
identityPki.TrustAnchorRowinterfaceno test imports it
interface TrustAnchorRow

What certificates and keys are checked against: a certificate authority, or a set of public keys

MemberTypeWhat it is
trustAnchorIdstringWhat identifies the trust anchor, made by the application
trustDomainstringThe domain of trust it anchors, such as a SPIFFE trust domain
kind"jwks" | "x_509"What it is
materialstringThe public certificate, or the address of the public keys; public by nature
notAfterTimestamp | nullWhen it stops being trusted
status"active" | "retired"Whether it is trusted
tenantIdstring | nullThe tenant it is for; empty for the platform's
identityPki.TrustAnchorInsertinterfaceno test imports it
interface TrustAnchorInsert

What an insert into trust_anchor takes: what the database fills may be left out.

MemberTypeWhat it is
trustAnchorIdstring
trustDomainstring
kind"jwks" | "x_509"
materialstring
notAfter?Timestamp | null
status"active" | "retired"
tenantId?string | null
identityPki.TrustAnchorKeytypeno test imports it
type TrustAnchorKey = { readonly trustAnchorId: string };

The key of a row of trust_anchor.

identityPki.trustAnchorconstno test imports it
const trustAnchor: Table<TrustAnchorRow, TrustAnchorInsert, "trustAnchor">

What certificates and keys are checked against: a certificate authority, or a set of public keys

identityPki.CertificateRowinterfaceno test imports it
interface CertificateRow

A certificate that a principal proves itself with: only the public half is kept

MemberTypeWhat it is
credentialIdstringThe credential it is
fingerprintstringThe SHA-256 thumbprint of the certificate, unique; it is also the value mutual TLS binds a token to
serialstringThe certificate's serial number
subjectNamestringThe name the certificate is for
sanUristring | nullThe identifier in the certificate's alternative name, such as a SPIFFE ID
notBeforeTimestampWhen the certificate starts to be valid
notAfterTimestampWhen it stops
keyAlgorithmstringThe algorithm of its key
revokedReasonstring | nullWhy it was revoked, where it was
issuerTrustAnchorIdstring | nullThe anchor that vouches for it
identityPki.CertificateInsertinterfaceno test imports it
interface CertificateInsert

What an insert into certificate takes: what the database fills may be left out.

MemberTypeWhat it is
credentialIdstring
fingerprintstring
serialstring
subjectNamestring
sanUri?string | null
notBeforeTimestamp
notAfterTimestamp
keyAlgorithmstring
revokedReason?string | null
issuerTrustAnchorId?string | null
identityPki.CertificateKeytypeno test imports it
type CertificateKey = { readonly credentialId: string };

The key of a row of certificate.

identityPki.certificateconstno test imports it
const certificate: Table<CertificateRow, CertificateInsert, "certificate">

A certificate that a principal proves itself with: only the public half is kept

identityPki.CertificateSanDnsRowinterfaceno test imports it
interface CertificateSanDnsRow

The domain names in the certificate's alternative name

MemberTypeWhat it is
certificateCredentialIdstringA certificate that a principal proves itself with: only the public half is kept
sanDnsstringThe domain names in the certificate's alternative name
identityPki.CertificateSanDnsInsertinterfaceno test imports it
interface CertificateSanDnsInsert

What an insert into certificate_san_dns takes: what the database fills may be left out.

MemberTypeWhat it is
certificateCredentialIdstring
sanDnsstring
identityPki.CertificateSanDnsKeytypeno test imports it
type CertificateSanDnsKey = { readonly certificateCredentialId: string; readonly sanDns: string };

The key of a row of certificate_san_dns.

identityPki.certificateSanDnsconstno test imports it
const certificateSanDns: Table<CertificateSanDnsRow, CertificateSanDnsInsert, "certificateSanDns">

The domain names in the certificate's alternative name

Titles, headings, exports, tables, columns and requirements. Esc closes.