Skip to content

Remove deprecated gcs.use-access-token from gcs filesystem#26941

Merged
ebyhr merged 1 commit into
trinodb:masterfrom
chenjian2664:remove_depr_use_access_token
Jan 8, 2026
Merged

Remove deprecated gcs.use-access-token from gcs filesystem#26941
ebyhr merged 1 commit into
trinodb:masterfrom
chenjian2664:remove_depr_use_access_token

Conversation

@chenjian2664
Copy link
Copy Markdown
Contributor

@chenjian2664 chenjian2664 commented Oct 14, 2025

Description

Now we recommend to use the gcs.auth-type instead

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

## Hive, Delta Lake, Iceberg, Hudi
* {{breaking}} Remove the deprecated `gcs.use-access-token` config property. ({issue}`26941`)

@cla-bot cla-bot Bot added the cla-signed label Oct 14, 2025
@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Oct 14, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR removes the deprecated gcs.use-access-token option from the GCS filesystem by marking it defunct, deleting its code paths and tests, and eliminating its documentation reference.

Entity relationship diagram for GCS filesystem config properties after removal of gcs.use-access-token

erDiagram
    GCS_FILE_SYSTEM_CONFIG {
        string gcs_auth_type
        string gcs_json_key
        string gcs_json_key_file_path
    }
Loading

Class diagram for GcsFileSystemConfig after removal of deprecated access token methods

classDiagram
class GcsFileSystemConfig {
  +AuthType authType
  +String jsonKey
  +String jsonKeyFilePath
  +GcsFileSystemConfig setAuthType(AuthType authType)
  +String getJsonKey()
  +String getJsonKeyFilePath()
  +boolean isAuthMethodValid()
  -Optional<Boolean> useGcsAccessToken
  -boolean isUseGcsAccessToken()
  -GcsFileSystemConfig setUseGcsAccessToken(boolean useGcsAccessToken)
  -boolean isAuthTypeAndGcsAccessTokenConfigured()
}
class AuthType {
}
GcsFileSystemConfig --> AuthType
Loading

File-Level Changes

Change Details Files
Remove deprecated gcs.use-access-token configuration handling
  • Add @DefunctConfig for gcs.use-access-token
  • Delete isUseGcsAccessToken, setUseGcsAccessToken, and associated field
  • Remove validation method isAuthTypeAndGcsAccessTokenConfigured
lib/trino-filesystem-gcs/src/main/java/io/trino/filesystem/gcs/GcsFileSystemConfig.java
Cleanup test cases removing deprecated access-token tests
  • Remove default config mapping of use-access-token
  • Drop backwards-compatibility and explicit mapping tests for gcs.use-access-token
  • Eliminate validation assertions combining auth-type and access-token
lib/trino-filesystem-gcs/src/test/java/io/trino/filesystem/gcs/TestGcsFileSystemConfig.java
Delete documentation reference for gcs.use-access-token
  • Remove deprecated property entry from GCS filesystem docs
docs/src/main/sphinx/object-storage/file-system-gcs.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions github-actions Bot added the docs label Oct 14, 2025
@chenjian2664 chenjian2664 marked this pull request as draft October 14, 2025 09:15
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@chenjian2664 chenjian2664 force-pushed the remove_depr_use_access_token branch from 8ca2e60 to 337476b Compare October 26, 2025 08:57
@chenjian2664 chenjian2664 marked this pull request as ready for review October 26, 2025 08:58
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@github-actions
Copy link
Copy Markdown

This pull request has gone a while without any activity. Ask for help on #core-dev on Trino slack.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 8, 2025

Closing this pull request, as it has been stale for six weeks. Feel free to re-open at any time.

@github-actions github-actions Bot closed this Dec 8, 2025
@chenjian2664 chenjian2664 reopened this Dec 11, 2025
@github-actions github-actions Bot removed the stale label Dec 11, 2025
@ebyhr
Copy link
Copy Markdown
Member

ebyhr commented Dec 19, 2025

Could you rebase on master to resolve conflicts?

@chenjian2664 chenjian2664 force-pushed the remove_depr_use_access_token branch 4 times, most recently from eb40590 to 78ab812 Compare December 21, 2025 15:49
@chenjian2664 chenjian2664 force-pushed the remove_depr_use_access_token branch from 78ab812 to f0c81d7 Compare January 8, 2026 05:00
@ebyhr
Copy link
Copy Markdown
Member

ebyhr commented Jan 8, 2026

/test-with-secrets sha=f0c81d73a918612656d6df705de4916f66087037

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/20806168880

@ebyhr ebyhr merged commit d895812 into trinodb:master Jan 8, 2026
66 of 67 checks passed
@github-actions github-actions Bot added this to the 480 milestone Jan 8, 2026
@chenjian2664 chenjian2664 deleted the remove_depr_use_access_token branch January 11, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants