Skip to content

fix(database-integrations): add missing auth types to schema - #142

Merged
saltenasl merged 1 commit into
mainfrom
ls/fix-integration-schema
Nov 12, 2025
Merged

saltenasl merged 1 commit into
mainfrom
ls/fix-integration-schema

Conversation

@saltenasl

@saltenasl saltenasl commented Nov 12, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

Release Notes

  • New Features
    • Expanded authentication method support for database integrations:
      • BigQuery: Added service account authentication option
      • Redshift: Added IAM role and username/password authentication options
      • Snowflake: Added password, Azure, and service account key pair authentication options

@saltenasl
saltenasl requested a review from a team as a code owner November 12, 2025 11:27
@coderabbitai

coderabbitai Bot commented Nov 12, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This change widens the federated authentication method enums accepted by three database integrations. BigQuery now allows both 'service-account' and 'google-oauth' instead of just 'google-oauth'. Redshift expands to accept 'username-and-password', 'iam-role', and 'individual-credentials'. Snowflake adds 'password' and 'service-account-key-pair' to its existing methods. The type imports shift from FederatedAuthMethod to more specific combinations including AwsAuthMethod. All fields remain optional.

Sequence Diagram(s)

This section is not applicable—the changes are schema updates without new control flow.

Possibly related PRs

Suggested reviewers

  • Artmann

Pre-merge checks

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Title clearly summarizes the main change: adding missing authentication types to the database integration schema.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Nov 12, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.41%. Comparing base (02389a7) to head (d17a06d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #142   +/-   ##
=======================================
  Coverage   95.41%   95.41%           
=======================================
  Files          26       26           
  Lines         742      742           
  Branches      223      223           
=======================================
  Hits          708      708           
  Misses         34       34           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 02389a7 and d17a06d.

📒 Files selected for processing (1)
  • packages/database-integrations/src/database-integration-config.ts (3 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
packages/*/src/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

packages/*/src/**/*.{ts,tsx}: Use strict type checking and prefer type safety over convenience
Use const for immutable values
Avoid any; use proper type definitions and type guards

Files:

  • packages/database-integrations/src/database-integration-config.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Follow Biome's lint rules as configured in biome.json
Use literal keys (dot notation) instead of bracket notation when possible
Prefer single quotes for strings (except when avoiding escapes)

Files:

  • packages/database-integrations/src/database-integration-config.ts
packages/*/src/**/*

📄 CodeRabbit inference engine (CLAUDE.md)

Place source code under packages/*/src/

Files:

  • packages/database-integrations/src/database-integration-config.ts
🧬 Code graph analysis (1)
packages/database-integrations/src/database-integration-config.ts (1)
packages/database-integrations/src/index.ts (4)
  • BigQueryAuthMethod (33-33)
  • DatabaseAuthMethod (35-35)
  • AwsAuthMethod (31-31)
  • SnowflakeAuthMethod (41-41)
🔇 Additional comments (3)
packages/database-integrations/src/database-integration-config.ts (3)

5-5: Import needed for Redshift union.

The AwsAuthMethod import is correctly added and used in the Redshift schema.


102-114: The enum covers all SnowflakeAuthMethod values. The constant defines exactly six methods, and all six are present in the enum list.


30-35: No issues found—enum is complete.

BigQueryAuthMethods constant has exactly two values: 'service-account' and 'google-oauth'. The enum in the zod schema matches these precisely, and the satisfies clause correctly enforces type safety. The comment accurately reflects that all BigQueryAuthMethod values are accepted.

@saltenasl
saltenasl merged commit 5bd8ee1 into main Nov 12, 2025
@saltenasl
saltenasl deleted the ls/fix-integration-schema branch November 12, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant