Skip to main content

secure-an-internal-api

Secure an internal API with workload identity, authorization, transport protection, input limits, audit, segmentation, and abuse resistance. Use when a service boundary is private but still consequential.

Informações da origem

Repositório
protosphinx/sphinxstack
Última atividade na origem
29 de julho de 2026 às 13:55
Idioma detectado do SKILL.md
inglês
Estrelas
3
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Explorador de arquivos
2 arquivos

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
secure-an-internal-api
category
code
description
Secure an internal API with workload identity, authorization, transport protection, input limits, audit, segmentation, and abuse resistance. Use when a service boundary is private but still consequential.
# secure-an-internal-api ## When to use - Use for service, admin, operations, or partner-only APIs. - Never treat network location alone as identity or authorization. ## Preconditions - Inventory callers, actions, resources, data, networks, identities, failure modes, and emergency access. ## Procedure 1. Assign authenticated workload identities with short-lived credentials. 2. Authorize each action and resource with tenant and purpose context. 3. Protect transport and verify peer identity end to end. 4. Validate schemas, sizes, rates, deadlines, replay, and idempotency. 5. Segment sensitive routes and restrict outbound dependencies. 6. Audit consequential decisions without logging secrets or payloads. 7. Test confused deputy, credential theft, SSRF, replay, overreach, and outage. ## Failure plan - Fail closed for consequential action and preserve a bounded governed recovery path. ## Worked example A private billing endpoint rejects a valid service identity that lacks authority for the requested tenant. ## Done - An internal-API security report records identities, authorization, transport, validation, segmentation, audit, and recovery - Cross-tenant, replay, SSRF, rate, credential, failover, log-redaction, and emergency-access tests verify controls
Ver no GitHub