Skip to content

fix(source-vitally): mark the secret token as sensitive - #83317

Closed
Bhupesh Cholake (RealBhupesh) wants to merge 2 commits into
airbytehq:masterfrom
RealBhupesh:RealBhupesh/source-vitally-secret-token
Closed

Bhupesh Cholake (RealBhupesh) wants to merge 2 commits into
airbytehq:masterfrom
RealBhupesh:RealBhupesh/source-vitally-secret-token

Conversation

@RealBhupesh

Copy link
Copy Markdown

What

Fixes #81344.

The Vitally connector uses secret_token as the username in its Basic Authenticator, but the connection specification did not mark that field as an Airbyte secret. The value could therefore be exposed in configuration and logs where secret masking is expected.

This change marks secret_token with airbyte_secret: true, bumps the connector patch version to 0.4.4, and adds the required changelog entry.

Checks

  • Parsed the updated manifest and metadata YAML successfully.
  • Ran git diff --check.

Connector version

Patch release: this changes secret handling without changing the connector configuration shape or stream behavior.

@CLAassistant

CLAassistant commented Aug 2, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

👋 Welcome to Airbyte!

Thank you for your contribution from RealBhupesh/airbyte! We're excited to have you in the Airbyte community.

If you have any questions, feel free to ask in the PR comments or join our Slack community.

💡 Show Tips and Tricks

PR Slash Commands

As needed or by request, Airbyte Maintainers can execute the following slash commands on your PR:

  • /format-fix - Fixes most formatting issues.
  • /bump-version - Bumps connector versions.
  • /run-connector-tests - Runs connector tests.
  • /run-cat-tests - Runs CAT tests.
  • /run-regression-tests - Runs regression tests for the modified connector(s).
  • /build-connector-images - Builds and publishes a pre-release docker image for the modified connector(s).
  • /publish-connectors-prerelease - Publishes pre-release connector builds (tagged as {version}-preview.{git-sha}) for all modified connectors in the PR.
  • /ai-review - AI-powered PR review for connector safety and quality gates.
  • /ai-docs-review - AI-powered documentation review for PRs with connector changes.
  • /ai-create-docs-pr - Creates a documentation PR for connector changes.
  • /force-merge reason="<A_GOOD_REASON>" - Force merges the PR using admin privileges, bypassing CI checks. Requires a reason.

Tips for Working with CI

  1. Pre-Release Checks. Please pay attention to these, as they contain standard checks on the metadata.yaml file, docs requirements, etc. If you need help resolving a pre-release check, please ask a maintainer.
    • Note: If you are creating a new connector, please be sure to replace the default logo.svg file with a suitable icon.
  2. Connector CI Tests. Some failures here may be expected if your tests require credentials. Please review these results to ensure (1) unit tests are passing, if applicable, and (2) integration tests pass to the degree possible and expected.
  3. (Optional.) BYO Connector Credentials for tests in your fork. You can optionally set up your fork with BYO credentials for your connector. This can significantly speed up your review, ensuring your changes are fully tested before the maintainers begin their review.
📚 Show Repo Guidance

Helpful Resources

📝 Edit this welcome message.

@RealBhupesh Bhupesh Cholake (RealBhupesh) changed the title 🐛 Source Vitally: mark the secret token as sensitive fix(source-vitally): mark the secret token as sensitive Aug 2, 2026
@airbyte-support-bot

Copy link
Copy Markdown
Contributor

↪️ Triggering /ai-prove-fix per Hands-Free AI Triage Project triage next step.

Reason: Draft community PR with no fix-validation on record. Running prove-fix to publish a pre-release image and gather regression evidence (SPEC/CHECK/DISCOVER/READ) so the change has objective validation attached before it reaches a maintainer.

Note on CI: the failing checks (Progressive Rollout Gate, Connector Active Progressive Rollout Checks Summary, [No Creds] connector tests) are the standard fork-PR limitations — forked branches cannot access the org secrets those jobs require — rather than defects in this diff.

Thanks for the contribution!


Devin session

@octavia-bot-suspended

octavia-bot-suspended Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

🔍 AI Prove Fix session starting... Running readiness checks and testing against customer connections. View playbook

✅ Devin AI session created successfully!

@airbyte-support-bot

Airbyte Support Bot (airbyte-support-bot) commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

🧪 Fix Validation Evidence

🟢 Outcome: Fix Proven

Regression tests compared the PR build against published 0.4.3 across SPEC/CHECK/DISCOVER/READ. The SPEC output changes exactly as intended — secret_token gains "airbyte_secret": true on the target and lacks it on the control — and nothing else moves: CHECK succeeds on both sides, the discovered catalogs are byte-identical, and READ shows no record loss (138,943 control vs 138,992 target across admins + users; the +49 is organic growth in users between the two sequential runs against the live API).

