GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [google-auth-library-java] Serialization Issues: Auth Library transient keyword usage · Issue #12580 · googleapis/google-cloud-java

[google-auth-library-java] Serialization Issues: Auth Library transient keyword usage #12580

New issue
Copy link
New issue
Copy link
Open
Open
[google-auth-library-java] Serialization Issues: Auth Library transient keyword usage#12580
Copy link
Labels
priority: p4type: processA process-related concern. May include testing, release, or the like.

Description

@lqiu96
lqiu96
opened on Jun 9, 2025
Issue body actions

There have a few reports of the transient keyword resulting in Null Pointer Exceptions (NPE) when serializing credentials.

This ticket is to track the reports and see how much this is impacting users. We may need to investigate the usage of serializing the Credentials and certain transient fields.

Issues:

  • Flink app hosted in AWS trying to publish to GCP and throwing NPE at com.google.auth.oauth2.InternalAwsSecurityCredentialsSupplier.retrieveResource google-auth-library-java#1538
  • ExternalAccountCredentials serialization is broken google-auth-library-java#1347
  • b/416096444
  • [google-auth-library-java] external_account (AWS) Credentials NPE after Java deserialization: transient HttpTransportFactory not restored on refresh #14050

Artifact/ Proof of the Issue(s):

  • chore: demonstration of null calendar after reserialization of ImpersonatedCredentials google-auth-library-java#1772 - Calendar is transient and leads to a NPE when serializing

Activity

  1. lqiu96
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p3Desirable enhancement or fix. May not be included in next release.
    on Jun 9, 2025
  2. lqiu96
    added
    type: processA process-related concern. May include testing, release, or the like.
    priority: p4
    and removed
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p3Desirable enhancement or fix. May not be included in next release.
    on Jul 9, 2025
  3. chingor13
    changed the title [-]Serialization Issues: Auth Library transient keyword usage[/-] [+][google-auth-library-java] Serialization Issues: Auth Library transient keyword usage[/+] on Apr 1, 2026
  4. chingor13
    transferred this issue fromgoogleapis/google-auth-library-javaon Apr 1, 2026
  5. lqiu96 commented on Sep 2, 2026

    @lqiu96
    lqiu96
    on Sep 2, 2026
    MemberAuthor
    More actions

    I don't think we can remove the Serializable interface from the root abstract class Credential (

    google-cloud-java/google-auth-library-java/credentials/java/com/google/auth/Credentials.java

    Line 45 in d9381e3

    public abstract class Credentials implements Serializable {
    ).

    Is there a way that we can reduce the possible NPEs from serialization

  6. lqiu96
    added 5 commits that reference this issue on Sep 9, 2026

    fix(auth): fix serialization gaps in DownscopedCredentials and UrlIde…

    1d5d7aa

    fix(auth): fix serialization gaps in DownscopedCredentials and UrlIde…

    a44068e

    fix(auth): restore transportFactory upon deserialization in InternalA…

    beea42f

    fix(auth): fix serialization gaps in DownscopedCredentials and UrlIde…

    cee6fa5

    fix(auth): fix serialization gaps in DownscopedCredentials and UrlIde…

    147c4c3
  7. lqiu96
    added a commit that references this issue on Oct 14, 2026

    fix(auth): fix serialization gaps in DownscopedCredentials and UrlIde…

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p4type: processA process-related concern. May include testing, release, or the like.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.