Skip to content

[yaml] - Expose secret_manager option across Oracle and SQL Server YAML templates - #4656

Open
derrickaw wants to merge 3 commits into
mainfrom
yaml-drift/jdbc-write-secret-manager
Open

derrickaw wants to merge 3 commits into
mainfrom
yaml-drift/jdbc-write-secret-manager

Conversation

@derrickaw

@derrickaw derrickaw commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:

  • The PR resolves YAML blueprint parameter drift tracked in YAML Blueprint Config Parameter Drift Report #4425 against the published Apache Beam YAML Transform Index
  • Any new/updated blueprint parameter preserves lossless Dataflow Job Builder Form loading and round-tripping (or is paired 1:1 with its companion Job Builder form update)
  • Java template interfaces (generate_yaml_java_templates.py), Spotless, Checkstyle, and unit tests have been verified

If you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)

Summary

  • Expose the documented optional secret_manager parameter (secretManager) across all Oracle and SQL Server JDBC YAML blueprints (OracleToBigQuery, OracleToIceberg, IcebergToOracle, SQLServerToBigQuery, SQLServerToIceberg, and IcebergToSQLServer), defining secretManager in {oracle,sqlserver}_common_options.
  • Regenerate the corresponding 6 *Yaml.java template parameter interfaces.
  • Split by database from [yaml] - Expose secret_manager option across MySQL, PostgreSQL, and AlloyDB YAML templates #4592 (which covers MySQL, PostgreSQL, and AlloyDB) with zero file overlap so both PRs stay small and independent.

Part of #4425 (#4425).

Testing

  • Verified generated Java interfaces (generate_yaml_java_templates.py), Spotless, Checkstyle, mvn compile -pl yaml -am, and generate_yaml_java_templates_test.py.
  • Verified secret_manager parameter drift rows are resolved across all 6 Oracle and SQL Server YAML blueprints.
@derrickaw derrickaw added the addition New feature or request label Nov 30, 2026
@derrickaw

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces a new secretManager parameter to several Iceberg-to-database templates (AlloyDB, MySQL, Oracle, PostgreSQL, and SQLServer) to support fetching database credentials securely. The changes span Java interface definitions, Python options configuration files, and the main pipeline YAML templates. The reviewer suggests a structural improvement: moving the secretManager parameter from the write-specific options to the common options block (e.g., alloydb_common_options) in the Python options YAML files. This avoids duplication, logically groups the parameter with the credentials it manages, and ensures automatic inheritance. Additionally, the reviewer notes that Java template files should be regenerated using the generation script after updating the source YAML files.

@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.99%. Comparing base (876e6d5) to head (cbf0237).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #4656      +/-   ##
============================================
+ Coverage     37.79%   37.99%   +0.19%     
- Complexity      521      533      +12     
============================================
  Files           197      197              
  Lines         12031    12055      +24     
  Branches       1238     1239       +1     
============================================
+ Hits           4547     4580      +33     
+ Misses         7110     7100      -10     
- Partials        374      375       +1     
Components Coverage Δ
spanner-templates ∅ <ø> (∅)
spanner-import-export ∅ <ø> (∅)
spanner-live-forward-migration ∅ <ø> (∅)
spanner-live-reverse-replication ∅ <ø> (∅)
spanner-bulk-migration ∅ <ø> (∅)
gcs-spanner-dv ∅ <ø> (∅)
see 1 file with indirect coverage changes
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
@derrickaw

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces a new optional secretManager parameter across multiple database-to-BigQuery and database-to-Iceberg YAML templates, updating the Java interfaces, Python options, and YAML pipeline configurations. A high-severity issue was identified in IcebergToMySQL.yaml regarding a parameter name mismatch for the write statement, which could prevent user-specified write statements from being correctly passed to the pipeline.

Comment thread yaml/src/main/yaml/IcebergToMySQL.yaml Resolved
@derrickaw derrickaw added the ready-for-human Draft PR checks passed and ready for human review label Nov 30, 2026
@derrickaw derrickaw changed the title [yaml] - Expose secret_manager option across JDBC write YAML templates Nov 30, 2026
@derrickaw derrickaw removed the ready-for-human Draft PR checks passed and ready for human review label Nov 30, 2026
@derrickaw

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces a new optional parameter, secretManager, across multiple YAML templates (including Iceberg, Oracle, SQL Server, and BigQuery integrations). This parameter allows users to specify a secret manager (such as GoogleCloudSecretManager or GoogleCloudHsmGeneratedSecretManager) for fetching secret values. The changes include updating the Java interface template parameters, Python options configurations, and the corresponding YAML pipeline definitions to support this new property. I have no additional feedback to provide as the changes are consistent and complete.

@derrickaw
derrickaw marked this pull request as ready for review November 30, 2026 19:16
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the Oracle and SQL Server JDBC YAML templates to include support for the 'secretManager' parameter. This change aligns the templates with the current Apache Beam YAML Transform Index, ensuring consistency and resolving parameter drift. The updates were applied systematically across all relevant Oracle and SQL Server to BigQuery/Iceberg blueprints, with corresponding Java interface regenerations to maintain compatibility.

Highlights

  • Secret Manager Integration: Exposed the optional 'secretManager' parameter across all Oracle and SQL Server JDBC YAML blueprints, including BigQuery and Iceberg variants.
  • Template Updates: Regenerated the corresponding Java template parameter interfaces and updated the common options configuration for Oracle and SQL Server.
  • Parameter Alignment: Resolved YAML blueprint parameter drift to ensure consistency with the Apache Beam YAML Transform Index.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces a new optional template parameter, secretManager, across several YAML-based templates (including Oracle and SQL Server integrations with BigQuery, Iceberg, and each other). This parameter allows users to specify a secret manager for fetching sensitive values. The changes span Java interface definitions, parameter ordering adjustments, Python options configuration, and pipeline YAML definitions. I have no additional feedback to provide as there are no review comments.

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

Labels

addition New feature or request size/L

1 participant