スキル一覧に戻る
terrylica

clickhouse-cloud-credentials

by terrylica

ClickHouse-based cryptocurrency data collection with zero-gap guarantee. 22x faster via Binance public repository with persistent database storage, USDT-margined futures support, and production-ready ReplacingMergeTree schema.

0🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: clickhouse-cloud-credentials description: Store ClickHouse Cloud credentials in Doppler + 1Password for gapless-crypto-clickhouse. Use when setting up new services, rotating credentials, or backing up authentication material. Covers API keys, connection details, and database password storage.

ClickHouse Cloud Credentials

Establish dual credential storage pattern (Doppler + 1Password) for ClickHouse Cloud authentication.

Purpose

Store and backup ClickHouse Cloud credentials in two secure locations:

  1. Doppler (aws-credentials/prd project) - Runtime environment variables
  2. 1Password (Engineering vault) - Secure backup and team access

This skill guides the workflow of storing 8 required credentials for gapless-crypto-clickhouse service.

When to Use

Use this skill when:

  • New service setup: Initial credential storage for new ClickHouse Cloud service
  • Credential rotation: Updating API keys or database passwords
  • Backup verification: Ensuring credentials exist in both storage locations
  • Team onboarding: Documenting required credentials for new team members

Triggers: User mentions "store credentials", "Doppler", "1Password", "ClickHouse API keys", "credential rotation"

Prerequisites

Credentials to Store:

  • API Key ID and Secret (from ClickHouse Cloud console)
  • Organization ID (from ClickHouse Cloud API)
  • Service ID (gapless-crypto-clickhouse service)
  • Connection parameters (host, port, user, password)

Required Access:

  • Doppler CLI access to aws-credentials/prd project
  • 1Password CLI (op) access to Engineering vault

Credential Schema

Doppler Secrets (aws-credentials/prd)

8 required secrets:

Secret NameDescriptionExample Format
CLICKHOUSE_CLOUD_KEY_IDAPI Key IDxnIdJM3n42LDImsZ9zzg
CLICKHOUSE_CLOUD_KEY_SECRETAPI Key Secret(secured, ~40 chars)
CLICKHOUSE_CLOUD_ORG_IDOrganization UUID2404d339-6921-4f1c-bf80-b07d5e23b91a
CLICKHOUSE_CLOUD_SERVICE_IDService UUIDa3163f31-21f4-4e22-844e-ef3fbc26ace2
CLICKHOUSE_HOSTService hostnameebmf8f35lu.us-west-2.aws.clickhouse.cloud
CLICKHOUSE_PORTHTTPS port8443
CLICKHOUSE_USERDatabase userdefault
CLICKHOUSE_PASSWORDDatabase password(secured, from console)

See: references/doppler-schema.md for detailed descriptions

1Password Item (Engineering Vault)

Vault: Engineering (fnzrqcsl3pl3bcdojrxf46whnu) Item Title: "ClickHouse Cloud - gapless-crypto-cli"

8 required fields:

Field NameTypeDescription
usernametextAPI Key ID
credentialconcealedAPI Key Secret
organization_idtextOrganization UUID
organization_nametext"TE's Organization"
service_idtextService UUID
service_nametext"gapless-crypto-cli"
database_passwordpasswordDatabase password
console_urlurlhttps://clickhouse.cloud/

See: references/onepassword-schema.md for detailed specifications

Workflow

Step 1: Store API Credentials in Doppler

# Store API Key ID and Secret
doppler secrets set CLICKHOUSE_CLOUD_KEY_ID "<key_id>" --project aws-credentials --config prd
doppler secrets set CLICKHOUSE_CLOUD_KEY_SECRET "<key_secret>" --project aws-credentials --config prd

Step 2: Store Organization and Service Metadata in Doppler

# Store IDs
doppler secrets set CLICKHOUSE_CLOUD_ORG_ID "<org_id>" --project aws-credentials --config prd
doppler secrets set CLICKHOUSE_CLOUD_SERVICE_ID "a3163f31-21f4-4e22-844e-ef3fbc26ace2" --project aws-credentials --config prd

Step 3: Store Connection Details in Doppler

# Store connection parameters
doppler secrets set CLICKHOUSE_HOST "ebmf8f35lu.us-west-2.aws.clickhouse.cloud" --project aws-credentials --config prd
doppler secrets set CLICKHOUSE_PORT "8443" --project aws-credentials --config prd
doppler secrets set CLICKHOUSE_USER "default" --project aws-credentials --config prd
doppler secrets set CLICKHOUSE_PASSWORD "<db_password>" --project aws-credentials --config prd

Step 4: Backup Credentials in 1Password

# Create 1Password item with all fields
op item create --vault Engineering \
  --category "API Credential" \
  --title "ClickHouse Cloud - gapless-crypto-cli" \
  username="<key_id>" \
  credential="<key_secret>" \
  "organization_id[text]=<org_id>" \
  "organization_name[text]=TE's Organization" \
  "service_id[text]=a3163f31-21f4-4e22-844e-ef3fbc26ace2" \
  "service_name[text]=gapless-crypto-cli" \
  "database_password[password]=<db_password>" \
  "console_url[url]=https://clickhouse.cloud/"

Step 5: Verify Storage

# Verify Doppler secrets (names only)
doppler secrets --project aws-credentials --config prd --only-names | grep CLICKHOUSE

# Verify 1Password item
op item get "ClickHouse Cloud - gapless-crypto-cli" --vault Engineering

Success Criteria

  • ✅ All 8 secrets stored in Doppler (aws-credentials/prd)
  • ✅ All 8 fields stored in 1Password (Engineering vault)
  • ✅ No plaintext credentials in version control
  • ✅ Credentials accessible via Doppler CLI
  • ✅ Backup accessible via 1Password CLI

Security Notes

  1. No secrets in code: Reference Doppler key names, never hardcode values
  2. Dual storage: Doppler for runtime, 1Password for backup and team access
  3. Credential rotation: Update both Doppler and 1Password when rotating
  4. Access control: Doppler and 1Password enforce team-based access controls
  5. Audit trail: Both systems log credential access for security monitoring

Troubleshooting

Issue: "Doppler secrets not found"

  • Check: Verify project name aws-credentials and config prd
  • Verify: doppler projects list shows project exists

Issue: "1Password vault not accessible"

  • Check: Engineering vault ID: fnzrqcsl3pl3bcdojrxf46whnu
  • Verify: op vault list shows Engineering vault

Issue: "Credential format incorrect"

  • Check: API Key ID format (example: xnIdJM3n42LDImsZ9zzg)
  • Verify: UUIDs are valid format (8-4-4-4-12 hex digits)

References

Next Steps

After credential storage, proceed to:

  1. clickhouse-cloud-connection - Test connection using stored credentials

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です