endor-validate-policy

Validate Endor Labs stored policies against project findings via PolicyValidation API or endorctl.

4|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/endorlabs/endorlabs-sdk --skill endor-validate-policy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: endor-validate-policy
Source: https://github.com/endorlabs/endorlabs-sdk/tree/main/agent-knowledge/skills/endor-validate-policy
Command: npx skills add https://github.com/endorlabs/endorlabs-sdk --skill endor-validate-policy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you determine whether an Endor Labs policy, especially an exception policy, would match real finding data for a project without applying changes in production.

Core Features & Use Cases

  • Policy match validation: Check whether a stored policy matches findings for a specific project or finding UUID.
  • API and CLI parity: Compare SDK policy validation behavior with endorctl validation output and understand differences in request shape, auth, and results.
  • Troubleshooting support: Diagnose template value issues such as VulnID matching, MatchApproximate behavior, and namespace-related 403 errors.
  • Operational workflows: Use it for tenant-scoped automation, preview-only syntax checks, or full evaluation against loaded project findings.

Quick Start

Ask the AI to validate a specific Endor Labs policy against a finding or project in the correct namespace and explain the match result.

Frequently Asked Questions about endor-validate-policy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate an Endor Labs exception policy against project findings?▼

You can validate an Endor Labs exception policy by using the PolicyValidation API or endorctl parity workflows to check if stored policy rules match specific project findings or finding UUIDs without applying production changes. This requires tenant namespace alignment and policy identifiers.

Why does my Endor Labs policy validation return a 403 error?▼

Endor Labs policy validation returns 403 errors due to tenant namespace misalignment. You must ensure your authorization context matches the namespace where the target policy and project findings are stored before executing validation requests or parity workflows.

What is the difference between SDK and endorctl policy validation behavior?▼

SDK and endorctl policy validation differ in request shape, authentication methods, and result formatting. You can compare both validation outputs using parity workflows to understand behavioral differences before committing to a specific automation approach.

Can I run a preview-only syntax check for Endor Labs policy templates?▼

Yes, you can run preview-only syntax validation for Endor Labs policy templates. This checks template value structures, including VulnID matching and MatchApproximate behavior, without fully evaluating the policy against loaded project findings.

How do I troubleshoot VulnID matching issues in Endor Labs exception policies?▼

To troubleshoot VulnID matching issues in Endor Labs exception policies, validate the stored policy template values against specific finding UUIDs. This isolates MatchApproximate behavior and template value mapping problems without modifying active production rules.