Граф коммитов

1004 Коммитов

Автор SHA1 Сообщение Дата
Reino Muhl 05d7265292
feat(many): add partial stack startup scripts
Because:

- During development it could be useful to start only parts of the stack
  needed for development on specific domains.

This commit:

- Provides additional stack startup options to only start specific parts
  of the stack, by using nx projects and tags.

Closes #FXA-9771
2024-06-04 11:41:51 -04:00
dschom 40615780f1
task(auth, graphql-api, admin-server): Update event-broker's profileDataChange data schema and remove the metrics-change event
Because:
- In a previous PR, a new event type was created, but we should have repurposed the profileDataChange event type
- During the previous deployment it was noted that there are different ways to configure sns, and that a topic arn and/or topic endpoint might not be required

This Commit:
- Relaxes requirements for notifier service.
  - Makes snsTopicEndpoint optional
  - Makes snsTopicArn optional
- Removes the `metricsChange` event type
- Augments the `profileDataChange` type schema to support, locale, metricsEnabled, totpEnabled, accountDisabled, and accountLocked states.
- Emmits the `profileDataChange` whenever corresponding account data is mutated.
2024-05-23 18:39:15 -07:00
Ben Bangert fae80ae7e3
chore: vendor typesafe-node-firestore
Because:

* We don't want to maintain small external libs instead of using our
  monorepo.

This commit:

* Vendors in the typesafe-node-firestore typings.
2024-05-20 19:10:19 -07:00
Lisa Chan b0bdf9f861
feat(libs): Add InvoicePreview to getCart Action 2024-05-16 14:37:46 -04:00
dschom 0ed141a5bf
task(admin): Expose key stretch version on account 2024-05-13 16:24:23 -07:00
Ben Bangert 477c091d36
Merge pull request #16848 from mozilla/feat/add-pem-jwk
feat: vendor and update pem-jwk library
2024-05-03 07:15:28 -07:00
Ben Bangert db8e62f7f7
feat: vendor and update pem-jwk library
Because:

* The pem-jwk library wasn't using the latest crypto library
  functionality and included older dependencies.

This commit:

* Pulls in pem-jwk functionality using the crypto library.
2024-05-02 21:49:24 -07:00
Lisa Chan 85c6a78abb
Merge pull request #16838 from mozilla/dep_stripe
chore(deps): Update Stripe dependency
2024-05-02 20:19:00 -04:00
Lisa Chan fefc48dd32
chore(deps): Update Stripe dependency 2024-05-02 17:32:13 -04:00
dependabot[bot] 41c449837d
chore(deps): bump googleapis from 134.0.0 to 135.1.0
Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 134.0.0 to 135.1.0.
- [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases)
- [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/release-please-config.json)
- [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v134.0.0...googleapis-v135.1.0)

---
updated-dependencies:
- dependency-name: googleapis
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 06:51:52 +00:00
dependabot[bot] b0dfc53f54
chore(deps): bump ts-morph from 21.0.1 to 22.0.0
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 21.0.1 to 22.0.0.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/21.0.1...22.0.0)

