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 — Cloud wizard credentials for AWS, Azure and Google are not written through to the session store · Issue #10527 · pgadmin-org/pgadmin4

Cloud wizard credentials for AWS, Azure and Google are not written through to the session store #10527

New issue
Copy link
New issue
Copy link
Closed
Closed
Cloud wizard credentials for AWS, Azure and Google are not written through to the session store#10527
Copy link

Description

@dpage
dpage
opened on Oct 12, 2026
Issue body actions

The AWS, Azure and Google steps of the cloud deployment wizard store their verified credentials or authentication state in the Flask session, and the next wizard request (fetching regions, instance types and so on) expects to find it there. Under a deployment with more than one worker process, that request can fail as unauthenticated, because the session is never written to disk where another worker could read it. There are two causes:

  • FileBackedSessionManager.put (web/pgadmin/utils/session.py) skips the disk write if the session was last written within PGADMIN_SESSION_DISK_WRITE_DELAY (10 seconds by default) unless session.force_write is set, and none of the three providers set it.
  • The providers mostly mutate a nested dictionary, e.g. session['aws']['secret'] = ... in rds/__init__.py, session['azure']['state']/['auth_type']/['azure_tenant_id'] in azure/__init__.py, and session['google']['client_config']/['state'] in google/__init__.py. ManagedSession is a CallbackDict, which only notices top-level assignments, so when the provider's key already exists the session is not even marked modified and save_session does not save it at all. The change survives only in the per-worker CachingSessionManager cache.

The configurations pgAdmin ships and documents all run a single worker, which is why this has gone unnoticed; it affects people who run more than one process, and also loses the state if the server restarts within the write-delay window.

The fix is to set session.force_write = True and session.modified = True after updating the provider's session state, as the pgEdge Starfleet provider does in #10499.

Activity

  1. MaybeSomeone-arc18 commented on Oct 12, 2026

    @MaybeSomeone-arc18
    MaybeSomeone-arc18
    on Oct 12, 2026
    Contributor
    More actions

    I'd be happy to put together a PR for this - setting session.force_write = True and session.modified = True after the credential/state updates in the rds, azure and google providers, following the pattern the pgEdge Starfleet provider uses in #10499. Want me to take it?

  2. dpage
    added a commit that references this issue on Oct 12, 2026

    Write cloud wizard credentials through to the session store for AWS, …

    6b8394f
  3. dpage commented on Oct 12, 2026

    @dpage
    dpage
    on Oct 12, 2026
    ContributorAuthor
    More actions

    Fixed by #10528 (6b8394f).

  4. dpage
    closed this as completedon Oct 12, 2026
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

    No labels
    No labels

    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.