Skip to content

Commit ec2459e

Browse files
authored
Add MySQL SSL options for hyperdrive creation (#11656)
1 parent 36cae7a commit ec2459e

File tree

4 files changed

+542
-51
lines changed

4 files changed

+542
-51
lines changed

‎.changeset/silver-coins-take.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
"wrangler": minor
3+
---
4+
5+
feat(hyperdrive): add MySQL SSL mode and Custom CA support
6+
7+
Hyperdrive now supports MySQL-specific SSL modes (`REQUIRED`, `VERIFY_CA`, `VERIFY_IDENTITY`) alongside the existing PostgreSQL modes. The `--sslmode` flag now validates the provided value based on the database scheme (PostgreSQL or MySQL) and enforces appropriate CA certificate requirements for each.
8+
9+
**Usage:**
10+
11+
```sh
12+
# MySQL with CA verification
13+
wrangler hyperdrive create my-config --connection-string="mysql://user:pass@host:3306/db" --sslmode=VERIFY_CA --ca-certificate-id=<cert-id>
14+
15+
# PostgreSQL (unchanged)
16+
wrangler hyperdrive create my-config --connection-string="postgres://user:pass@host:5432/db" --sslmode=verify-full --ca-certificate-id=<cert-id>
17+
```

0 commit comments

Comments
 (0)