本文へ移動
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 / 1000 文字

このフォームは 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 のスキルをすべて見る

このスキルの問題を報告する