From 98b1950e30ae2cd68befb7e6253b43798df68616 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 8 Feb 2022 14:11:26 +0100 Subject: [PATCH 01/18] expose internal authenticate function --- packages/health-check/bin/cli | 10 ++++++++++ packages/health-check/src/utils.js | 25 ++++++++++++++++++------- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/packages/health-check/bin/cli b/packages/health-check/bin/cli index 5bf0064c..dbf39344 100755 --- a/packages/health-check/bin/cli +++ b/packages/health-check/bin/cli @@ -6,6 +6,16 @@ require("yargs/yargs")(process.argv.slice(2)) .help() .demandCommand() .strict(true) + .command( + "__authenticate", // Internal only function - this function will be removed when API keys are implemented + false, // hide this function cli help + () => {}, + async () => { + const { getAuthCookie } = require("../src/utils"); + + console.log(await getAuthCookie(true)); + } + ) .command( "enable", "Mark portal as enabled", diff --git a/packages/health-check/src/utils.js b/packages/health-check/src/utils.js index 1ba46e07..5bc7a0c3 100644 --- a/packages/health-check/src/utils.js +++ b/packages/health-check/src/utils.js @@ -45,24 +45,35 @@ function ensureValidJSON(object) { * Authenticate with given credentials and return auth cookie * Creates new account if username does not exist * Only authenticates when portal is set to authenticated users only mode + * @param {boolean} forceAuth forcibly ensure authentication with test credentials */ -function getAuthCookie() { +function getAuthCookie(forceAuth = false) { // cache auth promise so only one actual request will be made if (getAuthCookie.cache) return getAuthCookie.cache; - // do not authenticate if it is not necessary - if (!["authenticated", "subscription"].includes(process.env.ACCOUNTS_LIMIT_ACCESS)) return {}; + // accounts disabled, do not try to authenticate + if (!isPortalModuleEnabled("a")) return ""; + // do not authenticate if it is not required by portal limit access rule + if (!forceAuth && !["authenticated", "subscription"].includes(process.env.ACCOUNTS_LIMIT_ACCESS)) return ""; + + const portalDomain = process.env.PORTAL_DOMAIN; const email = process.env.ACCOUNTS_TEST_USER_EMAIL; const password = process.env.ACCOUNTS_TEST_USER_PASSWORD; - if (!email) throw new Error("ACCOUNTS_TEST_USER_EMAIL cannot be empty"); - if (!password) throw new Error("ACCOUNTS_TEST_USER_PASSWORD cannot be empty"); + try { + if (!portalDomain) throw new Error("PORTAL_DOMAIN cannot be empty"); + if (!email) throw new Error("ACCOUNTS_TEST_USER_EMAIL cannot be empty"); + if (!password) throw new Error("ACCOUNTS_TEST_USER_PASSWORD cannot be empty"); + } catch (error) { + console.log(error.message); + process.exit(1); + } async function authenticate() { try { // authenticate with given test user credentials - const response = await got.post(`${process.env.SKYNET_DASHBOARD_URL}/api/login`, { + const response = await got.post(`https://account.${process.env.PORTAL_DOMAIN}/api/login`, { json: { email, password }, }); @@ -84,7 +95,7 @@ function getAuthCookie() { // 401 means that service worked but user could not have been authenticated if (error.response && error.response.statusCode === 401) { // sign up with the given credentials - await got.post(`${process.env.SKYNET_DASHBOARD_URL}/api/user`, { + await got.post(`https://account.${process.env.PORTAL_DOMAIN}/api/user`, { json: { email, password }, }); From d5ee9d531bce7cf14a40ab8267bde6e2deccb71e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 12:58:54 +0000 Subject: [PATCH 02/18] Bump gatsby-remark-responsive-iframe in /packages/website Bumps [gatsby-remark-responsive-iframe](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-remark-responsive-iframe) from 5.6.0 to 5.7.0. - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-remark-responsive-iframe/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-remark-responsive-iframe@5.7.0/packages/gatsby-remark-responsive-iframe) --- updated-dependencies: - dependency-name: gatsby-remark-responsive-iframe dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- packages/website/package.json | 2 +- packages/website/yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index d0a4b888..f5e163ce 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -30,7 +30,7 @@ "gatsby-remark-copy-linked-files": "5.6.0", "gatsby-remark-images": "6.7.0", "gatsby-remark-prismjs": "6.7.0", - "gatsby-remark-responsive-iframe": "5.6.0", + "gatsby-remark-responsive-iframe": "5.7.0", "gatsby-remark-smartypants": "5.7.0", "gatsby-source-filesystem": "4.6.0", "gatsby-transformer-json": "4.6.0", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index c3bb5e41..01247369 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -6132,10 +6132,10 @@ gatsby-remark-prismjs@6.7.0: parse-numeric-range "^1.2.0" unist-util-visit "^2.0.3" -gatsby-remark-responsive-iframe@5.6.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/gatsby-remark-responsive-iframe/-/gatsby-remark-responsive-iframe-5.6.0.tgz#d74c5aba2f545d33da378b21ecdb3190ddb71d8f" - integrity sha512-X23+p5SYgND4LoINxHwgHJUOphz5ie+a3L0nHKe6cdnfXkkhWbs2ZuQlGfMhLZscrtm6P0XL5xFAdRRiTxC5/g== +gatsby-remark-responsive-iframe@5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/gatsby-remark-responsive-iframe/-/gatsby-remark-responsive-iframe-5.7.0.tgz#bbd8fb79aa92d72444c6240afff6848dd2c63123" + integrity sha512-/MTzyZVdRK4Lg+BOWcNwzPc+jgKput71Kguw+E9mLFw7mI43Tuv1QU6orRye8HqoqR77wvHPNqb0EVvkEOs1Vg== dependencies: "@babel/runtime" "^7.15.4" cheerio "^1.0.0-rc.10" @@ -6180,7 +6180,7 @@ gatsby-source-filesystem@4.6.0: valid-url "^1.0.9" xstate "^4.26.1" -gatsby-telemetry@^3.6.0, gatsby-telemetry@^3.7.0: +gatsby-telemetry@^3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/gatsby-telemetry/-/gatsby-telemetry-3.7.0.tgz#898c3f158814ea11f924b85d14b9402baa5703de" integrity sha512-jhtUGZynyHM3r9a7po/rKffj5AjacmU0rqqarsee9dxlDqsamqRtyFPTjn7JubRrc958M6qzNW+z/Zi0hoeFHg== From 9db56ef134822cb762aa634a053f85a68e714de3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 12:59:54 +0000 Subject: [PATCH 03/18] Bump gatsby-plugin-image from 2.6.0 to 2.7.0 in /packages/website Bumps [gatsby-plugin-image](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-plugin-image) from 2.6.0 to 2.7.0. - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-image/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-image@2.7.0/packages/gatsby-plugin-image) --- updated-dependencies: - dependency-name: gatsby-plugin-image dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- packages/website/package.json | 2 +- packages/website/yarn.lock | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index d0a4b888..1ccacf63 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -15,7 +15,7 @@ "framer-motion": "6.2.4", "gatsby": "4.7.1", "gatsby-background-image": "1.6.0", - "gatsby-plugin-image": "2.6.0", + "gatsby-plugin-image": "2.7.0", "gatsby-plugin-manifest": "4.6.0", "gatsby-plugin-matomo": "0.11.0", "gatsby-plugin-offline": "5.6.0", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index c3bb5e41..4d9501f0 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -2877,7 +2877,7 @@ babel-plugin-react-svg@^3.0.3: resolved "https://registry.yarnpkg.com/babel-plugin-react-svg/-/babel-plugin-react-svg-3.0.3.tgz#7da46a0bd8319f49ac85523d259f145ce5d78321" integrity sha512-Pst1RWjUIiV0Ykv1ODSeceCBsFOP2Y4dusjq7/XkjuzJdvS9CjpkPMUIoO4MLlvp5PiLCeMlsOC7faEUA0gm3Q== -babel-plugin-remove-graphql-queries@^4.6.0, babel-plugin-remove-graphql-queries@^4.7.0: +babel-plugin-remove-graphql-queries@^4.7.0: version "4.7.0" resolved "https://registry.yarnpkg.com/babel-plugin-remove-graphql-queries/-/babel-plugin-remove-graphql-queries-4.7.0.tgz#d17ee70a4799ea1d5c633c8189b89fa93ce11629" integrity sha512-UfDiex308kr8vx5YC3w0KyPitgdPlH3btR/DQWBTMhbavU5zJ+N/nsefzamt8fnq/5911j83Kc89jtmdqzxGDg== @@ -5918,22 +5918,22 @@ gatsby-page-utils@^2.7.0: lodash "^4.17.21" micromatch "^4.0.4" -gatsby-plugin-image@2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/gatsby-plugin-image/-/gatsby-plugin-image-2.6.0.tgz#5342507be7fdd0109fc815c0f2906b0407a55e14" - integrity sha512-rWbIdkcopB02YIhR3UidoYhe2SDOFTpxzJSABq5TcLZ38FD8kth8QavvOO0h1ap9tWjaUNIjCvKRu2M3NvuC1g== +gatsby-plugin-image@2.7.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/gatsby-plugin-image/-/gatsby-plugin-image-2.7.0.tgz#cec35a39e73cee991a1fa3d66e3584d937bd640b" + integrity sha512-IVX/c0O/5QL505hla74Pt9i7xtv5zFBeYiYqG9gyejtZ3YuM0Opid3Rs+IIn1LN3fjM/xBrqp8yL7/XN/p24fw== dependencies: "@babel/code-frame" "^7.14.0" "@babel/parser" "^7.15.5" "@babel/runtime" "^7.15.4" "@babel/traverse" "^7.15.4" babel-jsx-utils "^1.1.0" - babel-plugin-remove-graphql-queries "^4.6.0" + babel-plugin-remove-graphql-queries "^4.7.0" camelcase "^5.3.1" chokidar "^3.5.2" common-tags "^1.8.2" fs-extra "^10.0.0" - gatsby-core-utils "^3.6.0" + gatsby-core-utils "^3.7.0" objectFitPolyfill "^2.3.5" prop-types "^15.7.2" @@ -6180,7 +6180,7 @@ gatsby-source-filesystem@4.6.0: valid-url "^1.0.9" xstate "^4.26.1" -gatsby-telemetry@^3.6.0, gatsby-telemetry@^3.7.0: +gatsby-telemetry@^3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/gatsby-telemetry/-/gatsby-telemetry-3.7.0.tgz#898c3f158814ea11f924b85d14b9402baa5703de" integrity sha512-jhtUGZynyHM3r9a7po/rKffj5AjacmU0rqqarsee9dxlDqsamqRtyFPTjn7JubRrc958M6qzNW+z/Zi0hoeFHg== From 979b2e41eb6abb7fabd497f8cd500043af93ad78 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 13:01:56 +0000 Subject: [PATCH 04/18] Bump gatsby-plugin-postcss from 5.6.0 to 5.7.0 in /packages/website Bumps [gatsby-plugin-postcss](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-plugin-postcss) from 5.6.0 to 5.7.0. - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-postcss/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-postcss@5.7.0/packages/gatsby-plugin-postcss) --- updated-dependencies: - dependency-name: gatsby-plugin-postcss dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- packages/website/package.json | 2 +- packages/website/yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index d0a4b888..01f7bd48 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -19,7 +19,7 @@ "gatsby-plugin-manifest": "4.6.0", "gatsby-plugin-matomo": "0.11.0", "gatsby-plugin-offline": "5.6.0", - "gatsby-plugin-postcss": "5.6.0", + "gatsby-plugin-postcss": "5.7.0", "gatsby-plugin-purgecss": "6.1.0", "gatsby-plugin-react-helmet": "5.7.0", "gatsby-plugin-robots-txt": "1.7.0", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index c3bb5e41..f4ee6509 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -5983,10 +5983,10 @@ gatsby-plugin-page-creator@^4.7.0: globby "^11.0.4" lodash "^4.17.21" -gatsby-plugin-postcss@5.6.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/gatsby-plugin-postcss/-/gatsby-plugin-postcss-5.6.0.tgz#ee696317eb7601b2e0f5c64b9f9d488376fdb65f" - integrity sha512-AjRLMWMFrmahNSmEYMDwFdDGkUfyDxxAJ2qtteJ3SRAO0Jgb0N9wJM7RkBhAs6H7YuovQIBxoUOo5xrMTlgM4A== +gatsby-plugin-postcss@5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/gatsby-plugin-postcss/-/gatsby-plugin-postcss-5.7.0.tgz#e927a85df77b487fea449204e727544635b21399" + integrity sha512-308pPGZmber/uOF98w2ScVYS/gSNsvHE2MEVdDl5EUg0MK09WXzx83bxJThbp7U/xhuJ9D75yiBi1OjpygIAtg== dependencies: "@babel/runtime" "^7.15.4" postcss-loader "^4.3.0" @@ -6180,7 +6180,7 @@ gatsby-source-filesystem@4.6.0: valid-url "^1.0.9" xstate "^4.26.1" -gatsby-telemetry@^3.6.0, gatsby-telemetry@^3.7.0: +gatsby-telemetry@^3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/gatsby-telemetry/-/gatsby-telemetry-3.7.0.tgz#898c3f158814ea11f924b85d14b9402baa5703de" integrity sha512-jhtUGZynyHM3r9a7po/rKffj5AjacmU0rqqarsee9dxlDqsamqRtyFPTjn7JubRrc958M6qzNW+z/Zi0hoeFHg== From ac6a6578879a4e72d877849352eb232beaf1df3d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 13:22:39 +0000 Subject: [PATCH 05/18] Bump gatsby-transformer-yaml from 4.6.0 to 4.7.0 in /packages/website Bumps [gatsby-transformer-yaml](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-transformer-yaml) from 4.6.0 to 4.7.0. - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-transformer-yaml/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-transformer-yaml@4.7.0/packages/gatsby-transformer-yaml) --- updated-dependencies: - dependency-name: gatsby-transformer-yaml dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- packages/website/package.json | 8 +++---- packages/website/yarn.lock | 40 +++++++++++++++++------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index d0a4b888..accef9bd 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -15,7 +15,7 @@ "framer-motion": "6.2.4", "gatsby": "4.7.1", "gatsby-background-image": "1.6.0", - "gatsby-plugin-image": "2.6.0", + "gatsby-plugin-image": "2.7.0", "gatsby-plugin-manifest": "4.6.0", "gatsby-plugin-matomo": "0.11.0", "gatsby-plugin-offline": "5.6.0", @@ -24,19 +24,19 @@ "gatsby-plugin-react-helmet": "5.7.0", "gatsby-plugin-robots-txt": "1.7.0", "gatsby-plugin-sharp": "4.7.0", - "gatsby-plugin-sitemap": "5.6.0", + "gatsby-plugin-sitemap": "5.7.0", "gatsby-plugin-svgr": "3.0.0-beta.0", "gatsby-remark-classes": "1.0.2", "gatsby-remark-copy-linked-files": "5.6.0", "gatsby-remark-images": "6.7.0", "gatsby-remark-prismjs": "6.7.0", - "gatsby-remark-responsive-iframe": "5.6.0", + "gatsby-remark-responsive-iframe": "5.7.0", "gatsby-remark-smartypants": "5.7.0", "gatsby-source-filesystem": "4.6.0", "gatsby-transformer-json": "4.6.0", "gatsby-transformer-remark": "5.7.0", "gatsby-transformer-sharp": "4.6.0", - "gatsby-transformer-yaml": "4.6.0", + "gatsby-transformer-yaml": "4.7.0", "gbimage-bridge": "0.2.1", "http-status-codes": "2.2.0", "jsonp": "0.2.1", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index c3bb5e41..b204dec2 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -2877,7 +2877,7 @@ babel-plugin-react-svg@^3.0.3: resolved "https://registry.yarnpkg.com/babel-plugin-react-svg/-/babel-plugin-react-svg-3.0.3.tgz#7da46a0bd8319f49ac85523d259f145ce5d78321" integrity sha512-Pst1RWjUIiV0Ykv1ODSeceCBsFOP2Y4dusjq7/XkjuzJdvS9CjpkPMUIoO4MLlvp5PiLCeMlsOC7faEUA0gm3Q== -babel-plugin-remove-graphql-queries@^4.6.0, babel-plugin-remove-graphql-queries@^4.7.0: +babel-plugin-remove-graphql-queries@^4.7.0: version "4.7.0" resolved "https://registry.yarnpkg.com/babel-plugin-remove-graphql-queries/-/babel-plugin-remove-graphql-queries-4.7.0.tgz#d17ee70a4799ea1d5c633c8189b89fa93ce11629" integrity sha512-UfDiex308kr8vx5YC3w0KyPitgdPlH3btR/DQWBTMhbavU5zJ+N/nsefzamt8fnq/5911j83Kc89jtmdqzxGDg== @@ -5918,22 +5918,22 @@ gatsby-page-utils@^2.7.0: lodash "^4.17.21" micromatch "^4.0.4" -gatsby-plugin-image@2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/gatsby-plugin-image/-/gatsby-plugin-image-2.6.0.tgz#5342507be7fdd0109fc815c0f2906b0407a55e14" - integrity sha512-rWbIdkcopB02YIhR3UidoYhe2SDOFTpxzJSABq5TcLZ38FD8kth8QavvOO0h1ap9tWjaUNIjCvKRu2M3NvuC1g== +gatsby-plugin-image@2.7.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/gatsby-plugin-image/-/gatsby-plugin-image-2.7.0.tgz#cec35a39e73cee991a1fa3d66e3584d937bd640b" + integrity sha512-IVX/c0O/5QL505hla74Pt9i7xtv5zFBeYiYqG9gyejtZ3YuM0Opid3Rs+IIn1LN3fjM/xBrqp8yL7/XN/p24fw== dependencies: "@babel/code-frame" "^7.14.0" "@babel/parser" "^7.15.5" "@babel/runtime" "^7.15.4" "@babel/traverse" "^7.15.4" babel-jsx-utils "^1.1.0" - babel-plugin-remove-graphql-queries "^4.6.0" + babel-plugin-remove-graphql-queries "^4.7.0" camelcase "^5.3.1" chokidar "^3.5.2" common-tags "^1.8.2" fs-extra "^10.0.0" - gatsby-core-utils "^3.6.0" + gatsby-core-utils "^3.7.0" objectFitPolyfill "^2.3.5" prop-types "^15.7.2" @@ -6041,10 +6041,10 @@ gatsby-plugin-sharp@4.7.0: svgo "1.3.2" uuid "3.4.0" -gatsby-plugin-sitemap@5.6.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/gatsby-plugin-sitemap/-/gatsby-plugin-sitemap-5.6.0.tgz#ce2eaae11c984241922589b0081c0349778a2898" - integrity sha512-38JTiv1gZNN39vMMRev7IcM+Xo7Ewxiyw9j4mfYTOnw+Y3pVKqXvWVCMwMm5RBt1QL/vS4SEfMLvzVWH8/Osog== +gatsby-plugin-sitemap@5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/gatsby-plugin-sitemap/-/gatsby-plugin-sitemap-5.7.0.tgz#87ab72f9acfac31dcd8f25ad0fb6afe5a2c221fa" + integrity sha512-53l+SXOHYp2Bt/8sK0DfLRjGq+K63qQGAPJksv1qC3soDNNe+TlKxmzM7JksACLzDVUkFVQYrvmS2RvMfivqeA== dependencies: "@babel/runtime" "^7.15.4" common-tags "^1.8.2" @@ -6132,10 +6132,10 @@ gatsby-remark-prismjs@6.7.0: parse-numeric-range "^1.2.0" unist-util-visit "^2.0.3" -gatsby-remark-responsive-iframe@5.6.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/gatsby-remark-responsive-iframe/-/gatsby-remark-responsive-iframe-5.6.0.tgz#d74c5aba2f545d33da378b21ecdb3190ddb71d8f" - integrity sha512-X23+p5SYgND4LoINxHwgHJUOphz5ie+a3L0nHKe6cdnfXkkhWbs2ZuQlGfMhLZscrtm6P0XL5xFAdRRiTxC5/g== +gatsby-remark-responsive-iframe@5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/gatsby-remark-responsive-iframe/-/gatsby-remark-responsive-iframe-5.7.0.tgz#bbd8fb79aa92d72444c6240afff6848dd2c63123" + integrity sha512-/MTzyZVdRK4Lg+BOWcNwzPc+jgKput71Kguw+E9mLFw7mI43Tuv1QU6orRye8HqoqR77wvHPNqb0EVvkEOs1Vg== dependencies: "@babel/runtime" "^7.15.4" cheerio "^1.0.0-rc.10" @@ -6180,7 +6180,7 @@ gatsby-source-filesystem@4.6.0: valid-url "^1.0.9" xstate "^4.26.1" -gatsby-telemetry@^3.6.0, gatsby-telemetry@^3.7.0: +gatsby-telemetry@^3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/gatsby-telemetry/-/gatsby-telemetry-3.7.0.tgz#898c3f158814ea11f924b85d14b9402baa5703de" integrity sha512-jhtUGZynyHM3r9a7po/rKffj5AjacmU0rqqarsee9dxlDqsamqRtyFPTjn7JubRrc958M6qzNW+z/Zi0hoeFHg== @@ -6249,10 +6249,10 @@ gatsby-transformer-sharp@4.6.0: semver "^7.3.5" sharp "^0.29.3" -gatsby-transformer-yaml@4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/gatsby-transformer-yaml/-/gatsby-transformer-yaml-4.6.0.tgz#e9ef02cea00321a60b74f9e3a6a8f7283a562c10" - integrity sha512-S1xVbA0gVg/edlasoziCnE3Uyp0DzhyBR3pl3xJq/HkTP0RWq1KqbRH9BRJa+qF7h+mQ80VTOtqA9LjL2iYEeQ== +gatsby-transformer-yaml@4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/gatsby-transformer-yaml/-/gatsby-transformer-yaml-4.7.0.tgz#3f4463ee12769ead67e5daedbdaedf8f3333ba31" + integrity sha512-uwTQdwLBW+ibWG2rHYTt3yCzmHDQ8yCLz/vwX4LjRU+VBow0cwm0DwZdQTCBVLufQ7Bx3b3E+bECwgprlku7UA== dependencies: "@babel/runtime" "^7.15.4" js-yaml "^3.14.1" From 01dc11474f546ce6f8df0473cdf3e100afd99752 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 13:23:03 +0000 Subject: [PATCH 06/18] Bump gatsby-plugin-manifest from 4.6.0 to 4.7.0 in /packages/website Bumps [gatsby-plugin-manifest](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-plugin-manifest) from 4.6.0 to 4.7.0. - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-manifest/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-manifest@4.7.0/packages/gatsby-plugin-manifest) --- updated-dependencies: - dependency-name: gatsby-plugin-manifest dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- packages/website/package.json | 2 +- packages/website/yarn.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index 022a4470..278b03a8 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -16,7 +16,7 @@ "gatsby": "4.7.1", "gatsby-background-image": "1.6.0", "gatsby-plugin-image": "2.7.0", - "gatsby-plugin-manifest": "4.6.0", + "gatsby-plugin-manifest": "4.7.0", "gatsby-plugin-matomo": "0.11.0", "gatsby-plugin-offline": "5.6.0", "gatsby-plugin-postcss": "5.6.0", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index 840c5b0e..d79dc93f 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -5937,14 +5937,14 @@ gatsby-plugin-image@2.7.0: objectFitPolyfill "^2.3.5" prop-types "^15.7.2" -gatsby-plugin-manifest@4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/gatsby-plugin-manifest/-/gatsby-plugin-manifest-4.6.0.tgz#73c69e980449af9a30d9a55ba919c49b1630c18a" - integrity sha512-/ySmcnGYmTv4exBQSvPVBDoMVHY9TEdiYnP/NmRTOwRA7VaW525qyc+Nf6lTmlD6AONX2nrbQ3U9F/JxCTL+uw== +gatsby-plugin-manifest@4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/gatsby-plugin-manifest/-/gatsby-plugin-manifest-4.7.0.tgz#8ee8fcddec51154c04ccfab1e36f78e7880e3438" + integrity sha512-jZsR7sqvJsxTm2J01ymPsCXlEoYw9duVQUR3oNy9VxHyuPOXctk2Cnp/vnWDZpQ6g+i7ha1RhyJEQgQEj1jhcQ== dependencies: "@babel/runtime" "^7.15.4" - gatsby-core-utils "^3.6.0" - gatsby-plugin-utils "^3.0.0" + gatsby-core-utils "^3.7.0" + gatsby-plugin-utils "^3.1.0" semver "^7.3.5" sharp "^0.29.3" @@ -6069,7 +6069,7 @@ gatsby-plugin-typescript@^4.7.0: "@babel/runtime" "^7.15.4" babel-plugin-remove-graphql-queries "^4.7.0" -gatsby-plugin-utils@^3.0.0, gatsby-plugin-utils@^3.1.0: +gatsby-plugin-utils@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/gatsby-plugin-utils/-/gatsby-plugin-utils-3.1.0.tgz#56abcc826786ae035a8edd0e652c492bd7b8f40e" integrity sha512-OvRhIKzjaz3WOo/dxSI90ZlclsO2xaj1Dz7vigU2QGPAe8JtRJbNTpgfBZ+JOBeVnDONNbZulVn8S8F/Ra/BZA== From c59e75bdd14eae5b19550b898794918607a5e337 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 13:23:30 +0000 Subject: [PATCH 07/18] Bump gatsby-remark-copy-linked-files in /packages/website Bumps [gatsby-remark-copy-linked-files](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-remark-copy-linked-files) from 5.6.0 to 5.7.0. - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-remark-copy-linked-files/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-remark-copy-linked-files@5.7.0/packages/gatsby-remark-copy-linked-files) --- updated-dependencies: - dependency-name: gatsby-remark-copy-linked-files dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- packages/website/package.json | 2 +- packages/website/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index 022a4470..0af8fe2e 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -27,7 +27,7 @@ "gatsby-plugin-sitemap": "5.7.0", "gatsby-plugin-svgr": "3.0.0-beta.0", "gatsby-remark-classes": "1.0.2", - "gatsby-remark-copy-linked-files": "5.6.0", + "gatsby-remark-copy-linked-files": "5.7.0", "gatsby-remark-images": "6.7.0", "gatsby-remark-prismjs": "6.7.0", "gatsby-remark-responsive-iframe": "5.7.0", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index 840c5b0e..8d0c7c7e 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -6092,10 +6092,10 @@ gatsby-remark-classes@1.0.2: dependencies: unist-util-select "^2.0.2" -gatsby-remark-copy-linked-files@5.6.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/gatsby-remark-copy-linked-files/-/gatsby-remark-copy-linked-files-5.6.0.tgz#05d1aaecbb1a1114b1339071fde0429ed3c41671" - integrity sha512-/gsuAK7KNj9Zuc0ADo6m5rhxemRcPulHKNEr/7VSH521/mZwp6FxK6Co0ngxfL6Z5I4ha65IBCcAFgdPksQQeA== +gatsby-remark-copy-linked-files@5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/gatsby-remark-copy-linked-files/-/gatsby-remark-copy-linked-files-5.7.0.tgz#3a79f4f42d2c552e5c7cc13af22c7dc02d9869cb" + integrity sha512-6I7EQCeJBHO9El9PPIAFeWckbW7E5vt/oHEh4FGu/ZtOdUaaBQS8Xmm4zrX2bsoz0S+aWqqi76QPOWM48HVYWQ== dependencies: "@babel/runtime" "^7.15.4" cheerio "^1.0.0-rc.10" From d2096fda84cd1f500799fd2fd2222e4abad75e6d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 13:53:48 +0000 Subject: [PATCH 08/18] Bump gatsby-source-filesystem from 4.6.0 to 4.7.0 in /packages/website Bumps [gatsby-source-filesystem](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-source-filesystem) from 4.6.0 to 4.7.0. - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-filesystem/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@4.7.0/packages/gatsby-source-filesystem) --- updated-dependencies: - dependency-name: gatsby-source-filesystem dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- packages/website/package.json | 6 +++--- packages/website/yarn.lock | 27 +++++++++++++-------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index 022a4470..3253a5c1 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -19,7 +19,7 @@ "gatsby-plugin-manifest": "4.6.0", "gatsby-plugin-matomo": "0.11.0", "gatsby-plugin-offline": "5.6.0", - "gatsby-plugin-postcss": "5.6.0", + "gatsby-plugin-postcss": "5.7.0", "gatsby-plugin-purgecss": "6.1.0", "gatsby-plugin-react-helmet": "5.7.0", "gatsby-plugin-robots-txt": "1.7.0", @@ -32,11 +32,11 @@ "gatsby-remark-prismjs": "6.7.0", "gatsby-remark-responsive-iframe": "5.7.0", "gatsby-remark-smartypants": "5.7.0", - "gatsby-source-filesystem": "4.6.0", + "gatsby-source-filesystem": "4.7.0", "gatsby-transformer-json": "4.6.0", "gatsby-transformer-remark": "5.7.0", "gatsby-transformer-sharp": "4.6.0", - "gatsby-transformer-yaml": "4.6.0", + "gatsby-transformer-yaml": "4.7.0", "gbimage-bridge": "0.2.1", "http-status-codes": "2.2.0", "jsonp": "0.2.1", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index 840c5b0e..402f2129 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -5983,10 +5983,10 @@ gatsby-plugin-page-creator@^4.7.0: globby "^11.0.4" lodash "^4.17.21" -gatsby-plugin-postcss@5.6.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/gatsby-plugin-postcss/-/gatsby-plugin-postcss-5.6.0.tgz#ee696317eb7601b2e0f5c64b9f9d488376fdb65f" - integrity sha512-AjRLMWMFrmahNSmEYMDwFdDGkUfyDxxAJ2qtteJ3SRAO0Jgb0N9wJM7RkBhAs6H7YuovQIBxoUOo5xrMTlgM4A== +gatsby-plugin-postcss@5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/gatsby-plugin-postcss/-/gatsby-plugin-postcss-5.7.0.tgz#e927a85df77b487fea449204e727544635b21399" + integrity sha512-308pPGZmber/uOF98w2ScVYS/gSNsvHE2MEVdDl5EUg0MK09WXzx83bxJThbp7U/xhuJ9D75yiBi1OjpygIAtg== dependencies: "@babel/runtime" "^7.15.4" postcss-loader "^4.3.0" @@ -6161,17 +6161,16 @@ gatsby-sharp@^0.1.0: "@types/sharp" "^0.29.5" sharp "^0.29.3" -gatsby-source-filesystem@4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/gatsby-source-filesystem/-/gatsby-source-filesystem-4.6.0.tgz#c8f19397a6f980b4d92bd57e8967f814b8b5d1de" - integrity sha512-Ve6VfFJ4moTX7n8uDTGF7K07HdjWkWW7c9Bn1etcS2QcFRRMj/lxQ/2EFpgVM20jtZ60IG1vqnAzDabqz7UxXQ== +gatsby-source-filesystem@4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/gatsby-source-filesystem/-/gatsby-source-filesystem-4.7.0.tgz#89b00e30720b449f9e835651f26c40236089d528" + integrity sha512-tihlE4cxAI9tQnKqCNEKbrrqRQpMP2iBJIaGhc5gGHQ45cRreJHA60HOM0Nw6IzNKkDdCz0cu9XJwgkXIG9Tyg== dependencies: "@babel/runtime" "^7.15.4" chokidar "^3.5.2" - fastq "^1.13.0" file-type "^16.5.3" fs-extra "^10.0.0" - gatsby-core-utils "^3.6.0" + gatsby-core-utils "^3.7.0" got "^9.6.0" md5-file "^5.0.0" mime "^2.5.2" @@ -6249,10 +6248,10 @@ gatsby-transformer-sharp@4.6.0: semver "^7.3.5" sharp "^0.29.3" -gatsby-transformer-yaml@4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/gatsby-transformer-yaml/-/gatsby-transformer-yaml-4.6.0.tgz#e9ef02cea00321a60b74f9e3a6a8f7283a562c10" - integrity sha512-S1xVbA0gVg/edlasoziCnE3Uyp0DzhyBR3pl3xJq/HkTP0RWq1KqbRH9BRJa+qF7h+mQ80VTOtqA9LjL2iYEeQ== +gatsby-transformer-yaml@4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/gatsby-transformer-yaml/-/gatsby-transformer-yaml-4.7.0.tgz#3f4463ee12769ead67e5daedbdaedf8f3333ba31" + integrity sha512-uwTQdwLBW+ibWG2rHYTt3yCzmHDQ8yCLz/vwX4LjRU+VBow0cwm0DwZdQTCBVLufQ7Bx3b3E+bECwgprlku7UA== dependencies: "@babel/runtime" "^7.15.4" js-yaml "^3.14.1" From f6cc07e56eedee1db37cc2661add7b82409762d6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 13:53:59 +0000 Subject: [PATCH 09/18] Bump react-dropzone from 12.0.1 to 12.0.2 in /packages/website Bumps [react-dropzone](https://github.com/react-dropzone/react-dropzone) from 12.0.1 to 12.0.2. - [Release notes](https://github.com/react-dropzone/react-dropzone/releases) - [Commits](https://github.com/react-dropzone/react-dropzone/compare/v12.0.1...v12.0.2) --- updated-dependencies: - dependency-name: react-dropzone dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- packages/website/package.json | 6 +++--- packages/website/yarn.lock | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index 022a4470..bc2902eb 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -19,7 +19,7 @@ "gatsby-plugin-manifest": "4.6.0", "gatsby-plugin-matomo": "0.11.0", "gatsby-plugin-offline": "5.6.0", - "gatsby-plugin-postcss": "5.6.0", + "gatsby-plugin-postcss": "5.7.0", "gatsby-plugin-purgecss": "6.1.0", "gatsby-plugin-react-helmet": "5.7.0", "gatsby-plugin-robots-txt": "1.7.0", @@ -36,7 +36,7 @@ "gatsby-transformer-json": "4.6.0", "gatsby-transformer-remark": "5.7.0", "gatsby-transformer-sharp": "4.6.0", - "gatsby-transformer-yaml": "4.6.0", + "gatsby-transformer-yaml": "4.7.0", "gbimage-bridge": "0.2.1", "http-status-codes": "2.2.0", "jsonp": "0.2.1", @@ -51,7 +51,7 @@ "prop-types": "15.8.1", "react": "17.0.2", "react-dom": "17.0.2", - "react-dropzone": "12.0.1", + "react-dropzone": "12.0.2", "react-helmet": "6.1.0", "react-share": "4.4.0", "react-svg-loader": "3.0.3", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index 840c5b0e..3ae504f7 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -5983,10 +5983,10 @@ gatsby-plugin-page-creator@^4.7.0: globby "^11.0.4" lodash "^4.17.21" -gatsby-plugin-postcss@5.6.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/gatsby-plugin-postcss/-/gatsby-plugin-postcss-5.6.0.tgz#ee696317eb7601b2e0f5c64b9f9d488376fdb65f" - integrity sha512-AjRLMWMFrmahNSmEYMDwFdDGkUfyDxxAJ2qtteJ3SRAO0Jgb0N9wJM7RkBhAs6H7YuovQIBxoUOo5xrMTlgM4A== +gatsby-plugin-postcss@5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/gatsby-plugin-postcss/-/gatsby-plugin-postcss-5.7.0.tgz#e927a85df77b487fea449204e727544635b21399" + integrity sha512-308pPGZmber/uOF98w2ScVYS/gSNsvHE2MEVdDl5EUg0MK09WXzx83bxJThbp7U/xhuJ9D75yiBi1OjpygIAtg== dependencies: "@babel/runtime" "^7.15.4" postcss-loader "^4.3.0" @@ -6249,10 +6249,10 @@ gatsby-transformer-sharp@4.6.0: semver "^7.3.5" sharp "^0.29.3" -gatsby-transformer-yaml@4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/gatsby-transformer-yaml/-/gatsby-transformer-yaml-4.6.0.tgz#e9ef02cea00321a60b74f9e3a6a8f7283a562c10" - integrity sha512-S1xVbA0gVg/edlasoziCnE3Uyp0DzhyBR3pl3xJq/HkTP0RWq1KqbRH9BRJa+qF7h+mQ80VTOtqA9LjL2iYEeQ== +gatsby-transformer-yaml@4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/gatsby-transformer-yaml/-/gatsby-transformer-yaml-4.7.0.tgz#3f4463ee12769ead67e5daedbdaedf8f3333ba31" + integrity sha512-uwTQdwLBW+ibWG2rHYTt3yCzmHDQ8yCLz/vwX4LjRU+VBow0cwm0DwZdQTCBVLufQ7Bx3b3E+bECwgprlku7UA== dependencies: "@babel/runtime" "^7.15.4" js-yaml "^3.14.1" @@ -10492,10 +10492,10 @@ react-dom@17.0.2: object-assign "^4.1.1" scheduler "^0.20.2" -react-dropzone@12.0.1: - version "12.0.1" - resolved "https://registry.yarnpkg.com/react-dropzone/-/react-dropzone-12.0.1.tgz#926d8537405845fa058869e70d7829938eca5552" - integrity sha512-E//nFCJfb8eDZ0zI9bOZ/v+8DOwK+7IY76Fv8u8ogfqX/d/K+32EWkFQ2+O9kF8XfUAyGtSA4cKvCjW4o78Qgg== +react-dropzone@12.0.2: + version "12.0.2" + resolved "https://registry.yarnpkg.com/react-dropzone/-/react-dropzone-12.0.2.tgz#3c34f71f378bc35bf06e8e5a1ccb415a5b7c9917" + integrity sha512-wnU3+QZA9H5XqC+UNdEDs5YuB+XgJh5mQ9Bop4PUtN/2nKTGTpBbfkcsm9OVCYylBHak69Ezjzbhx/0Cb6OfjA== dependencies: attr-accept "^2.2.2" file-selector "^0.4.0" From 2fa46a37af79eebe74e5ce5f1b3e237b6d3cf743 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 14:02:18 +0000 Subject: [PATCH 10/18] Bump gatsby-plugin-offline from 5.6.0 to 5.7.0 in /packages/website Bumps [gatsby-plugin-offline](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-plugin-offline) from 5.6.0 to 5.7.0. - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-offline/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-offline@5.7.0/packages/gatsby-plugin-offline) --- updated-dependencies: - dependency-name: gatsby-plugin-offline dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- packages/website/package.json | 2 +- packages/website/yarn.lock | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index 51c72e61..d6c82c33 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -18,7 +18,7 @@ "gatsby-plugin-image": "2.7.0", "gatsby-plugin-manifest": "4.7.0", "gatsby-plugin-matomo": "0.11.0", - "gatsby-plugin-offline": "5.6.0", + "gatsby-plugin-offline": "5.7.0", "gatsby-plugin-postcss": "5.7.0", "gatsby-plugin-purgecss": "6.1.0", "gatsby-plugin-react-helmet": "5.7.0", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index 7ab2e659..b2d872b6 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -5861,7 +5861,7 @@ gatsby-cli@^4.7.0: yoga-layout-prebuilt "^1.10.0" yurnalist "^2.1.0" -gatsby-core-utils@^3.6.0, gatsby-core-utils@^3.7.0: +gatsby-core-utils@^3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/gatsby-core-utils/-/gatsby-core-utils-3.7.0.tgz#edc928d948a3672d3166b914225a70369325818e" integrity sha512-CboIzpEFbaD4+WrozKl3fMpxUetcaDq0aWPfrfzAtc8l0JMlD3GS2Q/uW7HpcvTAlSGv2ZomTzd2ySLV/AgpTQ== @@ -5953,14 +5953,14 @@ gatsby-plugin-matomo@0.11.0: resolved "https://registry.yarnpkg.com/gatsby-plugin-matomo/-/gatsby-plugin-matomo-0.11.0.tgz#2a4322df78045af0b3f44ba7b8c455d57b526f96" integrity sha512-yvQFOGky3vyEEmmtopDvsrlnZ8htYrgHHD9CCvlFQ6DrGSL+Y01wkbJZBMpiGAiRt/GKh/8MGWcMfSAGoMQM9g== -gatsby-plugin-offline@5.6.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/gatsby-plugin-offline/-/gatsby-plugin-offline-5.6.0.tgz#d1d36140adf8b6cde45b48e1eb8146141b778ef6" - integrity sha512-3ir3P9B6dZGotw4ISe/F3KBZ2zwZtOSQmtOBH6A+KtSlfh4Epyf1VDawiZzBv7QOpbrrjVyL8rs109cIBxlJbA== +gatsby-plugin-offline@5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/gatsby-plugin-offline/-/gatsby-plugin-offline-5.7.0.tgz#dd5c317a848c3bf7e200ddfefd6872f2e0c9c998" + integrity sha512-0mkXsDiJxSDMgKGQUWqMXG5w0XFvojPqTHvZ3FAY5kFfqUwJ+JbA/XY5D5BGuSnU2P/pOUhcXlcg2hHtJ5NATQ== dependencies: "@babel/runtime" "^7.15.4" cheerio "^1.0.0-rc.10" - gatsby-core-utils "^3.6.0" + gatsby-core-utils "^3.7.0" glob "^7.2.0" idb-keyval "^3.2.0" lodash "^4.17.21" From 4603d2a98b98a19869cb8639ef8ccc30510d76b2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 14:02:25 +0000 Subject: [PATCH 11/18] Bump gatsby-transformer-json from 4.6.0 to 4.7.0 in /packages/website Bumps [gatsby-transformer-json](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-transformer-json) from 4.6.0 to 4.7.0. - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-transformer-json/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-transformer-json@4.7.0/packages/gatsby-transformer-json) --- updated-dependencies: - dependency-name: gatsby-transformer-json dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- packages/website/package.json | 2 +- packages/website/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index 51c72e61..6e8493ba 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -33,7 +33,7 @@ "gatsby-remark-responsive-iframe": "5.7.0", "gatsby-remark-smartypants": "5.7.0", "gatsby-source-filesystem": "4.7.0", - "gatsby-transformer-json": "4.6.0", + "gatsby-transformer-json": "4.7.0", "gatsby-transformer-remark": "5.7.0", "gatsby-transformer-sharp": "4.6.0", "gatsby-transformer-yaml": "4.7.0", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index 7ab2e659..19d9f39e 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -6198,10 +6198,10 @@ gatsby-telemetry@^3.7.0: lodash "^4.17.21" node-fetch "^2.6.7" -gatsby-transformer-json@4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/gatsby-transformer-json/-/gatsby-transformer-json-4.6.0.tgz#67fbde53406eb10956c367d56b1d9474f29fb6b7" - integrity sha512-EflPtVk/mE5PajQuOUx1F/GbMniJog2uFl5kITNq/PGxXigYkeA/Xh/kgyQWsGwWN1qj0pJPvHiziA90OEWycg== +gatsby-transformer-json@4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/gatsby-transformer-json/-/gatsby-transformer-json-4.7.0.tgz#0300e4216efc542ce5b99af734069b6faebcedf4" + integrity sha512-0+q/codjMb3SbXH/acU1pohRQEpCpF8/Q+D+cZ+zJ7MZZ5a0WBH17PtvYlsTeCLExBsbViApxRdnZYeNuMa+/A== dependencies: "@babel/runtime" "^7.15.4" bluebird "^3.7.2" From 151c6aba236c2779b62953d9e86a3c0f25f50d26 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 9 Feb 2022 15:10:03 +0100 Subject: [PATCH 12/18] remove unused plugin gatsby-transformer-json --- packages/website/gatsby-config.js | 1 - packages/website/package.json | 1 - packages/website/yarn.lock | 8 -------- 3 files changed, 10 deletions(-) diff --git a/packages/website/gatsby-config.js b/packages/website/gatsby-config.js index 4cba3fd8..a2033c34 100644 --- a/packages/website/gatsby-config.js +++ b/packages/website/gatsby-config.js @@ -44,7 +44,6 @@ module.exports = { `gatsby-plugin-svgr`, `gatsby-plugin-robots-txt`, `gatsby-transformer-sharp`, - `gatsby-transformer-json`, `gatsby-transformer-yaml`, { resolve: `gatsby-transformer-remark`, diff --git a/packages/website/package.json b/packages/website/package.json index a1f0f695..7f16f1ed 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -33,7 +33,6 @@ "gatsby-remark-responsive-iframe": "5.7.0", "gatsby-remark-smartypants": "5.7.0", "gatsby-source-filesystem": "4.7.0", - "gatsby-transformer-json": "4.7.0", "gatsby-transformer-remark": "5.7.0", "gatsby-transformer-sharp": "4.6.0", "gatsby-transformer-yaml": "4.7.0", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index 10918188..8704c963 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -6198,14 +6198,6 @@ gatsby-telemetry@^3.7.0: lodash "^4.17.21" node-fetch "^2.6.7" -gatsby-transformer-json@4.7.0: - version "4.7.0" - resolved "https://registry.yarnpkg.com/gatsby-transformer-json/-/gatsby-transformer-json-4.7.0.tgz#0300e4216efc542ce5b99af734069b6faebcedf4" - integrity sha512-0+q/codjMb3SbXH/acU1pohRQEpCpF8/Q+D+cZ+zJ7MZZ5a0WBH17PtvYlsTeCLExBsbViApxRdnZYeNuMa+/A== - dependencies: - "@babel/runtime" "^7.15.4" - bluebird "^3.7.2" - gatsby-transformer-remark@5.7.0: version "5.7.0" resolved "https://registry.yarnpkg.com/gatsby-transformer-remark/-/gatsby-transformer-remark-5.7.0.tgz#8103f7cf71fe0da603908b0e10baf1c22ae50e32" From 564cf68ab35a2c2d15fe9567e9979be3743f1def Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 14:45:09 +0000 Subject: [PATCH 13/18] Bump gatsby-transformer-sharp from 4.6.0 to 4.7.0 in /packages/website Bumps [gatsby-transformer-sharp](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-transformer-sharp) from 4.6.0 to 4.7.0. - [Release notes](https://github.com/gatsbyjs/gatsby/releases) - [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-transformer-sharp/CHANGELOG.md) - [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-transformer-sharp@4.7.0/packages/gatsby-transformer-sharp) --- updated-dependencies: - dependency-name: gatsby-transformer-sharp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- packages/website/package.json | 2 +- packages/website/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index 7f16f1ed..256ba46c 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -34,7 +34,7 @@ "gatsby-remark-smartypants": "5.7.0", "gatsby-source-filesystem": "4.7.0", "gatsby-transformer-remark": "5.7.0", - "gatsby-transformer-sharp": "4.6.0", + "gatsby-transformer-sharp": "4.7.0", "gatsby-transformer-yaml": "4.7.0", "gbimage-bridge": "0.2.1", "http-status-codes": "2.2.0", diff --git a/packages/website/yarn.lock b/packages/website/yarn.lock index 8704c963..2354a95d 100644 --- a/packages/website/yarn.lock +++ b/packages/website/yarn.lock @@ -6226,10 +6226,10 @@ gatsby-transformer-remark@5.7.0: unist-util-select "^3.0.4" unist-util-visit "^2.0.3" -gatsby-transformer-sharp@4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/gatsby-transformer-sharp/-/gatsby-transformer-sharp-4.6.0.tgz#a9c2ee2007df2ffb6a941c736588295bca26c10a" - integrity sha512-hf1GohwPhjKg1tRFI3GfJS3SxVoXI+j7MqwPsWetzRvaFy+3kecmU/azklnTfT7/2LexfDxtso9/lCHgFl5fIQ== +gatsby-transformer-sharp@4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/gatsby-transformer-sharp/-/gatsby-transformer-sharp-4.7.0.tgz#544f3fc3d1f4cc68dbb02fad59a81e713b09f677" + integrity sha512-5t2MIm7AY0M2hrPHhxolGQZLliasZYiG0i1vke2KcW7vSZAmgmDKZBEbAiApqk8IiKFlTtcq4mv772dBx3YQwQ== dependencies: "@babel/runtime" "^7.15.4" bluebird "^3.7.2" From 79c82b9e0b17f67c71859b8fdd48a70aedb1260f Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 9 Feb 2022 16:05:45 +0100 Subject: [PATCH 14/18] refactor assigning required env variables --- packages/health-check/src/utils.js | 37 +++++++++++++++++++----------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/packages/health-check/src/utils.js b/packages/health-check/src/utils.js index 5bc7a0c3..f53be68d 100644 --- a/packages/health-check/src/utils.js +++ b/packages/health-check/src/utils.js @@ -41,6 +41,23 @@ function ensureValidJSON(object) { return JSON.parse(stringified); } +/** + * Get variable value from environment (process.env) + * Exit with code 1 if variable is not set or empty + * @param {string} name variable name + * @returns {string} + */ +function getRequiredEnvironmentVariable(name) { + const value = process.env[name]; + + if (!value) { + console.log(`${name} cannot be empty`); + process.exit(1); + } + + return value; +} + /** * Authenticate with given credentials and return auth cookie * Creates new account if username does not exist @@ -57,23 +74,15 @@ function getAuthCookie(forceAuth = false) { // do not authenticate if it is not required by portal limit access rule if (!forceAuth && !["authenticated", "subscription"].includes(process.env.ACCOUNTS_LIMIT_ACCESS)) return ""; - const portalDomain = process.env.PORTAL_DOMAIN; - const email = process.env.ACCOUNTS_TEST_USER_EMAIL; - const password = process.env.ACCOUNTS_TEST_USER_PASSWORD; - - try { - if (!portalDomain) throw new Error("PORTAL_DOMAIN cannot be empty"); - if (!email) throw new Error("ACCOUNTS_TEST_USER_EMAIL cannot be empty"); - if (!password) throw new Error("ACCOUNTS_TEST_USER_PASSWORD cannot be empty"); - } catch (error) { - console.log(error.message); - process.exit(1); - } + // assign all required environment variables + const portalDomain = getRequiredEnvironmentVariable("PORTAL_DOMAIN"); + const email = getRequiredEnvironmentVariable("ACCOUNTS_TEST_USER_EMAIL"); + const password = getRequiredEnvironmentVariable("ACCOUNTS_TEST_USER_PASSWORD"); async function authenticate() { try { // authenticate with given test user credentials - const response = await got.post(`https://account.${process.env.PORTAL_DOMAIN}/api/login`, { + const response = await got.post(`https://account.${portalDomain}/api/login`, { json: { email, password }, }); @@ -95,7 +104,7 @@ function getAuthCookie(forceAuth = false) { // 401 means that service worked but user could not have been authenticated if (error.response && error.response.statusCode === 401) { // sign up with the given credentials - await got.post(`https://account.${process.env.PORTAL_DOMAIN}/api/user`, { + await got.post(`https://account.${portalDomain}/api/user`, { json: { email, password }, }); From d91b71ae4829a40e432a3dd2940a345d56fa496e Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 9 Feb 2022 15:53:18 +0100 Subject: [PATCH 15/18] escape uri on subdomain skylink requests --- docker/nginx/conf.d/server/server.skylink | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/server/server.skylink b/docker/nginx/conf.d/server/server.skylink index 14c0870e..11ae48d7 100644 --- a/docker/nginx/conf.d/server/server.skylink +++ b/docker/nginx/conf.d/server/server.skylink @@ -6,7 +6,12 @@ include /etc/nginx/conf.d/include/init-optional-variables; location / { set_by_lua_block $skylink { return string.match(ngx.var.host, "%w+") } - set $path $uri; + set_by_lua_block $path { + -- strip ngx.var.request_uri from query params - this is basically the same as ngx.var.uri but + -- do not use ngx.var.uri because it will already be unescaped and we need to use escaped path + -- examples: escaped uri "/b%20r56+7" and unescaped uri: "/b r56 7" + return string.gsub(ngx.var.request_uri, "?.*", "") + } include /etc/nginx/conf.d/include/location-skylink; } From 1d006ef163e5837232f86d10bd6b28dcbf5f5059 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 9 Feb 2022 16:59:03 +0100 Subject: [PATCH 16/18] changelog entry --- .../bugs-fixed/escape-uri-on-subdomain-skylink-requests.md | 1 + docker/nginx/conf.d/server/server.skylink | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/items/bugs-fixed/escape-uri-on-subdomain-skylink-requests.md diff --git a/changelog/items/bugs-fixed/escape-uri-on-subdomain-skylink-requests.md b/changelog/items/bugs-fixed/escape-uri-on-subdomain-skylink-requests.md new file mode 100644 index 00000000..3beabc7e --- /dev/null +++ b/changelog/items/bugs-fixed/escape-uri-on-subdomain-skylink-requests.md @@ -0,0 +1 @@ +- fixed a bug when accessing file from skylink via subdomain with a filename that had escaped characters diff --git a/docker/nginx/conf.d/server/server.skylink b/docker/nginx/conf.d/server/server.skylink index 11ae48d7..a8f659f1 100644 --- a/docker/nginx/conf.d/server/server.skylink +++ b/docker/nginx/conf.d/server/server.skylink @@ -9,7 +9,7 @@ location / { set_by_lua_block $path { -- strip ngx.var.request_uri from query params - this is basically the same as ngx.var.uri but -- do not use ngx.var.uri because it will already be unescaped and we need to use escaped path - -- examples: escaped uri "/b%20r56+7" and unescaped uri: "/b r56 7" + -- examples: escaped uri "/b%20r56+7" and unescaped uri "/b r56 7" return string.gsub(ngx.var.request_uri, "?.*", "") } From b1c5f930f6a3b58ac9c102e54224243f1e2dce51 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Thu, 10 Feb 2022 12:33:17 +0100 Subject: [PATCH 17/18] Fix db_backup.sh crontab entry. --- setup-scripts/support/crontab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-scripts/support/crontab b/setup-scripts/support/crontab index 29c8ec1a..9bc5cd34 100644 --- a/setup-scripts/support/crontab +++ b/setup-scripts/support/crontab @@ -2,6 +2,6 @@ 0 0,8,16 * * * /home/user/skynet-webportal/setup-scripts/log-checker.py /home/user/skynet-webportal/.env sia 8 0 * * * * /home/user/skynet-webportal/setup-scripts/health-checker.py /home/user/skynet-webportal/.env sia 1 30 */4 * * * /home/user/skynet-webportal/setup-scripts/blocklist-airtable.py /home/user/skynet-webportal/.env -0 4 * * * /home/user/skynet-webportal/scripts/db_backup.sh 1 >> /home/user/skynet-webportal/logs/db_backup_`date +"%Y-%m-%d-%H%M"`.log 2 > &1 +6 13 * * * /home/user/skynet-webportal/scripts/db_backup.sh 1>>/home/user/skynet-webportal/logs/db_backup.log 2>>/home/user/skynet-webportal/logs/db_backup.log 0 5 * * * /home/user/skynet-webportal/scripts/es_cleaner.py 1 http://localhost:9200 15 * * * * /home/user/skynet-webportal/scripts/nginx-prune.sh From b827616fabb80eea34d0db190f5aeb0c57f3dccc Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 10 Feb 2022 14:50:36 +0100 Subject: [PATCH 18/18] disable nginx cache when skyd cache is enabled --- docker-compose.yml | 3 ++- docker/nginx/conf.d/include/proxy-cache-downloads | 9 ++++++++- docker/nginx/nginx.conf | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e63df946..f511eec5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,7 +29,6 @@ services: - SKYD_DISK_CACHE_SIZE=${SKYD_DISK_CACHE_SIZE:-53690000000} # 50GB - SKYD_DISK_CACHE_MIN_HITS=${SKYD_DISK_CACHE_MIN_HITS:-3} - SKYD_DISK_CACHE_HIT_PERIOD=${SKYD_DISK_CACHE_HIT_PERIOD:-3600} # 1h - env_file: - .env volumes: @@ -65,6 +64,8 @@ services: logging: *default-logging env_file: - .env + environment: + - SKYD_DISK_CACHE_ENABLED=${SKYD_DISK_CACHE_ENABLED:-false} volumes: - ./docker/data/nginx/cache:/data/nginx/cache - ./docker/data/nginx/blocker:/data/nginx/blocker diff --git a/docker/nginx/conf.d/include/proxy-cache-downloads b/docker/nginx/conf.d/include/proxy-cache-downloads index 8481ebb9..c7405857 100644 --- a/docker/nginx/conf.d/include/proxy-cache-downloads +++ b/docker/nginx/conf.d/include/proxy-cache-downloads @@ -11,4 +11,11 @@ proxy_cache_bypass $cookie_nocache $arg_nocache; # no cache - this will ignore cache on request (status MISS) # and does not store file in cache under no condition set_if_empty $nocache "0"; -proxy_no_cache $nocache; + +# map skyd env variable value to "1" for true and "0" for false (expected by proxy_no_cache) +set_by_lua_block $skyd_disk_cache_enabled { + return os.getenv("SKYD_DISK_CACHE_ENABLED") == "true" and "1" or "0" +} + +# disable cache when nocache is set or skyd cache is enabled +proxy_no_cache $nocache $skyd_disk_cache_enabled; diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index eb5494c9..5d7e5944 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -31,6 +31,7 @@ env SKYNET_SERVER_API; env PORTAL_MODULES; env ACCOUNTS_LIMIT_ACCESS; env SIA_API_PASSWORD; +env SKYD_DISK_CACHE_ENABLED; events { worker_connections 8192;