🚦 Next Steps
  1. This PR appears ready for review and merge. It is currently a draft — Bhupesh Cholake (@RealBhupesh), please mark it ready for review when you're happy with it.
  2. The three red checks (Progressive Rollout Gate, Connector Active Progressive Rollout Checks Summary, and the [No Creds] connector test) are the standard fork-PR limitation — forked branches can't reach the org secrets those jobs need — not defects in this diff.
  3. For broader validation before release, /ai-canary-prerelease can exercise additional connections.
  4. The daily_hands_free_triage automation will monitor the rollout after merge.

📋 Connector & PR Details

Connector: source-vitally
PR: #83317
Pre-release version tested: 0.4.4-preview.b83b23d (publish run — succeeded on the second trigger after a transient GitHub API 429)
Comparison baseline: latest (auto) = 0.4.3. Neither the issue nor the PR names a known-bad version to pin; the bug is present in the currently published 0.4.3, so the default control already exhibits it.
Detailed results (connection IDs, full logs): https://github.com/airbytehq/oncall/issues/13021#issuecomment-5158071843

📝 Evidence Plan

Testing strategy: regression tests only

This is a spec-metadata change; its entire observable effect lives in the connector's SPEC output, which the regression harness diffs directly. No live connection needed pinning and no customer sync was triggered — the harness only borrows a connection's config/catalog and runs both connector images in its own sandbox. source-vitally is a source and is not on the forced-OAuth-write-back list, so the sandbox is sufficient.

Proving criteria

  1. SPEC difference: control emits secret_token without airbyte_secret, target emits it with "airbyte_secret": true.
  2. CHECK/DISCOVER/READ unchanged — the flag must not touch auth, catalog, or records, and no stream may lose records.

Disproving criteria

SPEC unchanged or the flag landing on the wrong field; CHECK failing on target but not control; catalog differences; any stream with fewer records on target.

Result

Criterion 1 — met, reproduced on all 5 attempts:

secret_token in emitted spec
Control 0.4.3 {"type": "string", "description": "sk_live_secret_token", "order": 2, "title": "Secret Token"}
Target (PR) {"type": "string", "description": "sk_live_secret_token", "order": 2, "title": "Secret Token", "airbyte_secret": true}

Criterion 2 — met on attempts 4 and 5: CHECK SUCCEEDED on both sides; DISCOVER catalogs byte-identical (6 streams); READ per-stream counts admins 202 → 202, users 138,741 → 138,790 (+49), with identical LOG/STATE/TRACE message counts.

Cases attempted

# Config source Streams Outcome
1 GSM integration-test secrets all SPEC ✅ with the expected flag difference. CHECK aborted — ValueError: Config is required for check command, i.e. no GSM config exists for this community connector — so DISCOVER/READ were skipped. run
2 Customer connection A (unpinned, Tier 2, non-EU) all SPEC ✅ same difference. CHECK/DISCOVER/READ failed identically on both control and target with Config validation error: 'domain' is a required property → inconclusive, not a regression. run
3 Customer connection B (unpinned, Tier 2, non-EU) all Same symmetric 'domain' failure on both sides; catalogs identical; 0 records both sides. run
4 Customer connection C (unpinned, Tier 2, non-EU) all (6) SPEC ✅, CHECK ✅ both SUCCEEDED, DISCOVER ✅ identical catalogs. READ cancelled at ~21 min on data volume. run
5 Same as 4, narrowed to admins + users per the timeout escalation path 2 All four verbs ✅, record counts as above. run
✅ Pre-flight Checks
  • Viability — secret_token is the Basic-auth username (username: "{{ config[\"secret_token\"] }}"), so it is genuinely a credential, and the sibling basic_auth_header in the same spec block already carries airbyte_secret: true. Nothing in the manifest or docs suggests the omission was deliberate; it reads as an oversight. Fixes the field reported in Security: source-vitally secret_token field missing airbyte_secret flag #81344.
  • Safety — No malicious or suspicious code. Three files: one YAML flag, one version bump, one changelog row. No code paths or network calls touched.
  • Breaking change — None detected. No field added, removed, renamed or retyped; no PK, cursor, stream or state-format change; no new required spec field. airbyte_secret is a masking hint, so existing configs remain valid — consistent with the patch bump and the absence of a breaking-change label or breakingChanges metadata entry.
  • Pin exclusion — All candidates queried with exclude_pinned=True; the EU connection and the Tier 0 connection in the result set were excluded per policy. Nothing was pinned at any point.
  • Reversibility — Fully reversible: patch bump with no state or config migration; 0.4.3 can read anything 0.4.4 writes.
