Profiles
Profiles #
The installation of the mirrord operator defines a new clusterwide custom resource
in your cluster, called MirrordProfile
.
This resource can be used to provide mirrord users with a unified base for their mirrord configs. Users can reference an available profile in their configs, and they will be modified accordingly.
apiVersion: profiles.mirrord.metalbear.co/v1alpha
kind: MirrordProfile
metadata:
# This name can be referenced by the user in their mirrord configs.
name: example-profile
spec:
# A list of adjustments to be made in the user's feature config.
#
# The adjustments are applied in order.
featureAdjustments:
# Incoming traffic will be stolen.
- change: incoming-steal
# All outgoing traffic will be remote.
- change: outgoing-remote
# All DNS resolution will be remote.
- change: dns-remote
The complete list of allowed values for the featureAdjustments.[].change
field is as follows:
incoming-mirror
- incoming traffic will be mirroredincoming-steal
- incoming traffic will be stolenincoming-off
- incoming traffic will not be intercepteddns-remote
- all DNS resolution will be remotedns-off
- all DNS resolution will be localoutgoing-remote
- all outgoing traffic will be remoteoutgoing-off
- all outgoing traffic will be local
Selecting a profile #
Starting from mirrord version 3.136.0, the user can select a mirrord profile in their mirrord config. The profile is referenced by its name.
{
"profile": "example-profile"
}
Enforcing profiles #
Use of mirrord profiles can be enforced with mirrord policies.
Important: mirrord profiles are applied to the session on the user machine, and should not be used as security features.