Enforcing ServiceNow-Based Approvals with Rafay - Rafay Product Documentation

Enforcing ServiceNow-Based Approvals with Rafay

Enterprises often require explicit approvals before critical actions can proceed especially when provisioning infrastructure or making configuration changes. With Rafay’s out-of-the-box (OOB) workflow handlers, customers can easily integrate with popular ITSM systems such as ServiceNow (SNOW).

This post explains how to configure and use Rafay’s ServiceNow Workflow Handler to enforce approval gates.


Workflow Handlers in Rafay

Rafay enables platform teams to attach Workflow Handlers to key actions as pre-hooks or post-hooks:


Typical Scenarios

Here are a few use cases where ServiceNow-based approvals come into play:


Approval Workflow Overview

Here’s how the integrated approval process works:

  1. User Initiates an Action: A user requests environment creation (e.g., namespace, vCluster).
  2. Rafay Creates a ServiceNow Ticket: A ticket is automatically generated with details like:
    • Environment name
    • Requestor
    • Purpose and compliance info
  3. Approval Pending: Rafay waits for the ticket to be approved in ServiceNow. A timeout is configured to auto-cancel if no response is received in time.
  4. Approval Granted: An admin approves the ticket in ServiceNow. Rafay detects this and proceeds with the action.
  5. Post-Provisioning Update: Once completed, Rafay updates the ticket with the outcome. Optional: send an email notification using a post-hook handler.

Implementation Guide

Step 1: Clone the Handler

Step 2: Configure Input Variables

Step 3: Attach as a Pre-Hook

Step 4: Monitor Approval Status

Step 5: Use Project-Based Overrides


Conclusion

Rafay’s integration with ServiceNow ensures that infrastructure automation remains compliant and controlled, without slowing down developers. Whether you’re scaling clusters or creating environments, approvals are just a hook away. For teams operating in regulated environments or with strong ITSM processes, this is a game-changer.