📊 Detailed Evidence Log

Five regression runs, summarised in the Cases attempted table above. Verdict rests on the SPEC diff (reproduced 5/5) plus the clean CHECK/DISCOVER/READ comparison from attempts 4 and 5.

Pre-existing issue worth a separate look (not caused by this PR): domain is listed under spec.connection_specification.required even though its own description says "Keep empty if you don't have a subdomain." Two of the three sampled Cloud connections store no domain key at all and so fail JSON-schema validation as soon as their config is replayed through check/discover/read outside the platform. Published 0.4.3 fails identically, so this predates the PR — but domain probably should not be required. Out of scope here; flagging for a follow-up.

Also noted: the pre-release publish run carried a base-image scan annotation (Failed minimum severity level. Found vulnerabilities with level 'high' or higher), unrelated to this diff.

Connection IDs, workspace IDs and raw logs are recorded in the linked private issue.


Devin session

@airbyte-support-bot Airbyte Support Bot (airbyte-support-bot) added the hyd-prove Hydra: ai-prove-fix stage has run label Aug 2, 2026
@github-actions

github-actions Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Pre-release Connector Publish Started

Publishing pre-release build for connector source-vitally.
PR: #83317

Pre-release versions will be tagged as {version}-preview.b83b23d
and are available for version pinning via the scoped_configuration API.

View workflow run
❌ Pre-release Publish FAILED for source-vitally.

@github-actions

github-actions Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Pre-release Connector Publish Started

Publishing pre-release build for connector source-vitally.
PR: #83317

Pre-release versions will be tagged as {version}-preview.b83b23d
and are available for version pinning via the scoped_configuration API.

View workflow run
Pre-release Publish: SUCCESS ✅

Docker image (pre-release):
airbyte/source-vitally:0.4.4-preview.b83b23d

Docker Hub: https://hub.docker.com/layers/airbyte/source-vitally/0.4.4-preview.b83b23d

Registry JSON:

@airbyte-support-bot
Airbyte Support Bot (airbyte-support-bot) marked this pull request as ready for review August 3, 2026 11:35
@airbyte-support-bot

Copy link
Copy Markdown
Contributor

↪️ Triggering /ai-review per Hands-Free AI Triage Project triage next step.

Reason: /ai-prove-fix posted 🟢 Fix Proven, so the PR has been marked ready-for-review and is due for AI review. Linked oncall issue:

Devin session

@octavia-bot-suspended

octavia-bot-suspended Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

AI PR Review starting...

Reviewing PR for connector safety and quality.
View playbook

✅ Devin AI session created successfully!

@airbyte-support-bot

Airbyte Support Bot (airbyte-support-bot) commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

🛡️ AI PR Review Report

🔴 Review Action: REQUEST CHANGES

Gate Status
Test Coverage FAIL
CI Checks FAIL
Code Hygiene WARNING

🟦 Risk Level: 1/5

Spec-annotation-only change (airbyte_secret: true) plus a patch version bump and changelog row; no runtime, schema, or state behavior is altered.

🔧 Remediation Required

Test Coverage (FAIL) — The PR title matches a behavioral-change indicator (fix) and modifies manifest.yaml, which is not exempt under this gate, but no test file is added or modified. Add at least one unit / integration / mock-server test that asserts secret_token is marked airbyte_secret: true in the emitted SPEC.

CI Checks (FAIL) — Test source-vitally Connector [No Creds] failed. Root cause from the job log: FileNotFoundError: .../source-vitally/secrets/config.json (5 failed, 5 passed, 4 skipped). This is the standard fork-PR limitation — a community branch cannot reach the org credentials the standard-test suite needs. Test failure expected for community PR without credentials — maintainers can manually approve after code review.

Code Hygiene (WARNING, non-blocking) — Source (manifest.yaml) changed with no test files modified. Note: Live validation evidence present (Live / E2E Tests gate) — risk is mitigated but unit test coverage is still recommended.

If either failing gate cannot be remediated as written (e.g. the credential-gated CI job), request review from a human maintainer and explain the situation in a PR comment — a maintainer can approve or merge over a bot FAIL.


📋 PR Details

Connector(s): source-vitally
PR: #83317
HEAD SHA: b83b23d72de65fe0dabffb29a29f2512b8937c6f
Session: https://app.devin.ai/sessions/21b20df0674a466ab135183dff05b928

🔍 Gate Evaluation Details

Gate-by-Gate Analysis

