Skip to content

Rotate Freshservice keys ​

This guide will walk you through how to rotate Freshservice keys on Luna.

Introduction ​

Freshservice is our support ticketing system. We have an integration with Luna and Freshservice so Luna Platform can create tickets for various reasons like Activation of Affiliate, Leaver Affiliate when their contract ends, and so on.

Pre-requisites ​

  1. You would need admin access to Luna Prod and non production accounts in order to rotate the keys.
  2. You would need access to the 1Password vault to get the Freshservice credentials. Contact Luna Team or IT to get access.

Freshservice API Key ​

You can find the API key for Freshservice if you search "freshservice" in the list of stored parameters. The exact name is not mentioned for security reasons.

Note on Environments ​

We have only one environment for Freshservice. Therefore, the API keys are shared in lower and production environments. We have another parameter called luna-test-emails which protects against the creation of Okta accounts. Currently, Freshservice tickets are only created for Affiliate Activation or Deactivation, which only happens when the Okta API call has succeeded. Therefore, luna-test-emails provides indirect protection to Freshservice tickets. Whether Freshservice tickets are created at all in a given environment is controlled by the service-desk-clients SSM parameter (luna/${Environment}/service-desk-clients), which lists which service-desk backends are enabled (freshservice, solarwinds, or both) for that environment — a lower environment can have Freshservice disabled entirely via this list, rather than via a disabled key.

TIP

SolarWinds Service Desk is now a parallel ticketing integration alongside Freshservice. The Freshservice-specific ticket-creation functions are deprecated in favour of the unified createAffiliateActivationTicket/createAffiliateDeactivationTicket client, which calls Freshservice and/or SolarWinds Service Desk depending on the service-desk-clients configuration.

Rotating Freshservice Keys ​

  1. Open an Incognito browser window
  2. Log in to Okta using the credentials stored in the Freshservice vault.
  3. Select the Freshservice application in Okta. The app might ask for a 2FA code, which can be found in the 1Password vault as well.
  4. Once you have logged in, click on the user icon on the top right and select Profile Settings.

Profile Settings

  1. Once you are in the profile section, you will see your API key section on the right-hand side. You will have to go through a CAPTCHA flow to view the API key.

CAPTCHA Flow

  1. Once you are past the CAPTCHA flow, you will see the API keys and a button to "Reset API Key". When you press the button, a confirmation window will appear. Confirm to reset, and new API keys will be generated.

  2. Copy and store these new keys in the parameters.

Made with ❤️ by the Luna team