
Access Token Resources
The Humio Operator can manage three types of access token resources: view tokens, system tokens, and organization tokens. Each token is created in LogScale and exported as a Kubernetes secret.
HumioViewToken
A HumioViewToken resource tells the
Humio Operator to create a LogScale ViewPermissionToken. Any
number of HumioViewToken resources
may be created and managed by the Operator.
The content of the yaml file will depend on how the LogScale
ViewPermissionToken should be configured. The following shows an example
of a HumioViewToken resource.
apiVersion: core.humio.com/v1alpha1
kind: HumioViewToken
metadata:
name: humioviewtoken-sample
spec:
managedClusterName: humiocluster
name: example-view-token
viewNames:
- view-1
- view-2
permissions:
- ReadAccess
tokenSecretName: view-secrettokenHumioSystemToken
A HumioSystemToken resource tells
the Humio Operator to create a LogScale SystemPermissionToken. Any
number of HumioSystemToken resources
may be created and managed by the Operator.
The content of the yaml file will depend on how the LogScale
SystemPermissionToken should be configured. The following shows an example
of a HumioSystemToken resource.
apiVersion: core.humio.com/v1alpha1
kind: HumioSystemToken
metadata:
name: humiosystemtoken-sample
spec:
managedClusterName: humiocluster
name: example-system-token
permissions:
- ReadHealthCheck
- ViewOrganizations
- ChangeUsername
tokenSecretName: system-secrettokenHumioOrganizationToken
A HumioOrganizationToken resource
tells the Humio Operator to create a LogScale
OrganizationPermissionToken. Any number of
HumioOrganizationToken resources may
be created and managed by the Operator.
The content of the yaml file will depend on how the LogScale
OrganizationPermissionToken should be configured. The following shows an
example of a HumioOrganizationToken
resource.
apiVersion: core.humio.com/v1alpha1
kind: HumioOrganizationToken
metadata:
labels:
name: humioorganizationtoken-sample
spec:
managedClusterName: humiocluster
name: example-organization-token
permissions:
- CreateRepository
- ManageUsers
tokenSecretName: organization-secrettoken