본문으로 건너뛰기
cccskills
무료GitHub에 공개

security

References Serverless OpenClaw security model. Covers Bridge 6-layer defense, IDOR prevention, secret management, Cognito authentication, and IAM least privilege. Use as a security checklist when writing or reviewing code.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serithemage/serverless-openclaw스타 196(GitHub 196 + cccskills 0)
연동 도구TelegramAWS

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Security Reference

Security Model Details

Authentication, Bridge defense, IDOR prevention, secret management, IAM roles:

Security Checklist (For Code Writing/Review)

Bridge Server

  • Bearer token authentication applied to all endpoints except /health
  • TLS (self-signed) applied (https.createServer)
  • Gateway bound to --bind localhost to block external access
  • Running as non-root user (USER openclaw)
  • /health returns only { "status": "ok" } (no internal info exposure)

Secrets

  • API keys/tokens NOT written to openclaw.json
  • Using config.auth = { method: "env" }
  • delete config.auth?.apiKey applied
  • delete config.gateway?.auth?.token applied
  • Delivered only via Secrets Manager → environment variables

IDOR

  • userId determined server-side (JWT sub or connectionId reverse lookup)
  • Client-provided userId not trusted
  • DynamoDB query PK uses jwt.sub

Authentication

  • WebSocket: ?token={jwt} → verified in ws-connect
  • REST API: Cognito User Pool Authorizer applied
  • Telegram: X-Telegram-Bot-Api-Secret-Token verification + pairing check

IAM

  • Lambda: access only to required DynamoDB tables (resource ARN restricted)
  • Fargate: access only to S3 data bucket
  • ECS permissions: Condition restricted to specific cluster
  • PassRole: only task-role and exec-role allowed

Lambda Agent (Phase 2)

See architecture.md §security for full Lambda security details.

  • Lambda IAM least privilege: S3:GetObject/PutObject on sessions/* prefix only
  • Lambda IAM: SSM:GetParameter on secrets/* prefix only (no wildcard)
  • Lambda IAM: DynamoDB:GetItem/PutItem/DeleteItem on TaskState table only
  • Lambda IAM: cloudwatch:PutMetricData for custom metrics (namespace-restricted)
  • SessionLock prevents concurrent Lambda invocations accessing same session
  • No secrets on disk: HOME=/tmp, env vars only (never write API keys to files)
  • Lambda container: non-root user, read-only root filesystem where possible

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

References Serverless OpenClaw architecture. Covers network design, CDK stack structure, DynamoDB data model, API protocols, and container design.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serithemage/serverless-openclaw1962026년 3월 29일 업데이트

References cold start optimization history and techniques. Covers Docker image optimization, Fargate CPU tuning, SOCI lazy loading, and Lambda Bedrock discovery fix. Use when optimizing startup performance.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serithemage/serverless-openclaw1962026년 3월 29일 업데이트

context

무료

Loads Serverless OpenClaw project context. Provides background knowledge needed for development including project overview, tech stack, architecture decisions, and data models.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serithemage/serverless-openclaw1962026년 3월 29일 업데이트

cost

무료

References Serverless OpenClaw cost optimization guidelines. Validates that no resources exceeding the cost target ($1/month) are created during implementation. Use when writing CDK stacks or making infrastructure changes.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serithemage/serverless-openclaw1962026년 3월 29일 업데이트

deploy

무료

Deploys Serverless OpenClaw CDK stacks to AWS. Handles SecretsStack parameter injection, full/individual stack deployment, and Docker image push.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serithemage/serverless-openclaw1962026년 3월 29일 업데이트

dev

무료

Development workflow guide. Covers build, test, lint, format commands, package structure, Git hooks, TDD methodology, and coding conventions. Use when setting up dev environment, running tests, or following project conventions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serithemage/serverless-openclaw1962026년 3월 29일 업데이트

serithemage의 스킬 모두 보기

이 스킬의 문제 신고