---
updated-dependencies:
- dependency-name: ts-morph
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 14:43:50 +00:00
dependabot[bot] ea7f49d07d
chore(deps-dev): bump supertest from 6.3.0 to 7.0.0
Bumps [supertest](https://github.com/ladjs/supertest) from 6.3.0 to 7.0.0.
- [Release notes](https://github.com/ladjs/supertest/releases)
- [Commits](https://github.com/ladjs/supertest/compare/v6.3.0...v7.0.0)

---
updated-dependencies:
- dependency-name: supertest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 07:18:23 +00:00
Ben Bangert b81be41552
chore: update nest to 10.3.4
Because:

* The latest version of nest is 10.3.4.

This commit:

* Updates the version of nest to 10.3.4 and nest-cli
  to 10.3.2.
2024-04-23 17:19:41 -07:00
dependabot[bot] bb67eb928c
chore(deps): bump @google-cloud/tasks from 4.1.0 to 5.3.0
Bumps [@google-cloud/tasks](https://github.com/googleapis/google-cloud-node/tree/HEAD/packages/google-cloud-tasks) from 4.1.0 to 5.3.0.
- [Release notes](https://github.com/googleapis/google-cloud-node/releases)
- [Changelog](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-tasks/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-node/commits/dlp-v5.3.0/packages/google-cloud-tasks)

---
updated-dependencies:
- dependency-name: "@google-cloud/tasks"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-03 06:25:27 +00:00
dependabot[bot] 4749295702
chore(deps): bump express from 4.18.2 to 4.19.2
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 09:00:10 +00:00
Lisa Chan 9c60f70eb0
Merge pull request #16567 from mozilla/dependabot/npm_and_yarn/googleapis-134.0.0
chore(deps): bump googleapis from 131.0.0 to 134.0.0
2024-03-15 09:38:29 -04:00
Ben Bangert c23e78eeed
Merge pull request #16563 from mozilla/chore/update-tsconfig-for-node-20
chore: update Node to 20 LTS, TypeScript, tsconfig
2024-03-14 12:56:34 -07:00
Ben Bangert c28b061257
chore: update Node to LTS 20, TypeScript, tsconfig
Because:

* We want to update to Node 20 LTS.
* We want to target the JS output of Node 20.
* We want to use the latest TypeScript 5.4

This commit:

* Updates the Node version to 20 LTS.
* Updates the TypeScript version and related TS libs
  to 5.4.
* Updates tsconfig for the new Node 20 target.
2024-03-14 11:54:20 -07:00
Reino Muhl 60d49d9a50
fix(admin): use mock stripe factory in unit test
Because:

* While running Admin Server unit tests the "Stripe Auth Error" warning
  would show up after stripe.service.spec.ts tests were run.

This commit:

* Replace StripeFactory with mockStripeFactory for unit tests.

Closes #
2024-03-14 09:17:31 -04:00
dependabot[bot] c78da265b4
chore(deps): bump googleapis from 131.0.0 to 134.0.0
Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 131.0.0 to 134.0.0.
- [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases)
- [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/release-please-config.json)
- [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v131.0.0...googleapis-v134.0.0)

---
updated-dependencies:
- dependency-name: googleapis
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-14 06:37:52 +00:00
dschom aaa625ce15
task(admin-panel): Hookup account delete
Because:
- We want to delete accounts from the admin panel

This Commit:
- Adds cloud task emulator pm2 service
- Creates cloud-task nx lib for interacting with cloud tasks
- Creates PageDeleteAccount in admin panel
- Adds ability to delete accounts to admin server's account resolver
- Fixes broken admin panel configuration
- Fixes broken admin server configuration
2024-03-13 11:26:09 -07:00
Dan Schomburg 3f02bd5952
Revert "chore: update node to LTS 20" 2024-03-13 10:00:47 -07:00
Ben Bangert 618ac1cd4f
Merge pull request #16555 from mozilla/chore/update-node-dep-20
chore: update node to LTS 20
2024-03-13 07:42:11 -07:00
Meghan Sardesai 380caf6ab9
feat(auth): add boolean flag that skips Stripe comparison in favour of Contentful
Because:

* We want a seamless cutover from Stripe metadata to Contentful.

This commit:

* Adds a boolean feature flag to use Contentful data directly.

Closes FXA-9062
2024-03-12 21:46:09 -04:00
Ben Bangert a022106a34
chore: update node to LTS 20
Because:

* We want to use the latest LTS version of node.

This commit:

* Updates the .nvmrc/Dockerfile and package.json
  files to use node 20.
2024-03-12 18:25:24 -07:00
dschom e7b4d56d48
bug(content): Fix SENTRY_TRACES_SAMPLE_RATE not being applied
Because:
- SENTRY_TRACES_SAMPLE_RATE was having no effect

This Commit:
- Fixes oversight where sample rate wasn't being copied into the config sent to client side
- Stops defaulting tracesSampleRate to 1.0, since this could result in quota exhaustion
2024-03-08 12:06:46 -08:00
dependabot[bot] 4f13b57694
chore(deps): bump knex from 2.4.2 to 3.1.0
Bumps [knex](https://github.com/knex/knex) from 2.4.2 to 3.1.0.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/compare/2.4.2...3.1.0)

---
updated-dependencies:
- dependency-name: knex
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-01 06:39:18 +00:00
Barry Chen 4f5aa78942
chore(redis): add password config for oauth redis 2024-02-21 13:43:07 -06:00
dschom 6902ac3b03
task(shared, graphql): Record ip in security events 2024-02-12 18:21:15 -08:00
Barry Chen 01295decce
Merge pull request #16403 from mozilla/dependabot/npm_and_yarn/esbuild-register-3.5.0
chore(deps-dev): bump esbuild-register from 3.2.0 to 3.5.0
2024-02-12 14:09:25 -06:00
Reino Muhl 2df7ca494a
chore(nx): upgrade to nx 18
Because:

* Want to migrate Nx to latest

This commit:

* Migrate nx to 18 using nx cli migrate latest
* Readd a few dev dependancies back into packages/**/package.json
  * Behavior of `npx nx...` commands seems to have changed, resulting in
    multiple "command not found: <library>" errors, where <library>
    refers to libaries used in packages/**/package.json scripts, such as
    tailwindcss, tsc-alias, nx, etc.
* Updates nx cache location for Circle CI

Closes #FXA-8880
2024-02-12 09:01:00 -05:00
dependabot[bot] 71e846d491
chore(deps-dev): bump esbuild-register from 3.2.0 to 3.5.0
Bumps esbuild-register from 3.2.0 to 3.5.0.

---
updated-dependencies:
- dependency-name: esbuild-register
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 07:08:15 +00:00
Ben Bangert 9126901649
chore: update TS to 5.3.3 and ts-jest
Because:

* We want to keep our dependencies up to date.

This commit:

* Updates TypeScript to 5.3.3 and ts-jest to
  29.1.2.
2024-02-09 15:52:20 -08:00
Ben Bangert 68958f4dc3
chore: update nestjs dev dependencies
Because:

* We want to keep our dependencies up to date.

This commit:

* Updates nestjs dev dependencies to the latest versions.
2024-02-09 15:17:30 -08:00
Ben Bangert 9e654f9579
chore: update nestjs and related packages
Because:

* We want to keep up to date on nestjs and related packages.

This commit:

* Updates nestjs and related packages to the latest versions.
2024-02-08 13:12:16 -08:00
dependabot[bot] 6ac77dbedb
chore(deps): bump @golevelup/ts-jest from 0.3.3 to 0.4.0
Bumps [@golevelup/ts-jest](https://github.com/golevelup/nestjs) from 0.3.3 to 0.4.0.
- [Commits](https://github.com/golevelup/nestjs/compare/@golevelup/ts-jest@0.3.3...@golevelup/ts-jest@0.4.0)

---
updated-dependencies:
- dependency-name: "@golevelup/ts-jest"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-02 06:46:36 +00:00
dependabot[bot] 19a92efc1e
chore(deps): bump googleapis from 109.0.1 to 131.0.0
Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 109.0.1 to 131.0.0.
- [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases)
- [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/release-please-config.json)
- [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v109.0.1...googleapis-v131.0.0)

---
updated-dependencies:
- dependency-name: googleapis
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-01 06:47:34 +00:00
dschom 5a58b355bd
task(settings, content, admin): Support V2 key stretching on the front end
Because:
- We want to support V2 key stretching
- We want to enable V2 key stretching via and experiment

This Commit:
- Adds support to fxa-auth-client so that it can run in either V1 or V2 key stretching mode
- Adds experiment to toggle on and off V2 key stretching
- Updates content server to apply V2 key stretching when experiment is enabled, or `quickstretch=2` is in url
- Updates settings to apply V2 key stretching when experiment is enabled, or `quickstretch=2` is in url
- Updates graphql-server to support V2 key stretching parameters
- Adds functional test coverage to ensure that all combinations of V1 and V2 key stretch user flows are compatible.
- Ensures that the keyStretchToken and uwrapBKey are sent to firefox depending on which key stretch version was used
2024-01-31 10:57:16 -08:00
Ben Bangert e4ae527c15
fix(backstage): use api ref now that its allowed
Because:

* We should now be able to use the API location ref.
* We want to use the right group name.

This commit:

* Updates the backstage files to use the new API location ref.
* Updates the backstage files to use the right group name.
2024-01-25 08:53:42 -08:00
Ben Bangert 8e07687c06
fix(backstage): update entity references
Because:

* Backstage wants entity references to include kind.

This commit:

* Add's missing kind to entity references.
2024-01-24 18:22:10 -08:00
Ben Bangert 19f9442474
Merge pull request #16259 from mozilla/feat/backstage-metadata-setup-1
feat(backstage): setup initial backstage metadata
2024-01-24 14:10:57 -08:00
Ben Bangert a7e69629e6
feat(backstage): setup initial backstage metadata
Because:

* We want to test Backstage for software catalog uses.

This commit:

* Adds a catalog-info.yaml file to the root of the repo, with individual
  entries for each package.
2024-01-24 13:33:37 -08:00
Valerie Pomerleau e6d5833e9a
feat(auth): Add atLeast18AtReg value to account
Because:

* Some RPs (currently only Moz Social) would like to know if users were at least 18 at time of account registration to prevent asking users a second time if we've already confirmed at COPPA check that they are at least 18

This commit:

* Adds a new atLeast18AtReg column in the account database, with default set to null for existing accounts
* At account registration via backbone or React, checks if the submitted age is at least 18 and store the response as a boolean value (we do not store the exact age)
* Makes this value available to RPs at the v1/profile endpoint via account/profile

Closes #FXA-8751
2024-01-22 22:13:41 -08:00
Dan Schomburg 4e60abd886
Merge pull request #16150 from mozilla/FXA-8398.2
task(all): Add support for sentry performance monitoring
2023-12-20 08:28:47 -08:00
dependabot[bot] 75bcda8931
chore(deps): bump ts-morph from 20.0.0 to 21.0.1
Bumps [ts-morph](https://github.com/dsherret/ts-morph) from 20.0.0 to 21.0.1.
- [Release notes](https://github.com/dsherret/ts-morph/releases)
- [Commits](https://github.com/dsherret/ts-morph/compare/20.0.0...21.0.1)

---
updated-dependencies:
- dependency-name: ts-morph
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-20 06:37:45 +00:00
dschom bd7629dc02
task(all): Add support for sentry performance monitoring 2023-12-19 16:05:05 -08:00
dschom 972e0c931b
task(all): Upgrade sentry
Because:
- We want to update sentry across the board

This Commit:
- Removes sentry packages in workspaces
- Adds sentry packages to root
2023-12-11 10:16:28 -08:00
dschom cf2636aa8d
Because:
- We want to see performance metrics in Sentry
- We want to see traces in Sentry
- We still want to see otel traces in GCP (jaeger locally)

This pull request
- Sets the Sentry instrumenter to otel for server side sentry configs
- Converts otel traces to Sentry traces
- Propagates otel traces to Sentry
- Adds fxa-shared/monitoring
- Cleans up initialization for sentry and tracing
- Makes SURE sentry and otel are initialized first! (This is important! The order matters here!)
- Upgrades sentry npm packages
- Upgrades otel npm packages
- Puts these packages dependencies in the root package.json
2023-12-07 12:01:20 -08:00
Lauren Zugai 648e944c0d
chore(all): Move gql dependencies to root package.json
Because:
* We want to move shared deps to the root package.json

This commit:
* Removes packages from several package.jsons as they are already present in root.json
* Moves @apollo/client to root package.json
2023-11-30 12:58:53 -06:00
Lauren Zugai 0cdee94037
chore(all): Upgrade GQL and dependencies
Because:
* We want to use the latest graphql dependency

This commit:
* Updates GQL dep and all packages relying on it
* Moves some dependencies to root package.json
* Removes a couple of deps we aren't using
* Addresses breaking changes, updates related tests and mocks
* Fixes type errors
* Prettifies contentful autogenerated files

closes FXA-8489

Co-authored-by: Ben Bangert <100193+bbangert@users.noreply.github.com>
Co-authored-by: Julian Poyourow <julianpoyo@gmail.com>
Co-authored-by: Reino Muhl <reino.muhl@gmail.com>
2023-11-30 11:47:57 -06:00