Tenant administration
A tenant is the isolation boundary in Authwise. Each tenant has its own issuers, realms, users, clients, and audiences, and the people who administer one tenant see nothing of another. Every install starts with one tenant, the admin tenant, which owns the console and the Admin API. Every tenant after that is created at runtime.
Tenants are managed on two surfaces, and this page follows the boundary between them:
| Surface | Who uses it | What it does |
|---|---|---|
awtenant, against the tenancy admin server | Operators of the estate | Creates, suspends, and deletes tenants; invites and seats their administrators; grants operator status; enables products on a tenant. |
The console and awctl, against the Admin API | A tenant’s administrators | Everything inside a tenant: domains, issuers, realms, providers, users, clients, roles, and further administrators. |
Creating a tenant is never an Admin API operation. The Admin API lists the
tenants the caller belongs to and manages membership inside them, and that
is the whole of its tenant surface. Tenant lifecycle lives on the tenancy
admin server, a separate listener with no public route, reached only with
awtenant.
Before you begin
Section titled “Before you begin”- An operator credential. Every
awtenantcommand needs a bearer token whose subject holds operator status: thetenancy.operatorrole at the platform root of the install that decides access. On a fresh install, the first administrator and the machine credential both hold it. Operator status is granted withawtenant operators grant; see Operator status. - A client certificate from the estate’s operators CA. The tenancy admin server requires mutual TLS as well as the bearer. The certificate decides who can reach the port at all; the bearer decides who can act. See Get an operator certificate.
- A path to the listener. The tenancy admin server is a
ClusterIPService with no ingress, by design. Reach it from inside the cluster, over a VPN, or through a port-forward. - DNS and a certificate for each tenant’s issuer host, if the tenant’s users sign in on a host of their own. Authwise never checks that an issuer’s host resolves. Arrange the record before the tenant’s administrator creates the issuer, or the new tenant’s login page times out.
Install awtenant
Section titled “Install awtenant”awtenant is a single binary for macOS, Linux, and Windows, released
alongside the identity server and downloadable without a token. Use the
release that matches the identity server release your install runs; the two
share a version number. Releases from 1.41.0 on are published.
VERSION=1.41.1OS=darwin ARCH=arm64 # or darwin/amd64, linux/amd64, linux/arm64BASE="https://git.authwise.com/api/v4/projects/authwise%2Fawtenant/packages/generic/awtenant/${VERSION}"FILE="awtenant_${VERSION}_${OS}_${ARCH}"
curl -fSL -O "${BASE}/${FILE}" -O "${BASE}/awtenant_${VERSION}_SHA256SUMS"shasum -a 256 --ignore-missing -c "awtenant_${VERSION}_SHA256SUMS"chmod +x "${FILE}" && sudo mv "${FILE}" /usr/local/bin/awtenantawtenant --versionOn Windows, download awtenant_${VERSION}_windows_amd64.exe.
Get an operator certificate
Section titled “Get an operator certificate”The operators CA is created once per estate, outside any install, as a
cert-manager CA issuer in the admin namespace. Every install trusts its
public half through spec.tenancyAdmin.trustedClientCAs, and each
operator presents a 30-day client certificate issued from it. The Authwise
operator renders the trust; it never issues an operator’s certificate.
-
Once per estate, create the CA and publish its public half as a ConfigMap.
ADMIN_NAMESPACEis the namespace of the install that decides access, such asauthwise-admin:Terminal window kubectl -n ADMIN_NAMESPACE apply -f - <<'EOT'apiVersion: cert-manager.io/v1kind: Issuermetadata: {name: operators-selfsigned}spec: {selfSigned: {}}---apiVersion: cert-manager.io/v1kind: Certificatemetadata: {name: operators-ca}spec:isCA: truecommonName: authwise-operators-casecretName: operators-caduration: 43800hprivateKey: {algorithm: ECDSA, size: 256}issuerRef: {name: operators-selfsigned, kind: Issuer}---apiVersion: cert-manager.io/v1kind: Issuermetadata: {name: operators-ca}spec: {ca: {secretName: operators-ca}}EOTkubectl -n ADMIN_NAMESPACE get secret operators-ca -o jsonpath='{.data.ca\.crt}' \| base64 -d > operators-ca.crtkubectl -n ADMIN_NAMESPACE create configmap operators-ca \--from-file=ca.crt=operators-ca.crt --dry-run=client -o yaml | kubectl apply -f - -
Make every install trust it. Add the ConfigMap to each
AuthwiseIdentityServer:spec:tenancyAdmin:trustedClientCAs:- {namespace: ADMIN_NAMESPACE, name: operators-ca}The install’s
TenancyAdminTrustedcondition turnsTruewhen the bundle is complete. Until then the listener stays off rather than start on a bundle that locks someone out. A Guard install takes the same entry underspec.control.tenancy.trustedClientCAs. -
For each operator, issue a client certificate from the CA and deliver its key pair to them out of band.
OPERATORis a name that identifies the person, such asdana:Terminal window kubectl -n ADMIN_NAMESPACE apply -f - <<'EOT'apiVersion: cert-manager.io/v1kind: Certificatemetadata: {name: operator-OPERATOR}spec:commonName: OPERATORsecretName: operator-OPERATORduration: 720hrenewBefore: 168husages: [client auth]privateKey: {algorithm: ECDSA, size: 256}issuerRef: {name: operators-ca, kind: Issuer}EOTkubectl -n ADMIN_NAMESPACE get secret operator-OPERATOR -o jsonpath='{.data.tls\.crt}' | base64 -d > operator.crtkubectl -n ADMIN_NAMESPACE get secret operator-OPERATOR -o jsonpath='{.data.tls\.key}' | base64 -d > operator.keyThe operator stores both files under their
awtenantconfiguration directory with mode0600. -
Fetch the install’s own CA, which the listener’s serving certificate is issued from, so
awtenantcan verify the server.NAMESPACEandCR_NAMEare the install’s namespace and the name of itsAuthwiseIdentityServer:Terminal window kubectl -n NAMESPACE get secret CR_NAME-ca -o jsonpath='{.data.ca\.crt}' \| base64 -d > install-ca.crt
To revoke an operator, delete their Certificate and its Secret, and
revoke their operator status. The bearer side refuses at once; the
certificate side ages out within 30 days.
Configure awtenant
Section titled “Configure awtenant”awtenant reads one configuration file: ~/.config/awtenant/config.yaml
on Linux, and ~/Library/Application Support/awtenant/config.yaml on
macOS. It names the admin issuer that mints your token and each install’s
tenancy admin listener:
# The admin issuer that mints tokens for the estate. On an estate with# several installs this is the central install's issuer.issuer: https://ADMIN_HOST
defaultInstall: prodinstalls: prod: # central: the install that decides access for the estate, or your only # install. home: any other identity install. product: a product's own # tenancy listener, such as Guard's. kind: central endpoint: localhost:9443 # The Service name, so the serving certificate verifies through a # port-forward to localhost. serverName: CR_NAME-tenancyadmin.NAMESPACE.svc caPath: /home/me/.config/awtenant/install-ca.crt clientCertPath: /home/me/.config/awtenant/operator.crt clientKeyPath: /home/me/.config/awtenant/operator.keyADMIN_HOSTis the admin issuer host,spec.bootstrap.admin.issuerHoston the install.endpointis where the tenancy admin listener answers. Through a port-forward it islocalhost:9443; from inside the cluster or over a VPN it isCR_NAME-tenancyadmin.NAMESPACE.svc:9443.serverNameis required when the endpoint is not the name on the serving certificate, which is the case for every port-forward.caPath,clientCertPath, andclientKeyPathare the files from Get an operator certificate.awtenantrefuses to dial an install without a client certificate pair and names the install that lacks one.
To open the port-forward in another terminal:
kubectl -n NAMESPACE port-forward svc/CR_NAME-tenancyadmin 9443:9443To check every install’s certificate, who it names, who issued it, and when it expires:
awtenant auth cert statusIt exits non-zero if any certificate is missing, unreadable, or expired. When a handshake fails, run this first.
A single-install estate names one install and never passes --install.
--endpoint HOST:PORT overrides the address for one command. See
Work with several installs for the
multi-install shape.
Authenticate
Section titled “Authenticate”awtenant authenticates at the admin issuer and sends an ordinary admin
bearer token with every call. There are two ways to get one, and the
machine credential wins whenever it is set, so a shared runner can never
use somebody’s interactive login by mistake.
As a person
Section titled “As a person”awtenant auth login runs the OAuth 2.0 authorization code flow with PKCE
in your browser, against the issuer in the configuration file, and caches
the token under your configuration directory with mode 0600:
awtenant auth loginawtenant auth statusIt signs in as the public CLI client that every install seeds, so a fresh
install needs no client of your own. On a host without a browser, pass
--no-browser to print the URL instead. The login is renewed in the
background for up to 12 hours of inactivity and 7 days in all, from 1.43;
earlier releases keep a 15-minute token and ask you to sign in again when
it expires. awtenant auth logout discards it.
To sign in as a client of your own, set clientId in the configuration
file and allow the exact redirect URI that
awtenant auth login --show-redirect-uri prints, http://127.0.0.1:8765/callback
by default. If port 8765 is taken, set loginPort and allow the new URI.
With a machine credential
Section titled “With a machine credential”For scripts and CI, use the machine credential the operator minted at install; see Read the machine credential. It is an operator.
CREDENTIAL="$(kubectl -n NAMESPACE get secret CR_NAME-admin-credential \ -o jsonpath='{.data.credential\.json}' | base64 -d)"export AWTENANT_ISSUER=https://ADMIN_HOSTexport AWTENANT_CLIENT_ID="$(jq -r .client_id <<<"$CREDENTIAL")"export AWTENANT_CLIENT_SECRET="$(jq -r .client_secret <<<"$CREDENTIAL")"awtenant exchanges the pair for a token on every command. Setting one
variable without the other is an error, never a silent fallback. The token
is minted for the admin audience; AWTENANT_AUDIENCE overrides that when
the estate uses another.
Create a tenant
Section titled “Create a tenant”A new tenant for a new person is three commands: create the tenant, invite the person, and seat them at the tenant.
-
Create the tenant. It prints the new tenant’s identifier and nothing else:
Terminal window awtenant tenants create \--display-name "Acme Corporation" \--classification omni \--owner org-acmet-01hzx3k9r2m7q--display-nameis required and must be unique on the install.--classificationis the product the tenant belongs to,omniorworkplace. It must match the install’s product; the default isomni.--owneris the tenant’s owner as your provisioning system knows it, such as an organization or account identifier. Authwise stores it, lists and filters on it, and reads it nowhere. It is not a person and seats no one.
The call writes the tenant and nothing else: no issuer, domain, realm, audience, client, or seat. A tenant with nothing in it is a complete tenant. Its administrators work on it through the console, signed in on the admin issuer, and it gets an issuer of its own when its users need one.
-
Invite the person who administers it. The command creates a user for the address in the administrators realm of the central install, mails them an invitation, and prints the subject identifier and when the link expires:
Terminal window awtenant administrators invite dana@acme.examplesubject u-01hzx3m2p8w4tinvitation mailed to dana@acme.exampleexpires 2026-11-10T16:04:05ZWhen the mail cannot be sent, because the install has no message delivery configured or the provider refused the address, the command prints the reason and the accept URL instead. Send the URL to the person yourself, over a channel you trust; it is a credential until it is redeemed or expires. Before identity server 1.42 the tenancy admin server sends no mail at all, and the URL is always printed.
--ttlshortens the window, and--reissuereplaces a live invitation for the address and voids the earlier link.-o jsonprints the whole response on one line, accept URL included, for a script.Inviting seats nobody and grants nothing. If the person already has an account in the administrators realm, the invitation is refused, because it would be a second credential for one login. Skip this step: from 1.42 the refusal names their subject identifier, and the next step also takes their email address in its place.
-
Seat them as the tenant’s administrator:
Terminal window awtenant tenants administrators grant t-01hzx3k9r2m7q u-01hzx3m2p8w4tu-01hzx3m2p8w4t administers t-01hzx3k9r2m7q (binding b-01hzx3n7..., granted by u-01).The administrator can be named by email instead of subject identifier, from 1.42; this is how a second tenant is given to someone who already administers one:
Terminal window awtenant tenants administrators grant t-01hzx3k9r2m7q dana@acme.exampleThe grant writes both of the bindings a working administrator needs: the owner seat at the tenant and the
tenant.adminrole beside it. It is idempotent: an existing administrator comes back unchanged. The seat is inert until the person has set a credential, and the tenant appears in their console the moment they finish accepting.
The person then opens the link in the invitation, sets their password, and signs in to the console at the console host with their email address. The tenant is listed for them, and from there they build everything inside it: a domain and an issuer, a realm and its sign-in providers, an audience, and clients. Nothing inside the tenant needs an operator again.
Administrators and owners
Section titled “Administrators and owners”Every administrator of a tenant holds two bindings at it: a seat, and the
tenant.admin role. The role is the same for all of them. The seat comes in
two kinds, and the kind is what separates an administrator from a
superadministrator:
| Seat | Role bound with it | What the person can do |
|---|---|---|
Owner (tenancy.owner) | tenant.admin | Everything a member can, plus the tenant itself: rename and brand it, invite administrators, make an administrator an owner or a member, remove administrators, and create and delete the tenant’s service accounts. |
Member (tenancy.member) | tenant.admin | Everything inside the tenant: domains, issuers, realms, providers, users, clients, roles, and bindings. Reads the list of administrators and changes nothing on it. |
The operator’s grant seats an owner. A tenant can have many owners, or none; when it has none, only an operator can seat one.
Owners bring further administrators in themselves, with no operator
involved. In the console, open the tenant’s Access page and choose
Invite an administrator in the Administrators section. Enter the
person’s email address and choose the seat. With awctl, the tenant is the
identity context’s, or --tenant-id:
awctl identity tenant-administrators invite --email ada@acme.example --kind ownerawctl identity tenant-administrators listawctl identity tenant-administrators remove --subject u-01hzx3m2p8w4t--kind defaults to member. What happens depends on whether the address
can already sign in:
- A new address is invited. Authwise creates the account in the administrators realm, seats it at the tenant with the role, and mails the invitation; the console shows the outcome as Invited with the delivery result. If the mail does not go, the reason and the accept URL are shown for you to pass on; that URL is the invitation itself, so send it over a channel you would trust with a password.
- An address that already administers another tenant is seated at this one and mailed a notice with no link, shown as Seated. This is how one person comes to administer several tenants.
After accepting, the person sets a password and chooses Continue to sign
in, which lands in the console that invited them. From awctl, pass
--continue-url to name the console; it must be an https URL on a console
the install trusts, and defaults to the install’s own.
Removing an administrator takes the seat and tenant.admin with it and
leaves the account, which may hold seats at other tenants. A person holding
any other role at the tenant is refused, and the message lists those
bindings; remove them first.
On an estate with several installs, seats and the administrators’ roles
live on the central install, whichever install hosts the tenant. The console
handles this: a tenant’s Access page on a satellite install reads and writes
its administrators at central with the token you already hold. From awctl,
run the tenant-administrators commands against central’s Admin API; a
satellite refuses them and names central.
Administrators manage their tenant with awctl too. After
pointing awctl at the install and signing
in, they set the tenant as their context:
awctl identity context set --tenant t-01hzx3k9r2m7qawctl identity tenants describe t-01hzx3k9r2m7qawctl identity realms create --display-name Employeesawctl works inside a tenant. It does not create tenants; that is the
operator’s surface. For automation, an owner gives the tenant a
service account rather than lending it
a person’s login.
Retries from automation
Section titled “Retries from automation”Pass --idempotency-key from whatever job drives the create. A retry
carrying a key already used returns the tenant that key created, says so on
stderr, and writes nothing. Without a key, every call creates, which is the
right default for a person at a terminal and the wrong one for a worker
with a retry policy.
awtenant tenants create --display-name "Acme Corporation" \ --owner org-acme --idempotency-key acme-signup-20261011Manage tenants
Section titled “Manage tenants”List and inspect
Section titled “List and inspect”awtenant tenants listawtenant tenants get t-01hzx3k9r2m7qawtenant tenants administrators list t-01hzx3k9r2m7qawtenant tenants list-for-subject u-01hzx3m2p8w4tlist shows every tenant on the install with its classification and
owner. get adds the products enabled on it. administrators list shows
who holds a seat, its kind, who granted it, and when; operators
reach every tenant without a seat at any and are not listed here.
list-for-subject reports the tenants a person holds a seat at, so an
operator comes back empty. Which tenants a person administers and which
tenants a person can reach are different questions.
Rename or change the owner
Section titled “Rename or change the owner”awtenant tenants update t-01hzx3k9r2m7q --display-name "Acme Corp."awtenant tenants update t-01hzx3k9r2m7q --owner org-acme-holdingsOnly the fields whose flags you pass change. --owner "" clears the owner.
A tenant’s administrators can change its display name and labels
themselves from the console.
Remove an administrator
Section titled “Remove an administrator”awtenant tenants administrators revoke t-01hzx3k9r2m7q u-01hzx3m2p8w4tThe command takes tenant.admin with the seat. The seat goes last: the
command is refused while the person holds any other role binding at the
tenant. Revoke those first, from the console or with
awctl access access-bindings. Revoking a seat the person did not
hold succeeds, because the end state is what you asked for. From 1.42,
revoke takes the administrator’s email address as grant does.
Suspend a tenant
Section titled “Suspend a tenant”To retire a tenant, suspend it:
awtenant tenants suspend t-01hzx3k9r2m7q --reason "contract ended"A suspended tenant’s issuers refuse to sign anyone in, and Admin API writes to the tenant are refused. Its data stays. Suspending a tenant that is already suspended changes nothing. There is no command that reactivates a suspended tenant.
Delete a tenant
Section titled “Delete a tenant”delete removes an empty tenant and refuses any other:
awtenant tenants delete t-01hzx3k9r2m7q --yesNothing beneath a tenant cascades. A tenant with an issuer, a domain, a
realm, a product tenant linked under it, or a seat other than its
administrators’ is refused, and the refusal names what is in the way.
Deleting is not reversible, so the command refuses to run without --yes.
For a tenant that has been used, suspend it instead.
Operator status
Section titled “Operator status”Operator status is cross-tenant reach over every tenant of the estate, the
right to run everything on this page, and the right to promote and demote
other operators. It is the tenancy.operator role bound at the platform
root, and these commands are its only writers. The general Access API
refuses that role at the root on purpose, so awctl access access-bindings
cannot create it.
awtenant operators listawtenant operators grant u-01hzx3p4k2v9sawtenant operators revoke u-01hzx3p4k2v9sThe subject must be a user of the central install. The binding records who
granted it, which is the caller, never the subject. grant is idempotent,
and revoke succeeds whether or not the person held the status.
Grant operator status sparingly. It is the estate’s most privileged grant, and the compensating controls are the absence of a public route to the listener, the short token lifetime, the operator certificate, and the audit trail, in that order.
Enable Guard on a tenant
Section titled “Enable Guard on a tenant”Authwise Guard tenants are created on Guard’s own tenancy listener, under an Authwise tenant that administers them, with a users link that says where their people sign in. Guard is off for every tenant, the admin tenant included, until an operator enables it.
-
Enable the product on the Authwise tenant, through one of the tenant’s issuers. The command creates Guard’s audience on that issuer, seeds Guard’s catalog in it, and prints the audience identifier:
Terminal window awtenant tenants enable-product t-01hzx3k9r2m7q guard --issuer i-01hzx4a8m3r1c--issueris the identifier of the issuer where Guard’s users sign in. The issuer’s discovery document then advertises the product. Running the command again on the same issuer changes nothing; running it on another issuer is refused until the product is disabled. -
Add the Guard install to the
awtenantconfiguration as a product install, and create the Guard tenant on it:installs:guard:kind: productendpoint: localhost:9444serverName: GUARD_CR_NAME-tenancy.GUARD_NAMESPACE.svccaPath: /home/me/.config/awtenant/guard-ca.crtclientCertPath: /home/me/.config/awtenant/operator.crtclientKeyPath: /home/me/.config/awtenant/operator.keyThe Guard listener is the Service
GUARD_CR_NAME-tenancyon port9443, so forward it to a second local port:Terminal window kubectl -n GUARD_NAMESPACE port-forward svc/GUARD_CR_NAME-tenancy 9444:9443awtenant --install guard tenants create \--display-name "Acme network" \--users-issuer https://ISSUER_HOSTISSUER_HOSTis the host of the issuer you enabled the product on. Guard reads everything else, the owning tenant, its audience, and the home install’s Access endpoint, from that issuer’s discovery document. The parent defaults to the issuer’s tenant; pass--parent TENANT_IDto administer the Guard tenant through a different Authwise tenant, andawtenantchecks that the parent exists on an Authwise install first.
list, get, update, suspend, and delete work on a product install
the same way, with --parent on list to see the Guard tenants under one
Authwise tenant. The parent tenant’s administrators manage the Guard tenant
from the Guard console.
Who may use Guard
Section titled “Who may use Guard”A person uses Guard by signing in at the issuer you enabled the product on, and by holding the Guard user role at the Guard tenant. Guard keeps no list of people of its own: it checks each sign-in against the issuer and each enrolment against the Authwise tenant’s Access catalog, so nothing is copied or synced into Guard.
The issuer sets the boundary. An issuer that routes to one realm admits only that realm’s users, so “only people from this realm may use Guard” is the issuer’s realm selector, which you chose when you enabled the product.
Grant the role to a group rather than to people one by one:
-
In the Authwise console, open the realm the issuer routes to and create a group, for example
Guard users. Add the people who may use Guard. A group belongs to its realm, so its members are that realm’s users by construction. -
Bind the
guardcontrol.userrole to the group at the Guard tenant, in the Guard audience thatenable-productcreated. The audience’s Access page in the console does this; from the CLI, against the tenant’s home install:Terminal window awctl access access-bindings create \--tenant-id TENANT_ID --issuer-id ISSUER_ID --audience-id GUARD_AUDIENCE_ID \--role-name guardcontrol.user \--subject-type group --subject-id GROUP_ID \--resource-type guardcontrol.tenant --resource-id GUARD_TENANT_IDGUARD_AUDIENCE_IDis whatenable-productprinted, andGUARD_TENANT_IDis thegt-identifier fromtenants create. To limit the grant to one network, use--resource-type guardcontrol.networkand the network’s identifier instead.
After that, adding a person to the group is the whole act of giving them Guard, and removing them from the group is the whole act of taking it away. A binding to a user who is not in one of the tenant’s realms is refused, so the grant cannot reach outside the tenant.
A person’s first device needs no grant at all if an administrator sends them an invite link from the Guard console: redeeming the invite enrols the device and makes them its owner.
Removing someone from the group stops new enrolments at once but does not disconnect a device they already enrolled. Revoke their nodes from the node page in the Guard console.
Writing the binding needs the Access binding permissions in the Guard audience. Operators hold them; a tenant’s administrators get them in a later identity server release, and until then an operator makes the binding for them.
To disable the product, delete the Guard tenants linked under the tenant first:
awtenant tenants disable-product t-01hzx3k9r2m7q guardThe audience and its catalog stay; they are the tenant’s administrators’ to remove.
Work with several installs
Section titled “Work with several installs”On an estate with several identity installs, each install stores its own tenants and knows nothing of the others. What is shared is authorization: one admin issuer mints every token, and the central install’s Access holds the operator bindings and the administrator seats that every install checks against.
tenants create,list,get,update,suspend,delete,enable-product, anddisable-productare about one install, the one--installor--endpointnames. Name the install that hosts the tenant.administrators invite,tenants administrators grant|revoke|list, andoperators grant|revoke|listrun against the central install, whichever install hosts the tenant.defaultCentralin the configuration names it; with one install ofkind: central, it is chosen for you. A central-only command sent to another install is refused, andawtenantprints which install to run it against.
An estate has one central install. Every other identity install is
home, and a product’s listener is product:
issuer: https://ADMIN_HOSTdefaultInstall: omnidefaultCentral: admininstalls: admin: kind: central endpoint: localhost:9443 serverName: ADMIN_CR_NAME-tenancyadmin.ADMIN_NAMESPACE.svc caPath: /home/me/.config/awtenant/admin-ca.crt clientCertPath: /home/me/.config/awtenant/operator.crt clientKeyPath: /home/me/.config/awtenant/operator.key omni: kind: home endpoint: localhost:9445 serverName: OMNI_CR_NAME-tenancyadmin.OMNI_NAMESPACE.svc caPath: /home/me/.config/awtenant/omni-ca.crt clientCertPath: /home/me/.config/awtenant/operator.crt clientKeyPath: /home/me/.config/awtenant/operator.keyFrom 1.42, a configuration with two central installs and no
defaultCentral is refused when it loads, and an install whose kind
does not match what its endpoint serves is named in the error with the
kind to set.
A cross-install view is built by asking each install in turn:
awtenant tenants list-for-subject u-01hzx3m2p8w4t --all-installsAn install that does not answer is reported as unreachable, never as “no tenants”, and the command exits non-zero. The difference matters, because “no tenants” is a plausible answer a script would act on.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause and fix |
|---|---|
| The TLS handshake fails, or the connection is reset before any response | The listener did not accept your client certificate. Run awtenant auth cert status; a missing or expired certificate is the usual cause. An operator certificate lasts 30 days. |
PermissionDenied on every command | Your subject holds no tenancy.operator binding at the platform root of the central install. An existing operator grants it with awtenant operators grant. |
no credential for ISSUER or the credential ... expired | Run awtenant auth login again, or set AWTENANT_CLIENT_ID and AWTENANT_CLIENT_SECRET. |
| A central-only command is refused and names another endpoint | You sent it to a home install. Run it against the central install, or set defaultCentral. |
tenants delete fails with FailedPrecondition | The tenant is not empty. The message names what is in the way. Suspend the tenant instead. |
administrators grant fails because the subject does not exist | The subject must be a user of the central install’s administrators realm. Invite them first. |
administrators invite is refused with FailedPrecondition saying the address can already sign in | The person already has an account. Grant them the tenant with the subject identifier the error names, or with their email address. |
installs ... are all kind: central and defaultCentral is empty | A satellite is configured as central. Set it to kind: home, or name the central install in defaultCentral. |
Unimplemented, and awtenant says the install is configured with the wrong kind | An identity install is configured as kind: product, or a product’s listener as home. Set the kind the message names. |
A Guard tenant create fails with FailedPrecondition naming the product | Guard is not enabled on the tenant that owns the users issuer. Run awtenant tenants enable-product. |
| The new tenant’s login page times out | The issuer’s host does not resolve to the identity server, or no certificate covers it. Authwise never checks DNS at create time. |