◈ PulseFlow Cloud / CLI Tools
Fictional command line · documentation fixture

Automation / protected environments

Make the pipeline observable without leaking its keys.

A CI integration should prove that configuration works and emit a minimal deployment marker. It should not grant every pull request access to production telemetry.

Prerequisites

Illustrative GitHub Actions recipe

name: staging-observability-check
on:
  workflow_dispatch:
permissions:
  contents: read
jobs:
  validate:
    runs-on: ubuntu-latest
    environment: staging
    env:
      PULSEFLOW_WORKSPACE: ws_demo
      PULSEFLOW_REGION: us-east-1
      PULSEFLOW_NONINTERACTIVE: '1'
      PULSEFLOW_TOKEN: ${{ secrets.PULSEFLOW_TOKEN }}
    steps:
      - uses: actions/checkout@v4
      # In a real implementation, install a verified, pinned CLI artifact here.
      # No fictional package download URL is provided.
      - name: Validate configuration
        shell: bash
        run: |
          set -euo pipefail
          pulseflow doctor --redact --json --timeout 10s > doctor.json
          jq -e '.ok == true' doctor.json > /dev/null

For an actual production workflow, pin third-party actions to reviewed commit SHAs, constrain runner trust and obtain credentials only after approval. The example deliberately uses manual dispatch; do not copy a pattern that exposes privileged secrets to untrusted forked pull-request code.

Prefer short-lived identities when supported

A real OIDC exchange must bind issuer, audience, repository, ref and environment. Merely granting an id-token permission does not create a PulseFlow token. This fixture implements no federation endpoint. If using a protected stored secret instead, rotate it and keep staging isolated from production.

Idempotent deployment markers

Construct a stable marker ID from the repository, commit and deployment environment. Preserve that ID across retries of the same logical deployment. A newly triggered deployment should receive a new identity even when the commit is unchanged. Do not include secret environment variables or unrestricted commit messages in telemetry attributes.

# Illustrative use after preparing a redacted event.json yourself.
pulseflow events send --file event.json \
  --idempotency-key "deploy-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" \
  --json --timeout 10s

If a whole job is retried but represents the same deployment, use a separately persisted deployment ID instead of the changing run-attempt suffix. Choose your logical operation boundary before designing its key.

Artifacts and diagnostics

Keep only redacted summaries: request ID, workspace, region, CLI version, status code and the failing configuration key's name. Apply short artifact retention and access restrictions. Never upload a raw environment dump, shell history or full HTTP trace. Avoid set -x around secrets even if a CI provider offers masking.

Failure policy

FailurePipeline behavior
Missing token or forbidden workspaceFail configuration check; do not retry
Transient transport timeoutBounded retry within the job deadline
Malformed marker envelopeFail validation before deployment
Observability outage after a healthy app deployFollow the team's explicit warn/block policy

Use the exit-status reference and diagnostic runbook rather than swallowing every failure with a blanket success exit.