Renewing Azure Certificates and Secrets

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 registrationCredentialRenewal frequency
Filer APIClient secretEvery 90 days
Filer Outlook add-inClient secretEvery 90 days
Filer Service (Azure DevOps deployment pipeline)Client secretEvery 90 days
Filer External APICertificateEvery 90 days
See Entra ID app registrations in the System Architecture Overview for what each app registration does.

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

  1. Sign in to the Azure portal for the environment you want to update.
  2. Go to Microsoft Entra ID.
  3. From the left-hand menu, select App registrations.
  4. Select the All applications tab, then find and open the app registration.
  5. From the left-hand menu, select Certificates & secrets, and make sure the Client secrets tab is selected.
  6. Select + New client secret. A side panel opens.
  7. 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.
  8. 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

  1. Go to the Filer resource group and open the Key Vault resource.
  2. In the Key Vault, go to Objects > Secrets.
  3. Select the secret you want to update, then select + New Version.
  4. Complete the Create a secret form:
FieldValue
Upload optionsManual
NameFilled in automatically (read-only)
Secret valuePaste the new client secret value you copied from the app registration
Set activation dateLeave unticked
Set expiration dateLeave unticked
EnabledYes
TagsOptional
  1. Select Create.
  2. Open the new secret version and copy its Secret Identifier URL.

Point Filer at the new version

  1. Go back to the Filer resource group.
  2. Open the Filer API application and select Environment variables from the left-hand menu.
  3. Find the environment variable to update. Tip: filter the list by searching for “Secret”.
  4. Update the environment variable with the new Secret Identifier URL, then apply and save the change.
  5. Repeat steps 15 to 18 for each Function App.

Disable the old version

  1. 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

  1. Sign in to the Azure portal for the environment you want to update.
  2. Go to the Filer resource group and open the Key Vault resource.
  3. In the Key Vault, go to Objects > Certificates.
  4. Select the certificate you want to renew, then select + New Version.
  5. For the method of certificate creation, choose Generate, so Key Vault generates the certificate.
  6. Complete the certificate form:
FieldValue
Type of Certificate Authority (CA)Self-signed certificate
SubjectFilled in automatically; no need to change it
Validity period (in months)Enter a period that matches your renewal schedule
Content typePKCS #12
Lifetime action typeChoose one of the email options, so you are notified before it expires
Percentage lifetimeLeave the default value
Advanced policy configurationLeave as Not configured
TagsOptional
  1. Select Create and wait for the new certificate version to be created.
  2. Open the new certificate version and download the public certificate in CER format.

Upload it to the app registration

  1. Go to Microsoft Entra ID and select App registrations from the left-hand menu.
  2. Select the All applications tab, then find and open the Filer External API app registration.
  3. From the left-hand menu, select Certificates & secrets, then select the Certificates tab.
  4. Select Upload certificate, choose the CER file you downloaded from Key Vault, enter a description if needed, and select Add.
  5. 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

  1. Once you have confirmed Filer is working with the new certificate, go back to the Filer resource group and open Key Vault > Objects > Certificates.
  2. Open the previous certificate version and disable it if it is no longer needed.
  3. Confirm that only the current certificate version is enabled and in use.
  4. Return to the Filer External API app registration and delete the old certificate from its Certificates tab.

System Architecture → Installation Guide → FAQs →