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 — AdvancedTlsX509KeyManager does not atomically update key · Issue #12485 · grpc/grpc-java

AdvancedTlsX509KeyManager does not atomically update key #12485

New issue
Copy link
New issue
Copy link
Closed
Closed
AdvancedTlsX509KeyManager does not atomically update key#12485
Copy link
Assignees
gtcooke94
Labels
bug
Milestone
1.81

Description

@ejona86
ejona86
opened on Nov 7, 2025
Issue body actions

This isn't about atomicity for the in-memory update. That's okay. This is about updating the cert chain+key together, atomically for in-progress handshakes.

The various methods of X509ExtendedKeyManager are called at various times during the handshake. So if keyInfo is modified, different methods may see a different state. The way to handle this is to use the String alias parameter passed into those APIs, as each of the methods will be called with the same alias. We'd need to keep the old state around for a while, and have methods like chooseClientAlias() change the alias they return.

This race would probably rarely cause user-visible errors, because it would just cause at most a few handshakes to fail. But handshakes to other hosts would succeed and be used instead, and after a second any reconnection attempt would succeed.

Reacted by wzhang

Activity

  1. ejona86
    added this to the Next milestone on Nov 7, 2025
  2. ejona86
    assigned
    gtcooke94
    on Nov 7, 2025
  3. ejona86
    added
    bug
    on Nov 7, 2025
  4. zhangweikop commented on Mar 15, 2026

    @zhangweikop
    zhangweikop
    on Mar 15, 2026
    Contributor
    More actions

    I ran into issue #12670 related to this (key alias) as well.

    I am considering an approach where the alias is updated whenever the key is reloaded: #12686

  5. grpc
    deleted a comment from on Mar 16, 2026
  6. ejona86
    closed this as completedin b16da37on Mar 27, 2026
  7. ejona86
    modified the milestones: Next, 1.81 on Mar 27, 2026
  8. pull
    added a commit that references this issue on Mar 27, 2026

    util: update AdvancedTlsX509KeyManager to support key alias for reloa…

    This issue will close once commit b16da37 is merged into the 'master' branch.
    b16da37
  9. kannanjgithub
    added a commit that references this issue on May 4, 2026

    util: update AdvancedTlsX509KeyManager to support key alias for reloa…

    This issue will close once commit d2760cc is merged into the 'master' branch.
    d2760cc
  10. github-actions
    locked as resolved and limited conversation to collaborators on Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @gtcooke94
    gtcooke94

Labels

bug

Type

No type

Projects

No projects

    Milestone

    • 1.81

    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.