Filer’s app registrations use client secrets and a certificate to sign in to Microsoft services. They expire on a fixed schedule, so they need renewing regularly to keep Filer running. This article explains what they are and how to renew them.
Overview
What secrets and certificates are
Filer’s components use Microsoft Entra ID app registrations to authenticate with Microsoft Graph, SharePoint, Dataverse and each other. An app registration proves who it is with a credential, which is either:
- A client secret: a generated password held against the app registration.
- A certificate: a key pair. The public part is uploaded to the app registration and the private part stays in the Filer Key Vault.
Filer never stores these values in configuration files. They are held in the Filer Key Vault, and the Filer API and Function Apps read them from there using the Key Vault Secret Identifier set in their environment variables.
Why they expire
Secrets and certificates are created with an expiry date so that a leaked or forgotten credential can’t be used indefinitely. Rotating them regularly is a Microsoft security recommendation and limits the risk if a value is ever exposed.
Important. If a secret or certificate expires before it is renewed, the Filer components that rely on it can no longer authenticate, and features such as the Filer API, the Outlook add-in, external API routing or deployments will stop working until it is renewed.
Which app registrations are affected
| App registration | Credential | Renewal frequency |
|---|---|---|
| Filer API | Client secret | Every 90 days |
| Filer Outlook add-in | Client secret | Every 90 days |
| Filer Service (Azure DevOps deployment pipeline) | Client secret | Every 90 days |
| Filer External API | Certificate | Every 90 days |
Before you start
- You need permission to manage app registrations in Microsoft Entra ID, to create secret and certificate versions in the Filer Key Vault, and to edit environment variables on the Filer App Service and Function Apps.
- Renew the credentials for one environment at a time, and in a test environment first.
- Saving environment variables restarts the app, so plan the change for a quiet period.
- Don’t disable the old secret or certificate version until you have confirmed Filer is working with the new one.
Renew a client secret
Follow these steps for each app registration that uses a client secret: the Filer API, the Outlook add-in and the Service app registration.
Create the new secret in Entra ID
- Sign in to the Azure portal for the environment you want to update.
- Go to Microsoft Entra ID.
- From the left-hand menu, select App registrations.
- Select the All applications tab, then find and open the app registration.
- From the left-hand menu, select Certificates & secrets, and make sure the Client secrets tab is selected.
- Select + New client secret. A side panel opens.
- In the Add a client secret panel, enter a Description and choose an expiry period from the Expires list. Options range from 3 months to 2 years; choose one that matches your renewal schedule.
- Select Add. The new secret is added to the list. Copy its Value (not the Secret ID) and keep it somewhere secure, as it is only shown once.
Store it in Key Vault
- Go to the Filer resource group and open the Key Vault resource.
- In the Key Vault, go to Objects > Secrets.
- Select the secret you want to update, then select + New Version.
- Complete the Create a secret form:
| Field | Value |
|---|---|
| Upload options | Manual |
| Name | Filled in automatically (read-only) |
| Secret value | Paste the new client secret value you copied from the app registration |
| Set activation date | Leave unticked |
| Set expiration date | Leave unticked |
| Enabled | Yes |
| Tags | Optional |
- Select Create.
- Open the new secret version and copy its Secret Identifier URL.
Point Filer at the new version
- Go back to the Filer resource group.
- Open the Filer API application and select Environment variables from the left-hand menu.
- Find the environment variable to update. Tip: filter the list by searching for “Secret”.
- Update the environment variable with the new Secret Identifier URL, then apply and save the change.
- Repeat steps 15 to 18 for each Function App.
Disable the old version
- Once you have confirmed Filer is working, return to the Key Vault, find the previous version of the secret, right-click it and select Disable.
Service app registration. The Service secret is used by the Mizorix Azure DevOps service connection to deploy Filer releases. After renewing it, raise a Ticket so Mizorix can update the service connection before the next release.
Renew the External API certificate
The Filer External API app registration uses a certificate rather than a secret. Key Vault generates the new certificate, and you upload its public part to the app registration.
Create a new certificate version in Key Vault
- Sign in to the Azure portal for the environment you want to update.
- Go to the Filer resource group and open the Key Vault resource.
- In the Key Vault, go to Objects > Certificates.
- Select the certificate you want to renew, then select + New Version.
- For the method of certificate creation, choose Generate, so Key Vault generates the certificate.
- Complete the certificate form:
| Field | Value |
|---|---|
| Type of Certificate Authority (CA) | Self-signed certificate |
| Subject | Filled in automatically; no need to change it |
| Validity period (in months) | Enter a period that matches your renewal schedule |
| Content type | PKCS #12 |
| Lifetime action type | Choose one of the email options, so you are notified before it expires |
| Percentage lifetime | Leave the default value |
| Advanced policy configuration | Leave as Not configured |
| Tags | Optional |
- Select Create and wait for the new certificate version to be created.
- Open the new certificate version and download the public certificate in CER format.
Upload it to the app registration
- Go to Microsoft Entra ID and select App registrations from the left-hand menu.
- Select the All applications tab, then find and open the Filer External API app registration.
- From the left-hand menu, select Certificates & secrets, then select the Certificates tab.
- Select Upload certificate, choose the CER file you downloaded from Key Vault, enter a description if needed, and select Add.
- Check the new certificate appears in the list, and that its thumbprint and expiry date match the new certificate version in Key Vault.
Retire the old certificate
- Once you have confirmed Filer is working with the new certificate, go back to the Filer resource group and open Key Vault > Objects > Certificates.
- Open the previous certificate version and disable it if it is no longer needed.
- Confirm that only the current certificate version is enabled and in use.
- Return to the Filer External API app registration and delete the old certificate from its Certificates tab.