Documentation Center

Bootstrapping Language Weaver Edge Admin user

About this task

This feature allows to assign full Administrator privileges to a user. The user name and credentials can be provided in two ways:
  • directly in the YAML, or
  • via Kubernetes secrets.

Information required to set up the admin user:

  • username (required): Usually in the format of an email address.
  • displayName (required): Name to display for the user.
  • password (required).
  • apiKey (optional): REST API key. If it is not provided and the user does not exist, a random API key will be generated.

Procedure

  • Run the following command to provide the Admin user credentials directly:
    mtedge:
      ...
      init:
        admin:
          user:
            username: "admin@example.com"
            displayName: "Language Weaver Edge Admin"
            password: "mypassword"
            apiKey: "myapikey1234"

  • Run the following command to provide the Admin user credentials via a Kubernetes secret:
    mtedge:
      ...
      init:
        admin:
          secretName: edge-admin-secret
    The secret must contain the following keys:
    • username
    • displayName
    • password
    • apiKey (optional)