Server Side Authority logo

Server Side Authority

Community
randommonicle
server-side-authority

Four server-side authority rules for any client-facing backend. Never trust a client-supplied storage path or object id — derive it server-side from the row the caller owns. An RLS self-update policy must scope columns, not just rows, or a user can promote their own role. Every exposed table gets RLS enabled or its grants revoked — a code comment is not a control. Escape all dynamic output in admin surfaces. Triggers when adding or reviewing a route that accepts client-supplied paths/ids, an RLS self-update policy, a new public-schema table, or an admin dashboard render. Does not fire on general security review (the security-review command) or client-side validation UX.

Overview

Publisherrandommonicle
Repositoryclaude-skills
Skill nameserver-side-authority
Stars
27
Forks
3
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by randommonicle on GitHub. Read the source before you install it.

Installation

Install the Server Side Authority AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/randommonicle/claude-skills/tree/main/server-side-authority
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/randommonicle/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/server-side-authority .claude/skills/server-side-authority
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Server Side Authority in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Server Side Authority on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Server Side Authority is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Server-side authority

Four rules from an independent security audit's transferable findings, including a role-escalation the audit called its most urgent single change and an IDOR pattern that recurs across repos. Added by committee decision (2-1, dissent recorded in the review record) as one narrow skill rather than four broad ones.

Rule 1 — derive paths and ids server-side from the owned row

Never download, mutate, or serve whatever path or id the client sent, even after checking the caller owns a related record. A photo-analysis route once verified the caller owned the photo row, then downloaded whatever storage_path the request carried — an access-confusion hole. The owned row already knows its own path; read it from there.

Rule 2 — RLS self-update policies scope columns, not just rows

UPDATE ... WHERE auth.uid() = id with no column restriction lets a user set their own role to admin. Restrict the writable columns — a trigger rejecting privileged-column changes, or a column-level REVOKE — not only the row. Row-scoping answers "which records"; it says nothing about "which fields".

Rule 3 — every exposed table: RLS enabled, or grants revoked

A public-schema table is reachable through the API layer regardless of what the code comments assert. "The anon key never touches this table" is a comment, not a control (enforce-invariants-in-build applies). Either enable RLS with real policies or revoke the role grants — and verify from the catalog, not the comment.

Rule 4 — escape all dynamic output in admin surfaces

Escaping only the fields you consider user-supplied leaves the rest as a stored-XSS path into the most privileged session in the system. Names, emails, job titles, and addresses are attacker-writable too. Escape everything dynamic, uniformly, at the render boundary.

What this skill does not do

It does not replace a full security review (the security-review command exists for that), govern client-side validation, or cover the wider audit programme (backups, transfers, seed-data hygiene stay project-side). Four rules, checked at the moments named in the trigger.

Why

All four are authority confusions: the server letting the client, the row, the comment, or the "trusted" field carry an authority decision the server itself must make. Each was found live in a production audit. Evidence: ASH CLAUDE.md independent-audit section (2026-05-22); ICC LESSONS_LEARNED L-003 for the output-escaping class.

Additions from the misses-log sweep (2026-10-22)

  • A change of permission leaves a record. Every route that can change who may do what (the admin's control, a script, a change by hand) writes who, when, from and to, through a trigger so no route escapes it. (ICC L-117.)
  • A security decision does not hand-parse a published grammar. After a hand-written parser of a spec (Markdown, HTML, a URL) leaks a second time, use the reference implementation, and refuse whatever the real consumer could read differently. (AI domain L-117.)

Frequently asked questions

What does the Server Side Authority AI skill do?

Four server-side authority rules for any client-facing backend. Never trust a client-supplied storage path or object id — derive it server-side from the row the caller owns. An RLS self-update policy must scope columns, not just rows, or a user can promote their own role. Every exposed table gets RLS enabled or its grants revoked — a code comment is not a control. Escape all dynamic output in admin surfaces. Triggers when adding or reviewing a route that accepts client-supplied paths/ids, an RLS self-update policy, a new public-schema table, or an admin dashboard render. Does not fire on ge...

Why use Server Side Authority on TypingMind?

Because you install it once and use it with any model. Server Side Authority is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Server Side Authority in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/randommonicle/claude-skills/tree/main/server-side-authority. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Server Side Authority?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Server Side Authority?

As many as you like. As long as a model supports skills, you can use Server Side Authority with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Server Side Authority AI skill free?

Yes. It is published on GitHub by randommonicle under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