Alert on Expiring App Reg Certificates Crate

If you’re new to Crates, read through our introductory Crate documentation here. Find the Crate in our Crate Marketplace.

What does the Alert on Expiring App Reg Certificates Crate do?

Our Alert on Expiring App Reg Certificates Crate identifies any expiring certificates in your Application Registrations and logs individual tickets for each client as well as a detailed overall summary ticket. Reduce disruptions by getting notified on expiring application registration certificates.

Workflow breakdown

  1. The workflow begins with the list_organizations task, which uses the List Organizations action to retrieve a list of all organizations in Rewst that the current organization manages.

  2. Upon successful completion, the list_organizations task publishes two context variables: to_run_against containing the organization IDs and orgs_plus_root which includes both the managed organizations and the current organization ID.

  3. The workflow then proceeds to the list_expiring_app_reg_certs task, which executes the [Rewst Master v3] Azure: Alert on Expiring App Certs [Part 2] action using a "with items" loop that runs once for each organization in the orgs_plus_root list with a concurrency of 1.

  4. The list_expiring_app_reg_certs task publishes the collected results to context variables all_certs_collected_results and all_certs, where the latter flattens all certificate data from all organizations into a single list.

  5. If the list_expiring_app_reg_certs task succeeds, the workflow moves to the check_send_aggregate task, which uses the noop action to evaluate whether an aggregate ticket should be created.

  6. The check_send_aggregate task has two possible transitions: if the context variable send_aggregate is true or undefined, it proceeds to create an aggregate ticket; otherwise, it skips to the end.

  7. When creating an aggregate ticket, the create_all_certs task executes the [Rewst Master v2] PSA: Create Service Ticket action to generate a detailed service ticket containing all expiring certificates from all organizations with formatted information including organization name, app display name, app ID, certificate display name, and expiry time.

  8. If the create_all_certs task succeeds, the workflow proceeds to the END task, which uses the noop action to complete the workflow successfully.

  9. If any task fails during execution, the workflow transitions to the failure_detected task, which uses the noop action to handle the failure condition before terminating.

  10. The workflow concludes at the END task, which uses the noop action to mark the successful completion of the certificate expiration alerting process.

Crate prerequisites

Unpack the Alert on Expiring App Reg Certificates Crate

  1. Navigate to Crates > Crate Marketplace in the left side menu of the Rewst Platform.

  2. Search for Alert on Expiring App Reg Certificates.

  3. Click on the Crate tile to begin the unpacking process.

  4. Click Unpack Crate.

Screenshot of the Rewst platform showing the unpacking screen for a workflow crate titled "[Rewst Master v3] Azure: Alert on Expiring App Certs [Part 1]". The page displays a description: "Identify any Application Registrations that have expiring certificates and log a ticket per client, with an overall ticket with all detailed information." Below that, there's a "Crate Configuration" section with fields for "Workflow Name" (pre-filled), "Time Saved (seconds)" (set to 0), and a trigger configuration showing a Cron Job marked as "Enabled". Buttons for "Previous" and "Unpack" appear at the bottom right.
The Crate's configuration page
  1. Enter your Time Saved.

  2. Click Unpack.

Test the Crate

To test this Crate, you'll need to adjust the cron trigger's schedule to a few minutes in the future, then adjust it back to your regular schedule after the test. Alternatively, you could wait until the regularly scheduled run occurs and check your result, which would not require you to update the cron trigger schedule.

  1. Navigate to Automations > Workflows.

  2. Search for Alert on Expiring App Certs [Part 1].

    The workflow, in a search result
  3. Click on the workflow to open it in the workflow builder.

  4. Adjust the cron trigger's schedule to five minutes from your current time. The workflow will run on its own, and tickets will be created if expiring certs are found.

Got an idea for a new Crate? Rewst is constantly adding new Crates to our Crate Marketplace. Submit your idea or upvote existing ideas here in our Canny feedback collector.

Last updated

Was this helpful?