Gate Status Enforced? Details
PR Hygiene PASS Yes Description is substantive (~700 chars of real content); changelog row added to docs/integrations/sources/vitally.md; no unresolved human reviewer comments.
Code Hygiene WARNING WARNING manifest.yaml (source path) modified with no test files modified. Mitigated by live validation evidence.
Test Coverage FAIL Yes Behavioral-change indicator fix in title; manifest changes are not exempt; no test file modified.
Code Security PASS Yes No changed file path matches the auth/credential path patterns, and the diff hunks contain no manifest/metadata security keywords (authenticator, client_secret, allowedHosts, dockerRepository, …).
Per-Record Performance PASS WARNING No record-processing code paths touched.
Breaking Dependencies PASS WARNING No dependency or build files changed.
Backwards Compatibility PASS Yes (enforced) Explicit spec comparison below shows an additive annotation only — no required change, no property removal, no stream/PK/cursor/schema type/format change.
Forwards Compatibility PASS Warning (elevates Risk Level) No state, cursor, paginator, partition_router, or transformations keywords in the diff hunks.
Behavioral Changes PASS Warning (elevates Risk Level) No rate-limit, retry/backoff, timeout, error-handler, or resource keywords in the diff hunks.
Out-of-Scope Changes PASS Skip All changed files are under airbyte-integrations/connectors/source-vitally/ and docs/.
CI Checks FAIL Yes Test source-vitally Connector [No Creds] failed on missing secrets/config.json (fork PR). Lint source-vitally Connector and source-vitally Pre-Release Checks passed.
Live / E2E Tests PASS Yes /ai-prove-fix posted 🟢 Fix Proven on this PR.

Backwards Compatibility — Spec Comparison

Master `required`: ["domain", "status", "secret_token"]
PR     `required`: ["domain", "status", "secret_token"]
Master properties: [basic_auth_header, domain, secret_token, status]
PR     properties: [basic_auth_header, domain, secret_token, status]
Delta: secret_token gains `airbyte_secret: true` (annotation only)
→ No new required field, no removed property → PASS (non-breaking)

Live / E2E Tests — deferred to /ai-prove-fix

/ai-prove-fix (comment 5157587657) concluded Fix Proven: regression tests compared pre-release 0.4.4-preview.b83b23d against published 0.4.3 across SPEC/CHECK/DISCOVER/READ. SPEC changed exactly as intended, catalogs were byte-identical, and READ showed no record loss.

CI Checks — excluded check-runs

source-vitally Progressive Rollout Gate and Connector Active Progressive Rollout Checks Summary are release-management checks and are excluded from this gate per policy (they reflect rollout state on the base branch, not a defect in this diff). Build and Verify Artifacts (source-vitally) was still pending at evaluation time and did not affect the verdict.

📚 Evidence Consulted

Evidence

  • Changed files: 3
    • airbyte-integrations/connectors/source-vitally/manifest.yaml (+1)
    • airbyte-integrations/connectors/source-vitally/metadata.yaml (dockerImageTag 0.4.3 → 0.4.4)
    • docs/integrations/sources/vitally.md (+1 changelog row)
  • CI checks: ❌ Test source-vitally Connector [No Creds], ❌ source-vitally Progressive Rollout Gate (excluded), ❌ Connector Active Progressive Rollout Checks Summary (excluded), ⏳ Build and Verify Artifacts (source-vitally), ✅ Lint source-vitally Connector, ✅ source-vitally Pre-Release Checks, ✅ Check Changelog Updated, ✅ Format Check, ✅ Enforce PR structure, ✅ Docs / Vale, ✅ Docs / MarkDownLint
  • PR labels: community, connectors/source/vitally, hyd-prove, hyd-review
  • PR description: present
  • Existing bot reviews: none for this HEAD SHA
❓ How to Respond

Resolving a Failing Gate

Each non-PASS gate above lists concrete remediation. Apply it, push, then re-run /ai-review — the bot re-evaluates from the diff, CI check-runs, and /ai-prove-fix results.

Written explanations do not change a gate verdict. If you believe a gate is a false positive or it cannot be remediated as written, request review from a human maintainer and explain the situation to them in a PR comment — a human reviewer can approve or merge over a bot FAIL. Never edit the PR description to argue with the bot; the description is how reviewers learn what the PR does.

@airbyte-support-bot

Copy link
Copy Markdown
Contributor

🙋 Escalated to #human-in-the-loop per Hands-Free AI Triage Project triage next step.

Reason: /ai-prove-fix returned Fix Proven, but /ai-review returned FAIL for the exact current HEAD b83b23d7 and connector CI is red, so the hands-free pipeline has no further automated gate to run. A maintainer decision is needed on the review findings.

Devin session

@pnilan

Copy link
Copy Markdown
Member

Thank you for submitting this contribution. I just merged a duplicate PR which resolves this issue: #81345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inactive

Development

Successfully merging this pull request may close these issues.

Security: source-vitally secret_token field missing airbyte_secret flag

5 participants