Tenant Registration

If you add a new partition, you must register a new tenant in the MaxAI assistant.

About this task

To register a new tenant, complete the following steps:

Procedure

  1. Execute the new tenant registration script
    1. Update the following placeholders:
      • Replace placeholder_org_id. Query the database to retrieve the org_id for your organization.

        Example: SELECT org_id FROM table WHERE org_name = '<Organization-Name>';

      • Replace placeholder_partition_name. Use an appropriate partition name from Unica. Example: partition 1.
      • Replace placeholder_argon_hashed_access_key. To generate a hashed secret key, complete the following steps:
        1. To access the Config Service pod, run the command kubectl get pods | grep maxai-config.
        2. Run the command kubectl exec /bin/bash.
        3. Type cd util and press the Enter key.
        4. Run the secret hasher script: python secret_hasher.py your_secret.
        5. Copy the output hashed value and use it to replace the placeholder.
        6. Save the original your_secret securely for future reference.
    2. Execute the new-tenant-registration.sql script
  2. Repeat Step 1 for each partition.
    Execute the new-tenant-registration.sql script for each partition that needs access to MaxAI.
  3. Restart the config services.
    After completing the registration for all relevant partitions, restart the Config Service.
  4. Start all GenAI services.
    After the successful restart of Config Service, start all other GenAI services.