Skip to content

2.1.x Backmerge into master - #3365

Closed
Jolg42 wants to merge 14 commits into
2.5.xfrom
2.1.x
Closed

2.1.x Backmerge into master#3365
Jolg42 wants to merge 14 commits into
2.5.xfrom
2.1.x

Conversation

@Jolg42

@Jolg42 Jolg42 commented Aug 20, 2020

Copy link
Copy Markdown
Contributor

No description provided.

@Jolg42
Jolg42 requested a review from timsuchanek August 20, 2020 14:11
@Jolg42 Jolg42 added this to the Release 2.6.0 milestone Aug 20, 2020
@Jolg42 Jolg42 self-assigned this Aug 20, 2020
@Jolg42
Jolg42 changed the base branch from master to 2.5.x August 20, 2020 15:42
@timsuchanek

Copy link
Copy Markdown
Contributor

This PR goes from 2.5.x into 2.1.x. However, we need 2.1.x to master

@Jolg42 Jolg42 reopened this Aug 25, 2020
@Jolg42

Jolg42 commented Aug 25, 2020

Copy link
Copy Markdown
Contributor Author

@timsuchanek when the branch is in open state you can reassign the branch
Screen Shot 2020-08-25 at 09 59 52

@Jolg42 Jolg42 closed this Aug 25, 2020
@jacek-prisma
jacek-prisma deleted the 2.1.x branch October 9, 2025 15:23
kristof-siket added a commit that referenced this pull request Mar 3, 2026
## Summary

Migrates `prisma init --db` from reading deprecated
`database.directConnection` fields to the new
`connections[].endpoints.direct.connectionString` from the Management
API response
([TML-1927](https://linear.app/prisma-company/issue/TML-1927)).

- Reads the connection string directly from
`connections[].endpoints.direct.connectionString` — no manual DSN
construction needed
- Throws if no connection string is found (no legacy fallback — the API
always returns the new fields)
- Bumps `@prisma/management-api-sdk` from `0.2.0` to `1.12.0` to get the
new connection model types
- Updates SDK import names to match v1.12.0 exports (`ManagementAPI` ->
`ManagementApiSdk`, `createManagementAPI` -> `createManagementApiSdk`)
- Bumps `hono` from `4.11.7` to `4.12.3` to fix IP spoofing
authentication bypass vulnerability

## Context

The Management API shipped a new connection model in [PR
#3365](prisma/pdp-control-plane#3365). The
deprecated fields (`directConnection`, `apiKeys`) will be removed after
a deprecation window. This migration ensures `prisma init --db` works
with the new response shape.

Related: [PTL-1046](https://linear.app/prisma-company/issue/PTL-1046) —
same migration for `prisma/create-db` ([PR
#80](prisma/create-db#80))

## Test plan

- [x] `prisma init --db` creates a project and returns a valid
connection string (manual test against production API)
- [ ] Existing CI tests pass

Closes TML-1927

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved database connection detection to prefer available endpoint
types and surface a clearer error when no connection string is found.

* **Chores**
  * Updated management API integration to the newer SDK surface.
* Bumped devDependencies: @prisma/management-api-sdk to v1.12.0 and hono
to v4.12.3.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants