coqui-access
Who is asking, and may they: shared access building blocks for services that load providers with Guatiao.
The kinds
| Kind | Answers |
|---|---|
coqui_authenticator |
Are these credentials valid, and which lookup do they name? |
coqui_directory |
Who is the person behind a lookup, and in which groups? |
coqui_authorizer |
May this person do this action on this resource? |
coqui_accounts |
Optional: list, put and remove accounts, and list unaccepted peers. |
coqui_sign_in_policy |
Which methods may this sign-in use, and what does it still need? |
coqui_challenger |
Optional: the challenge a method's answer is bound to (a passkey's). |
A host asks authenticators in order until one knows the credentials, resolves the lookup through a directory, and asks an authorizer. Kind names and the floor hashes of their methods are a pinned contract; providers are built against the host's Guatiao revision.
Providers
| Provider id | Keeps | Takes |
|---|---|---|
coqui_access_password |
Argon2id passwords in any table | name and password |
coqui_access_key |
SHA-256 or Argon2id hashes of generated keys, in any table | a key |
coqui_access_ldap |
nothing; asks LDAP or Active Directory | name and password |
coqui_access_proxy |
nothing; trusts a reverse proxy | request headers |
coqui_access_system |
nothing; asks the operating system (PAM and NSS, or Windows logon) | name and password |
coqui_access_totp |
one-time code secrets and recovery code digests, in any table | a code from an authenticator app |
coqui_access_mtls |
peer certificate fingerprints or public keys, in any table | a verified certificate |
coqui_access_passkey |
passkeys (WebAuthn public keys) and the challenges waiting, in any table | a challenge and the browser's signed answer |
coqui_roles |
role rules (an authorizer) | person, action, resource |
coqui_signin_rules |
ordered sign-in rules (a sign-in policy) | where and how a sign-in is made |
Each is an ordinary library, built in code with a builder over a table you supply (memory by
default), and a cdylib (coqui-access-<name>-plugin) that builds it from a Guatiao config
whose source object says where the records live.
Sign-in policy is the contract a consumer follows to decide which methods a sign-in may use from where it is made, and when to ask for a second step. Claims and the matcher tie what an authenticator obtained (a certificate's names, in full) to an account in a directory, by templates and LDAP filters with every value escaped, and by pins kept in a per-user file or a table.
coqui-access-acl decides requests against access control lists kept on items,
and answers coqui_authorizer over the consumer's store.
MtlsAccounts and access lists
coqui-peer-tls gives two services a
mutual-TLS connection that is trusted by certificate fingerprint, with strict defaults and
presets you can loosen. coqui-net-acl is an
ordered, first-match access control list for connecting addresses, usable with or without TLS.
Both live in their own repositories.
Source code, per-crate API headers and the changelog are in the repository. The Rust API reference is under Rust API.