Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

ci: replace Claude Ops AWS key with OIDC (#998)

Aurora Capital8fea5b25c4a0
diff --git a/.github/workflows/aws-oidc-production-smoke.yml b/.github/workflows/aws-oidc-production-smoke.yml
new file mode 100644
index 00000000..f043592c
--- /dev/null
+++ b/.github/workflows/aws-oidc-production-smoke.yml
@@ -0,0 +1,36 @@
+name: AWS OIDC production smoke
+
+on:
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ id-token: write
+
+concurrency:
+ group: aws-oidc-production-smoke
+ cancel-in-progress: false
+
+jobs:
+ log-query:
+ environment: production
+ runs-on: ubuntu-latest
+ steps:
+ - name: Assume the Claude Ops AWS role
+ uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a62c21074a494a76c791f7333f # v5
+ with:
+ role-to-assume: arn:aws:iam::410126241301:role/ClaudeOpsGitHubActionsRole
+ role-session-name: claude-ops-production-smoke
+ aws-region: us-east-1
+
+ - name: Verify caller and production log access
+ run: |
+ set -euo pipefail
+ aws sts get-caller-identity --query Arn --output text
+ START_TIME=$(( $(date +%s) - 3600 ))000
+ aws logs filter-log-events \
+ --log-group-name /ecs/healify-api-prod \
+ --start-time "$START_TIME" \
+ --limit 1 \
+ --query '{events:length(events),searchedLogStreams:length(searchedLogStreams)}' \
+ --output json
diff --git a/claude-ops/tests/run-all.sh b/claude-ops/tests/run-all.sh
index 056f3952..2218aa71 100755
--- a/claude-ops/tests/run-all.sh
+++ b/claude-ops/tests/run-all.sh
@@ -70,6 +70,7 @@ run_suite "$TESTS_DIR/test-pii-gate-fires.sh"
run_suite "$TESTS_DIR/test-pre-commit-hook-blocks.sh"
run_suite "$TESTS_DIR/test-pii-metadata-gate.sh"
run_suite "$TESTS_DIR/test-pii-github-comment-suppressions.sh"
+run_suite "$TESTS_DIR/test-aws-oidc-workflow.sh"
run_suite "$TESTS_DIR/test-agent-teams.sh"
run_suite "$TESTS_DIR/test-pocket-env-broker.sh"
run_suite "$TESTS_DIR/test-ops-pocket-notify.sh"
diff --git a/claude-ops/tests/test-aws-oidc-workflow.sh b/claude-ops/tests/test-aws-oidc-workflow.sh
new file mode 100755
index 00000000..2b05e91b
--- /dev/null
+++ b/claude-ops/tests/test-aws-oidc-workflow.sh
@@ -0,0 +1,51 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
+WORKFLOW="$ROOT/.github/workflows/aws-oidc-production-smoke.yml"
+
+pass=0
+fail=0
+
+ok() {
+ printf 'PASS: %s\n' "$1"
+ pass=$((pass + 1))
+}
+
+bad() {
+ printf 'FAIL: %s\n' "$1" >&2
+ fail=$((fail + 1))
+}
+
+expect_fixed() {
+ local description="$1"
+ local pattern="$2"
+ if grep -Fq -- "$pattern" "$WORKFLOW"; then
+ ok "$description"
+ else
+ bad "$description"
+ fi
+}
+
+expect_absent() {
+ local description="$1"
+ local pattern="$2"
+ if grep -Fq -- "$pattern" "$WORKFLOW"; then
+ bad "$description"
+ else
+ ok "$description"
+ fi
+}
+
+expect_fixed "workflow can be run on demand" "workflow_dispatch:"
+expect_fixed "OIDC token permission is present" "id-token: write"
+expect_fixed "production environment limits the token subject" "environment: production"
+expect_fixed "AWS credentials come from the pinned OIDC action" "uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a62c21074a494a76c791f7333f # v5"
+expect_absent "AWS credentials action is not pinned to a mutable tag" "uses: aws-actions/configure-aws-credentials@v5"
+expect_fixed "the scoped Claude Ops role is used" "role-to-assume: arn:aws:iam::410126241301:role/ClaudeOpsGitHubActionsRole"
+expect_fixed "the real production log group is queried" "--log-group-name /ecs/healify-api-prod"
+expect_absent "no static access key is referenced" 'secrets.AWS_ACCESS_KEY_ID'
+expect_absent "no static secret key is referenced" 'secrets.AWS_SECRET_ACCESS_KEY'
+
+printf '\n%d passed, %d failed\n' "$pass" "$fail"
+(( fail == 0 ))