Enforcing ServiceNow-Based Approvals with Rafay | Rafay

Enforcing ServiceNow-Based Approvals with Rafay

June 25, 2025

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

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.

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.