Cloudsql split + nais alpha postgres - #784
Merged
Merged
Conversation
Match the API schema where PostgresBranch.name is local to its Postgres. List Nais branches as <postgres>/<branch> and link to the Postgres resource. Update the schema snapshot, regenerate the client, and cover the Nais + Cloud SQL merge and environment filtering with a table test.
Contributor
📝 Changelog previewBelow is a preview of the Changelog that will be added to the next release. Only commit messages that follow the Conventional Commits specification will be included in the Changelog. v6.0.0 - 2026-10-01Full Changelog: v5.50.3...v6.0.0 🚀 Features
🐛 Bug Fixes |
… setup Reject anything but unpadded base64url of 32 bytes before building the Authorization header, since the HTTP stack echoes invalid header values in errors. Run cleanup on SIGTERM and Ctrl-C, bound access creation with the polling timeout, and drop an unused Cloud SQL flag type.
Remove the legacy in-cluster Postgres code and grantPostgresAccess client. nais postgres and nais pg now run the Cloud SQL commands so the transition is soft; Nais Postgres lives under nais alpha postgres.
Remove the legacy in-cluster Postgres code and grantPostgresAccess client. nais postgres and nais pg now run the Cloud SQL commands and print a deprecation warning; Nais Postgres lives under nais alpha postgres.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces experimental support for managing and accessing Nais Postgres instances through the CLI. It adds new commands for listing Postgres branches, requesting personal access, and connecting via a secure local tunnel. The implementation includes API integrations, command definitions, access management logic, and comprehensive tests.
New Nais Postgres CLI Features:
postgrescommand group with subcommands for listing branches, launching a localpsqlsession, and exposing a relay tunnel for secure access. [1] [2] [3] [4]Access Management and API Integration:
AccessAPIinterface and related logic ininternal/alpha/postgres/access.goto handle brokered access requests, polling for readiness, and retrieving connection materials securely.Command Flags and Environment Handling:
PG*variables. [1] [2]Listing and Display Enhancements:
Testing and Reliability:
Dependency Updates: