Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/release-notes/6.4.13/changelog.ai.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
AI Context: 6.4.13 Changelog (changelog.mdx)

This file tracks manual edits made after the generation script ran.
The script reads the "Skipped PRs" section to avoid re-adding removed entries.

## Skipped PRs

## Manual Rewrites
- Removed the "Breaking Changes" section. Both #6282 entries are security fixes and were moved into their domain sections (Admin, Headless CMS), following the 6.4.12 structure.
- Review pass against the release code (webiny-js 51e2411543), entries by @brunozoric:
- "Stricter Identity Token Verification" renamed to "Stricter Identity Provider Token Verification" (#6282), moved to Admin. The generated text only covered Cognito access tokens. Added what the code also does: issuer and client ID (audience) checks in the default JWT verification, which take effect for Auth0 and Okta, and the `RS256` only rule. The Admin app already sends the ID token for Cognito, Auth0 and Okta, so the entry says only custom clients are affected, and the Alert says what to change. Dropped "applies to all API requests that require authentication": API keys and other authenticators are not affected.
- The entry does not claim a client ID check for Cognito. The check runs only when the provider has a client ID, and the default deployment does not set `COGNITO_CLIENT_ID` on the API function. Do not add that claim back.
- "Stricter Field Validation in Generic CMS Queries" renamed to "Stricter Validation of the `fields` Argument in Generic `cms` Queries and Mutations" (#6282), moved to Headless CMS. Named the six operations that take `fields` and the exact rule for a field name (letters, digits, underscore, not starting with a digit).
- Added "Updated Dependencies" (Development) for the dependency bumps in #6282 and in direct commit 51e24115 (no PR), so the generator does not pick the commit up.
3 changes: 3 additions & 0 deletions docs/release-notes/6.4.13/changelog.authors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"6282": "brunozoric"
}
38 changes: 38 additions & 0 deletions docs/release-notes/6.4.13/changelog.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
id: c2mshub6
title: Webiny 6.4.13 Changelog
description: See what's new in Webiny version 6.4.13
---

import { GithubRelease } from "@/components/GithubRelease";
import { Alert } from "@/components/Alert";

<GithubRelease version={"6.4.13"} />

## Admin

### Stricter Identity Provider Token Verification ([#6282](https://github.com/webiny/webiny-js/pull/6282))

The API now applies stricter checks to the identity provider tokens (JWT) it receives. The Admin app already sends the right token, so this only affects custom clients that call the API with a token they obtained themselves.

- **Cognito:** only ID tokens are accepted. A Cognito access token is now rejected.
- **Auth0 and Okta:** the token must be issued by the configured issuer and for the configured client ID. This is the case for the ID token of your Webiny application, while access tokens issued for another audience and tokens issued for another application are rejected.
- **Signing algorithm:** only tokens signed with `RS256` are accepted.

<Alert type="info">

If your own client sends an access token in the `Authorization` header, change it to send the ID token instead. Otherwise its requests are no longer authenticated after the upgrade.

</Alert>

## Headless CMS

### Stricter Validation of the `fields` Argument in Generic `cms` Queries and Mutations ([#6282](https://github.com/webiny/webiny-js/pull/6282))

The `fields` argument of the generic `cms` operations (`getEntry`, `listEntries`, `createEntry`, `updateEntryRevision`, `publishEntryRevision` and `unpublishEntryRevision`) now accepts only field paths made of field names separated by dots, for example `id` or `values.author.name`. Each name can contain only letters, digits and underscores, and cannot start with a digit. Any other value returns an error instead of the entry, so if you pass anything else in `fields`, change it to plain field paths.

## Development

### Updated Dependencies ([#6282](https://github.com/webiny/webiny-js/pull/6282))

Routine dependency updates, including `@aws-sdk/*`, `@rspack/core`, `type-fest`, `debounce` and `minimatch`.
61 changes: 61 additions & 0 deletions docs/release-notes/6.4.13/upgrade-guide.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
id: tqxzjqhw
title: Upgrade from 6.4.x to 6.4.13
description: Learn how to upgrade Webiny from 6.4.x to 6.4.13.
---

import { Alert } from "@/components/Alert";
import { AdditionalNotes } from "@/components/upgrade/AdditionalNotes";

<Alert type="success" title="What you'll learn">

- how to upgrade Webiny from 6.4.x to 6.4.13

</Alert>

<Alert type="info">

Make sure to check out the [6.4.13 changelog](./changelog) to get familiar with the changes introduced in this release.

</Alert>

## Step-by-Step Guide

### 1. Upgrade Webiny Packages

Upgrade all Webiny packages by running the following command:

```bash
yarn webiny upgrade 6.4.13 --debug
```

Note that the command above will run upgrades for all available versions of Webiny up to 6.4.13. If there are upgrades for 6.4.1, 6.4.5, they will be ran.

You can omit the version to upgrade to the latest available:

```bash
yarn webiny upgrade --debug
```

Once the upgrade has finished, running the `yarn webiny --version` command in your terminal should return **6.4.13**.

<Alert type="info">

If the above command fails or is not available in your setup, you can run the upgrade script directly via `npx`:

```bash
npx https://github.com/webiny/webiny-upgrades-v6 6.4.13 --debug
```

</Alert>

### 2. Deploy Your Project

Proceed by redeploying your Webiny project:

```bash
# Execute in your project root.
yarn webiny deploy --env {environment}
```

<AdditionalNotes />
Loading