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.

yaml
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-secrettoken

HumioSystemToken

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.

yaml
apiVersion: core.humio.com/v1alpha1
kind: HumioSystemToken
metadata:
  name: humiosystemtoken-sample
spec:
  managedClusterName: humiocluster
  name: example-system-token
  permissions:
    - ReadHealthCheck
    - ViewOrganizations
    - ChangeUsername
  tokenSecretName: system-secrettoken

HumioOrganizationToken

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.

yaml
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