Security and Management
The Aserto control plane can be used to control certain operations on running edge authorizers. For example, one can list running edge authorizers and issue policy and directory sync commands. This link between the Aserto control plane and edge authorizers requires setting up a secure connection between the two.
Edge Authorizer Connections
Edge authorizer connections can be created from the Aserto console or API and provide an identity that edge authorizers can use to connect to the control plane. Edge authorizers can use this identity by presenting a client certificate; performing a mutual TLS handshake. This identity is only authorized to establish a connection to the Aserto control plane for the purposes of receiving control commands and uploading decision logs.
Edge authorizers use one of these identities by presenting the client certificate associated with a given edge authorizer connection. All edge authorizers presenting the same client certificate use the same identity and there can be as many edge authorizer connections as needed.
Once an edge authorizer is connected to the Aserto control plane:
- It will automatically refresh its policy state when a new policy image is pushed.
- It will automatically refresh its policy state when the policy instance changes.
- It can receive remote commands to refresh its policy and directory state.
- Its ability to connect can be revoked by deleting the edge authorizer connection from which its client certificates were obtained.
To use an edge authorizer, you'll first need to create an edge authorizer connection. Head to the Connections tab, and create a new connection by clicking the "Add connection" button. Select the "Edge Authorizer" provider and provide a name and a display name for your edge authorizer connection.
Click on the newly created connection to retrieve the edge authorizer connection id, which will be used to configure the edge authorizer.
The Aserto CLI can be used to configure the Aserto sidecar to use the control plane by adding an option to the
aserto x configure <policy-name> --edge-authorizer <edge-authorizer-connection-id>
This will install the client certificates and configure the sidecar to connect to the control plane using them. The
edge-authorizer-connection-id can be acquired from the console, or using the Aserto CLI:
aserto p list-connections
list-connections sub-command lists all the edge authorizer connections the tenant has.
A sidecar can also be configured to generate decision logs and upload them to the control plane. To do this add the
aserto x configure <policy-name> --edge-authorizer <edge-authorizer-connection-id> --decision-logging
Certificates have a lifetime of 30 days. You can rotate the certificates in the Aserto console. To obtain the new client certificates, issue the following command using the Aserto CLI:
aserto p client-cert <edge-authorizer-connection-id>
This will return a JSON object with data about the client certificate, for example:
"certificate": "-----BEGIN CERTIFICATE----- <elided data> -----END CERTIFICATE-----",
"private_key": "-----BEGIN RSA PRIVATE KEY----- <elided data> -----END RSA PRIVATE KEY-----"
certificate field contains the certificate in PEM format and the
private_key field contains the private key, also in PEM format. The contents of these fields should be saved as two files, for example
Using the paths in the example, the configuration file of a sidecar can be updated to connect to the control plane by adding a section similar to:
To also configure a sidecar to upload decision logs, add the following config section: