> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/self-managed-enterprise-edition/use-self-managed-enterprise-edition/advanced-configuration/use-external-secrets-for-license-values.md).

# Use external secrets for license values

Kubernetes external secrets enable Kubernetes resources to use external data stores securely. You can use Kubernetes-based external secrets for Harness Self-Managed Enterprise Edition license values in your Helm charts.

{% hint style="info" %}
Currently, this feature is in [beta](/harness-ai/new-to-harness-platform/overview.md#beta-limited-ga-and-ga-definitions). Contact [Harness Support](mailto:support@harness.io) to get your Harness Self-Managed Enterprise Edition license files.
{% endhint %}

The following values are available in `global.license.secrets.kubernetesSecrets`.

* `secretName`: Name of the Kubernetes secrets containing Harness license keys
* `keys.CG_LICENSE`: Name of the secret key containing a FirstGen License
* `keys.NG_LICENSE`: Name of the secret key containing a NextGen License

  ```yaml
     global:
       license:
         cg: ''
         ng: ''
         secrets:
           kubernetesSecrets:
             - secretName: ""
               keys:
                 CG_LICENSE: ""
                 NG_LICENSE: ""
  ```

### Configure an external secret as a Harness license value <a href="#configure-an-external-secret-as-a-harness-license-value" id="configure-an-external-secret-as-a-harness-license-value"></a>

To configure a Kubernetes-based external secret as a NextGen Harness license value, do the following:

1. Create a Kubernetes secret that includes your NextGen Harness license.
2. Update your `override.yaml` file to include the following.

   ```yaml
         global:
           license:
             secrets:
               kubernetesSecrets:
                 - secretName: "harness-license"
                   keys:
                     NG_LICENSE: "ng"
   ```
