Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Spa sharepoint power automate/01-seguridad
Reference · Spa sharepoint power automate

01-seguridad

Part of Spa sharepoint power automate. Install the skill and your agent reads this page when it needs the depth.

<!-- spa-sharepoint-power-automate · references/01-seguridad.md · secciones §1 --> <!-- Contenido movido tal cual desde el SKILL.md monolítico (2026-09-24). Índice: ../SKILL.md -->

1 · Security model (read first)

This pipeline exposes a public, unauthenticated HTTP endpoint. Treat the security model as a first-class concern, not an afterthought.

VITE_* env vars are PUBLIC — they ship in the bundle

Anything prefixed VITE_ is inlined into the JavaScript bundle at build time and is fully visible to anyone who opens DevTools or reads the source on GitHub Pages.

Never put a real secret (SP app password, Graph client secret, Outlook token) in a VITE_ var. Those belong only inside the Power Automate flow's connections, which run server-side.

Abuse surface and mitigations

The endpoint is open to the internet. Realistic mitigations, in order of effort:

  1. Validate x-app-key in the flow — first action after the trigger: a Condition comparing triggerHeaders()?['x-app-key'] to the expected value; on mismatch, Response 401 and Terminate. Stops casual bots even though the key is discoverable.
  2. Payload-shape validation — reject requests missing required fields or with absurd sizes before doing SP work.
  3. Size cap — see Payload & attachment limits below; reject oversized bodies early with a Response 413.
  4. Rate awareness — Power Automate per-flow run limits exist but are generous; for real rate limiting put the flow behind Azure API Management or a Cloudflare Worker proxy. Usually overkill for an internal-tool checklist; document the decision either way.
  5. CAPTCHA / verification — the trigger URL and any shared key are readable in the public bundle, so neither is an abuse control. Beyond a low-value internal form, put rate limiting and bot verification (for example Cloudflare Turnstile) in a gateway in front of the flow from the start, not after abuse appears. A CAPTCHA adds friction: weigh it against spam records, quota exhaustion and outbound email.

The honest posture: this is an internal tool with a public URL, secured by obscurity + low value to attackers. Write that assumption down in the repo so nobody mistakes it for a hardened public API.

Don't leak internals in the public bundle / UI

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.