Skip to content

docs: document adding and updating gateway policies - #496

Merged
renuka-fernando merged 1 commit into
wso2:mainfrom
renuka-fernando:pol-order-png
Sep 16, 2026
Merged

renuka-fernando merged 1 commit into
wso2:mainfrom
renuka-fernando:pol-order-png

Conversation

@renuka-fernando

@renuka-fernando renuka-fernando commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Purpose

The gateway docs explain how to build a gateway with custom policies, but not how to add a managed policy, update a policy to a different version, or roll the change out. This PR adds a dedicated how-to and aligns the surrounding pages with the current ap CLI (v0.9.1).

Preview

image

Approach

  • Add "Add or Update Policies in a Gateway" across all four gateway doc versions (1.0.0, 1.1.0, 1.2.0, next), wired into the nav and the un-versioned redirect.
  • Cover adding managed (Policy Hub) and local policies, pinning to a major/minor/exact version, rebuilding the image with ap gateway image build, and rolling it out via docker-compose.
  • Update the custom-policies build page for ap CLI v0.9.1: versioned and platform-neutral download, folder-aware extraction, and the ap version command.
  • Split the AI Gateway guardrails extend section into "Add or update guardrails" (linking the new page) and "Custom guardrails" (linking "Writing a Custom Policy"), across all versions.

Related Issues

N/A

Checklist

  • Tests added or updated (unit, integration, etc.)
  • Samples updated (if applicable)

Add an "Add or Update Policies in a Gateway" how-to across all four
gateway doc versions (1.0.0, 1.1.0, 1.2.0, next), wired into the nav
and redirects. The page covers adding managed (Policy Hub) and local
policies, pinning versions (major/minor/exact), rebuilding the image
with the ap CLI, and rolling it out via docker-compose.

- Align the custom-policies build page with ap CLI v0.9.1: versioned,
  platform-neutral download, folder-aware extraction, ap version.
- AI Gateway guardrails: split the extend section into "Add or update
  guardrails" (link to the new page) and "Custom guardrails" (link to
  writing a custom policy) across all versions.

Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: e8743839-bc6b-428b-b01b-56c4c11bfb1e


Comment @coderabbitai help to get the list of available commands.

@renuka-fernando
renuka-fernando merged commit b812a74 into wso2:main Sep 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants