Skip to content

Commit

Permalink
Merge branch 'main' into tobbe-dbauth-create-user-model
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Jun 18, 2024
2 parents 7b92858 + c66fdf7 commit 9841cb5
Show file tree
Hide file tree
Showing 32 changed files with 664 additions and 913 deletions.
3 changes: 3 additions & 0 deletions .changesets/10830.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- fix(cli): Add check for excessively long route (#10830) by @Josh-Walker-GM

This change adds an additional internal check to protect against route definitions which are preposterously long.
5 changes: 5 additions & 0 deletions .changesets/10833.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- fix(deps): update dependency firebase-admin to v12 (#10833) by @renovate

This change updates our firebase auth provider to use the v12 major version of the `firebase-admin` package. This will require you to update your own version of `firebase-admin` that is listed in your api side package json file.

We have noticed no breaking api changes in our limited testing. Please consult the `firebase-admin` upgrade guide if you experience problems after upgrading - especially if you have more extensive or complex use of the firebase suite of products.
4 changes: 2 additions & 2 deletions __fixtures__/empty-project/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"@redwoodjs/api": "0.49.1",
"@redwoodjs/graphql-server": "0.49.1"
"@redwoodjs/api": "canary",
"@redwoodjs/graphql-server": "canary"
}
}
2 changes: 1 addition & 1 deletion __fixtures__/empty-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
]
},
"devDependencies": {
"@redwoodjs/core": "0.49.1"
"@redwoodjs/core": "canary"
},
"eslintConfig": {
"extends": "@redwoodjs/eslint-config",
Expand Down
6 changes: 3 additions & 3 deletions __fixtures__/empty-project/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
]
},
"dependencies": {
"@redwoodjs/forms": "0.49.1",
"@redwoodjs/router": "0.49.1",
"@redwoodjs/web": "0.49.1",
"@redwoodjs/forms": "canary",
"@redwoodjs/router": "canary",
"@redwoodjs/web": "canary",
"prop-types": "15.8.1",
"react": "17.0.2",
"react-dom": "17.0.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"name": "api",
"version": "0.0.0",
"dependencies": {
"@redwoodjs/api": "0.7.0"
"@redwoodjs/api": "canary"
}
}
2 changes: 1 addition & 1 deletion __fixtures__/example-todo-main-with-errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"web"
],
"devDependencies": {
"@redwoodjs/core": "0.7.0"
"@redwoodjs/core": "canary"
},
"eslintConfig": {
"extends": "@redwoodjs/eslint-config"
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/example-todo-main-with-errors/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"name": "web",
"version": "0.0.0",
"dependencies": {
"@redwoodjs/router": "0.7.0",
"@redwoodjs/web": "0.7.0",
"@redwoodjs/router": "canary",
"@redwoodjs/web": "canary",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/example-todo-main/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"name": "api",
"version": "0.0.0",
"dependencies": {
"@redwoodjs/api": "0.32.2"
"@redwoodjs/api": "canary"
}
}
2 changes: 1 addition & 1 deletion __fixtures__/example-todo-main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"../../packages/*"
],
"devDependencies": {
"@redwoodjs/core": "0.32.2"
"@redwoodjs/core": "canary"
},
"eslintConfig": {
"extends": "@redwoodjs/eslint-config"
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/example-todo-main/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"name": "web",
"version": "0.0.0",
"dependencies": {
"@redwoodjs/router": "0.32.2",
"@redwoodjs/web": "0.32.2",
"@redwoodjs/router": "canary",
"@redwoodjs/web": "canary",
"prop-types": "^15.7.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/graphql/trusted-documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RedwoodJS can be setup to enforce [persisted operations](https://the-guild.dev/g

Use trusted documents if your GraphQL API is only for your own app (which is the case for most GraphQL APIs) for a massively decreased attack-surface, increased performance, and decreased bandwidth usage.

At app build time, Redwood will extract the GraphQL documents (queries, etc) and make them available to the server. At run time, you can then send "document id" or "hash" instead of the whole document; only accept requests with a known document id.
At app build time, Redwood will extract the GraphQL documents (queries, etc) and make them available to the server. At run time, you must then send "document id" or "hash" instead of the whole document as the server will only accept requests with a known document id.

This prevents malicious attackers from executing arbitrary GraphQL thus helping with unwanted resolver traversal or information leaking.

Expand Down Expand Up @@ -84,9 +84,9 @@ See how the `76308e971322b1ece4cdff75185bb61d7139e343` hash ids match?

Now, when the client requests to make a query for `76308e971322b1ece4cdff75185bb61d7139e343`, the GraphQL server knows to execute the corresponding query associated with that hash.

This means that because queries are pre-generated and the hash ids ***must match**, there is no way for any un-trusted or ad-hock queries to get executed by the GraphQL server.
This means that because queries are pre-generated and the hash ids **must match**, there is no way for any un-trusted or ad-hoc queries to get executed by the GraphQL server.

Thus preventing unwanted queries or GraphQl traversal attacks,
Thus preventing unwanted queries or GraphQL traversal attacks,

* Configure RedwoodJS to use Trusted Documents via `redwood.toml`
* Configure the GraphQL Server
Expand Down
12 changes: 6 additions & 6 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
]
},
"dependencies": {
"@docusaurus/core": "3.3.2",
"@docusaurus/plugin-content-docs": "3.3.2",
"@docusaurus/preset-classic": "3.3.2",
"@docusaurus/theme-common": "3.3.2",
"@docusaurus/core": "3.4.0",
"@docusaurus/plugin-content-docs": "3.4.0",
"@docusaurus/preset-classic": "3.4.0",
"@docusaurus/theme-common": "3.4.0",
"@mdx-js/react": "3.0.1",
"clsx": "2.1.1",
"prism-react-renderer": "2.3.1",
Expand All @@ -36,8 +36,8 @@
"react-player": "2.16.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.3.2",
"@docusaurus/tsconfig": "3.3.2",
"@docusaurus/module-type-aliases": "3.4.0",
"@docusaurus/tsconfig": "3.4.0",
"typescript": "5.4.5"
},
"packageManager": "[email protected]"
Expand Down
Loading

0 comments on commit 9841cb5

Please sign in to comment.