Skip to content

docs: updated acs url for console - #2696

Open
deepakprabhakara wants to merge 2 commits into
masterfrom
polis-unique-acsurl
Open

docs: updated acs url for console#2696
deepakprabhakara wants to merge 2 commits into
masterfrom
polis-unique-acsurl

Conversation

@deepakprabhakara

@deepakprabhakara deepakprabhakara commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Related Issue or Design Document

Checklist

  • I have read the contributing guidelines and signed the CLA.
  • I have referenced an issue containing the design document if my change introduces a new feature.
  • I have read the security policy.
  • I confirm that this pull request does not address a security vulnerability.
    If this pull request addresses a security vulnerability,
    I confirm that I got approval (please contact security@ory.com) from the maintainers to push the changes.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added the necessary documentation within the code base (if appropriate).

Further comments

Summary by CodeRabbit

  • New Features

    • Added support for the acsUrlId field when creating or updating SSO connections.
    • Included acsUrlId in exported SSO connection details and examples.
    • Clarified the response format for successful SSO connection updates.
  • Documentation

    • Updated the API reference version and refreshed examples.
    • Documented rate-limit classifications across SSO, OAuth, directory, tracing, and identity federation endpoints.

@deepakprabhakara deepakprabhakara added the upstream Issue is caused by an upstream dependency. label Jul 28, 2026
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The OpenAPI document updates SSO connection schemas, explicitly documents the SSO update response, adds rate-limit bucket metadata across API operations, updates examples, and changes the document version.

Changes

API contract updates

Layer / File(s) Summary
SSO connection contract
docs/polis/reference/api.json
Create and update SSO payloads and the exported Connection schema add acsUrlId; the SSO update response references Connection.
Endpoint rate-limit metadata
docs/polis/reference/api.json
SSO, OAuth, directory sync, SSO trace, and identity federation operations receive polis-public-medium or polis-public-high bucket extensions.
API metadata and examples
docs/polis/reference/api.json
The document version and Connection example values are updated.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: aeneasr

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is only the template placeholder and does not describe the change, related issue, checklist status, or further comments. Replace the template text with a real summary, link any related issue or design doc, and complete the checklist items that apply.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and clearly points to the ACS URL console update, which is part of the change set.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch polis-unique-acsurl

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/polis/reference/api.json`:
- Around line 438-439: Add the x-ory-ratelimit-bucket extension to the SSO
setup-link operation definitions for POST, DELETE, and GET
/api/v1/sso/setuplinks and GET /api/v1/sso/setuplinks/product. Assign the
appropriate polis-public-medium or polis-public-high value consistent with the
documented rate-limit classification so all four operations appear in the
generated rate-limit table.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: a8c91e77-74a1-417a-bdf0-3e8cd6c3d2a0

📥 Commits

Reviewing files that changed from the base of the PR and between 5402826 and 3fb8665.

⛔ Files ignored due to path filters (1)
  • docs/kratos/organizations/organizations.mdx is excluded by !**/*.mdx
📒 Files selected for processing (1)
  • docs/polis/reference/api.json

Comment on lines +438 to +439
},
"x-ory-ratelimit-bucket": "polis-public-high"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== locate api.json =="
fd -a 'api\.json$' . | sed 's#^\./##'

echo "== excerpts around docs/polis/reference/api.json lines 400-480 =="
sed -n '400,480p' docs/polis/reference/api.json | nl -ba -v400

echo "== search setuplinks =="
rg -n '/api/v1/sso/setuplinks|x-ory-ratelimit-bucket|rate-limit endpoint table|setuplinks' docs/polis/reference/api.json docs || true

echo "== relevant operations count/buckets =="
python3 - <<'PY'
import json
from pathlib import Path
p=Path('docs/polis/reference/api.json')
data=json.loads(p.read_text())
paths=data.get('paths',{})
for path,ops in paths.items():
    if '/api/v1/sso/setuplinks' in path:
        print(f'PATH {path}')
        for method,e in ops.items():
            print(f' {method} bucket={e.get("x-ory-ratelimit-bucket")!r}')
print('directory sync setuplinks:')
for path,ops in paths.items():
    if '/api/v1/sso/dirsync' in path or 'dirsync' in path.lower() or 'setuplinks' in path:
        pass
PY

Repository: ory/docs

Length of output: 1405


🏁 Script executed:

#!/bin/bash
set -euo pipefail

file='docs/polis/reference/api.json'
echo "== lines 400-490 =="
sed -n '400,490p' "$file" | cat -n | sed 's#^\s*##'

echo "== setuplinks occurrences =="
grep -nE '/api/v1/sso/setuplinks|x-ory-ratelimit-bucket|rate-limit|rate limit|rate-limit endpoint' "$file" || true

echo "== summary of /api/v1/sso/setuplinks operations and buckets =="
python3 - <<'PY'
import json
from pathlib import Path
p=Path('docs/polis/reference/api.json')
data=json.loads(p.read_text())
for path in sorted(data.get('paths', {}).keys()):
    if '/api/v1/sso/setuplinks' in path:
        print('PATH', path)
        for method, op in data['paths'][path].items():
            bucket = op.get('x-ory-ratelimit-bucket')
            print(f' {method} bucket={bucket!r}')
PY

Repository: ory/docs

Length of output: 5462


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== policy/reference rate-limit bucket and table references =="
rg -n "x-ory-ratelimit-bucket|rate-limit.*endpoint|rate.*limit.*endpoint|generated.*rate|rate-limit" docs src .github workflows -g '!*.map' || true

echo "== local scripts containing generate/rate/convert terms =="
rg -n "generate|rate|limit|ratelimit|metadata|reference|api.json|doc" README* docs src .github workflows -g '!*.map' | head -n 200 || true

Repository: ory/docs

Length of output: 50365


🏁 Script executed:

#!/bin/bash
set -euo pipefail

file='docs/polis/reference/api.json'

echo "== /api/v1/sso/setuplinks blocks =="
python3 - <<'PY'
import json, re
p='docs/polis/reference/api.json'
s=open(p, encoding='utf-8').read()
for m in re.finditer(r'([{/]\s*"\s*/api/v1/sso/(?:dirsync|setuplinks)[^"]*":\s*\{|"\s*/api/v1/sso/(?:dirsync|setuplinks)[^"]*":\s*\{)', s):
    start=m.start()-200
    if start<0: start=0
    end=s.find('\n    },', m.end())
    block=s[m.start()+1:end].replace('\n', ' ')[:500]
    print(block)
PY

echo "== JSON slice around setuplinks paths =="
sed -n '576,600p' "$file"
sed -n '902,915p' "$file"

Repository: ory/docs

Length of output: 2322


Add x-ory-ratelimit-bucket to the SSO setup-link operations.

The /api/v1/sso/setuplinks POST/DELETE/GET operations and /api/v1/sso/setuplinks/product GET are classified under rate-limit endpoint documentation, but they currently have no bucket. Add the appropriate polis-public-medium/polis-public-high values so these routes show up in the generated rate-limit table.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/polis/reference/api.json` around lines 438 - 439, Add the
x-ory-ratelimit-bucket extension to the SSO setup-link operation definitions for
POST, DELETE, and GET /api/v1/sso/setuplinks and GET
/api/v1/sso/setuplinks/product. Assign the appropriate polis-public-medium or
polis-public-high value consistent with the documented rate-limit classification
so all four operations appear in the generated rate-limit table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream Issue is caused by an upstream dependency.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant