Secure gRPC between Admin and cores

Issue core certificates from an Admin CA, switch gRPC to TLS, and require an access key or client certificate for every call.

15 min Ather Admin Ather Core Admin 1.0.6.1 Core 0.6.1
Before you start
  • Cores added to Ather Admin and online.
  • An Admin user with write access to instances and access settings.
  • Optional: your organisation's CA certificate and key, if cores should carry certificates from your own PKI.
  • Ideally, Admin itself served over HTTPS (see Set up HTTPS for Ather Admin).

Admin controls each core over gRPC on TCP 50051, and cores use the same port to talk to each other. Securing it takes two parts:

  • TLS encrypts the connection and proves the core is the one Admin expects.
  • Authentication decides who may call the core: an access key or a client certificate, each with a role of viewer, operator, engineer or admin.

Create or upload a certificate authority

Open Access > Certificates and choose Add CA:

  • Create makes a new CA that Admin holds the key for, so Admin can issue certificates from it.
  • Upload adds your own CA certificate. Include its private key if Admin should issue from it; without the key, Admin only trusts it, and you upload certificates it issued.

Tick Make this the default CA so cores added later use it too.

Issue the core's certificate

Open the instance and go to Instance settings > Security. Under Get a new certificate, choose your CA under Issued by, then Issue and install.

  • The core makes its own key and a signing request; Admin signs it. The private key never leaves the core.
  • The certificate always names the core's host name, audio and PTP addresses and gRPC address. Add other names under Extra names and lifetime.
  • It lasts 824 days by default, never more than 825, because Apple devices reject longer server certificates.

Admin offers to put the other connected cores on the same CA. Choose All connected and future cores to do them all at once.

The core restarts its gRPC server to serve TLS, and Admin reconnects over https a few seconds later. The instance's address changes to https://...:50051, and the Live header shows TLS verified.

Using your own PKI?

Choose Make a signing request, have your CA sign it, then Upload a certificate with the signed chain and the private key left empty.

Enrol Admin's key

Still on the Security tab, under Who may call this core (gRPC), choose Enrol Admin's key. Admin now holds an admin access key for the core, so it keeps access once keys are needed. Admin also records itself on the core as the controlling Admin.

Try Permissive mode first

Set Mode to Permissive and choose Apply. Everything keeps working, but the core counts every call that Required mode would refuse, and calls made with a key or certificate it didn't accept.

Leave it running through a normal day of use, including panels, automation and any scripts that call the core. Wait for the first number to stop growing.

Switch to Required

Set Mode to Required and apply. Every call now needs a credential, except a few public reads such as the core's version and who controls it.

The core refuses to enter Required mode without TLS, or before an admin key or admin certificate exists, so it can't be locked against everyone.

Give people their own access

Under Access > Core access, give Admin users or directory groups their own credentials on each core. When someone does something that calls a core, Admin uses the key with the highest role that person or their group holds, so the core's refusals and records reflect the real person. A user with no key sees "doesn't have access to this Ather Core".

Scripts and other Admins

  • Scripts send an access key as authorization: Bearer ak_<id>.<secret>.
  • Another Admin that needs the core sees No access and the name of the controlling Admin. That Admin can use Share access with another Admin to make a one-time admin key, which the second Admin pastes with Use an access key.
  • Other cores on the same CA trust each other as peers, which ML-KEM stream encryption and mesh file transfers rely on.

Getting back in

On Linux and Docker, the core also serves gRPC on a local Unix socket in its data folder, and callers on it are always trusted. To turn authentication off from the host:

docker exec <container> grpcurl -plaintext -d '{"mode":"GRPC_AUTH_MODE_OFF"}' \
  unix:///opt/ather-audio/grpc.sock audio_worker.AuthService/SetAuthMode

On Windows there is no local socket: stop Ather Core, set mode=off in the [grpc_auth] section of %PROGRAMDATA%\AtherAudio\audio_mixing_engine.ini, and start it again.

Without Admin

The same settings live in audio_mixing_engine.ini on the core:

[certificates]
certificate_file=/opt/ather-audio/server.crt
private_key_file=/opt/ather-audio/server.key
ca_cert_file=/opt/ather-audio/ca.crt

[grpc_auth]
mode=permissive

When ca_cert_file is set, gRPC asks callers for a client certificate and verifies it against those CAs. Setting it for the first time needs a restart.

Keep going

Related guides

All documents