Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudFront integration v2 #198

Merged
merged 56 commits into from
Feb 29, 2024
Merged

CloudFront integration v2 #198

merged 56 commits into from
Feb 29, 2024

Commits on Feb 26, 2024

  1. feat: rollout as a code (#161)

    * feat: implement single CloudFormation template
    
    * fix: remove old templates
    
    * fix: remove whitespaces
    
    * feat: attach domain name and its certificate to CloudFront distribution
    
    * feat: add condition to attach aliases
    
    * fix: add NoValue for default properties
    
    * chore: minor change
    
    * chore: fix description
    
    * feat: ability to specify multiple domain names
    
    * fix: replace secret's JSON creation to basic join func
    
    * fix: don't ask for secret region, use us-east-1 by default
    
    * fix: domainName to domainNames
    
    * feat: add cfn-guard rules for the template
    
    * feat: add GitHub action for cfn validation
    
    * fix: fix call
    
    * fix: fix paths
    
    ---------
    
    Co-authored-by: Sergey Shelomentsev <sergey.shelomentsev@fingerprint.com>
    Sergey Shelomentsev and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    0636c1a View commit details
    Browse the repository at this point in the history
  2. fix: remove CodePipeline part from mgmt code

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    fb79578 View commit details
    Browse the repository at this point in the history
  3. fix: remove CodePipeline client

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    ed7d52d View commit details
    Browse the repository at this point in the history
  4. feat: add event and ctx types

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    82c053b View commit details
    Browse the repository at this point in the history
  5. fix: set correct type for public URL events

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    379ec65 View commit details
    Browse the repository at this point in the history
  6. feat: update secrets manager to V3, retrieve secret in mgmt-lambda

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    a60bee4 View commit details
    Browse the repository at this point in the history
  7. feat: introduce deployment settings

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    ec13d5f View commit details
    Browse the repository at this point in the history
  8. feat: add endpoints structure and error handlers

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    c473539 View commit details
    Browse the repository at this point in the history
  9. feat: add lambda function update

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    38b445f View commit details
    Browse the repository at this point in the history
  10. fix: remove aws-sdk v2 usage

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    b1d0d72 View commit details
    Browse the repository at this point in the history
  11. feat: use AWS SDK v3 Client mock for testing

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    0bb22ce View commit details
    Browse the repository at this point in the history
  12. fix: update logging

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    07664bc View commit details
    Browse the repository at this point in the history
  13. fix: update handleResult tests with comparing hrefs

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    aeb49c8 View commit details
    Browse the repository at this point in the history
  14. chore: remove unused test function

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    02fea3e View commit details
    Browse the repository at this point in the history
  15. feat: pass AWS clients into handlers

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    1aa3dc8 View commit details
    Browse the repository at this point in the history
  16. test: add tests for mgmt-lambda handlers

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    d5823f2 View commit details
    Browse the repository at this point in the history
  17. test: add basic test for update handler

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    8f43aa1 View commit details
    Browse the repository at this point in the history
  18. test: add basic tests for lambda call

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    0257aae View commit details
    Browse the repository at this point in the history
  19. test: update app test

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    bc94c65 View commit details
    Browse the repository at this point in the history
  20. test: fix mgmt-lambda app test

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    a767db4 View commit details
    Browse the repository at this point in the history
  21. ci: update coverage source

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    1562ec4 View commit details
    Browse the repository at this point in the history
  22. chore: lint fix

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    ae47160 View commit details
    Browse the repository at this point in the history
  23. test: add more test for mgmt-lambda handler

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    ddf8ac7 View commit details
    Browse the repository at this point in the history
  24. chore: address review comments, fix tests

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    0fcf92e View commit details
    Browse the repository at this point in the history
  25. feat: reworked getting env, updated tests

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    0b29764 View commit details
    Browse the repository at this point in the history
  26. chore: else block

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    09820f7 View commit details
    Browse the repository at this point in the history
  27. feat: update lambda existence check

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    403680c View commit details
    Browse the repository at this point in the history
  28. feat: add settings secret, update mgmt lambda permissions (#162)

    Sergey Shelomentsev authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    ab3caa5 View commit details
    Browse the repository at this point in the history
  29. feat: introduce mgmt-token scheme for authorization (#176)

    Sergey Shelomentsev authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    c884027 View commit details
    Browse the repository at this point in the history
  30. feat: upgrade Lambda functions runtime to Node 20

    BREAKING CHANGE: use node 20
    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    2818c30 View commit details
    Browse the repository at this point in the history
  31. feat: increase timeout for Fingerprint lambda

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    1e0ae54 View commit details
    Browse the repository at this point in the history
  32. ci: update node version to v20

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    429fcc3 View commit details
    Browse the repository at this point in the history
  33. test: update guard rules for the template

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    bf7d7aa View commit details
    Browse the repository at this point in the history
  34. chore: change URLs to Lambda functions v2 (#179)

    Sergey Shelomentsev authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    5db4df9 View commit details
    Browse the repository at this point in the history
  35. feat: improve error handling in mgmt-lambda

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    3736d14 View commit details
    Browse the repository at this point in the history
  36. chore: fix exception name

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    2c5e2af View commit details
    Browse the repository at this point in the history
  37. feat(mgmt-lambda-update): introduce error codes

    Orkuncakilkaya authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    6929756 View commit details
    Browse the repository at this point in the history
  38. test: add mgmt lambda update endpoint tests

    Orkuncakilkaya authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    c8cec1b View commit details
    Browse the repository at this point in the history
  39. chore: review changes for inter-482

    Orkuncakilkaya authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    1fa0e42 View commit details
    Browse the repository at this point in the history
  40. chore: lambda check null or undefined

    Orkuncakilkaya authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    b8953f9 View commit details
    Browse the repository at this point in the history
  41. chore: xErrorCode to code and verbose error code names

    Orkuncakilkaya authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    51a4dbe View commit details
    Browse the repository at this point in the history
  42. chore: use readonly instead of getter for code field

    Orkuncakilkaya authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    5b89dca View commit details
    Browse the repository at this point in the history
  43. chore: make code field public

    Orkuncakilkaya authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    09d209d View commit details
    Browse the repository at this point in the history
  44. test: use await expect instead of assertions

    Orkuncakilkaya authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    64a947b View commit details
    Browse the repository at this point in the history
  45. test: add all cases for update endpoint

    Orkuncakilkaya authored and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    5a57276 View commit details
    Browse the repository at this point in the history
  46. feat: rework logging (#184)

    * chore: remove usage of Winston logger
    
    * chore: remove Winston dependency
    
    * feat: set log level
    
    ---------
    
    Co-authored-by: Sergey Shelomentsev <sergey.shelomentsev@fingerprint.com>
    Sergey Shelomentsev and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    a88941c View commit details
    Browse the repository at this point in the history
  47. ci: publish template.yml into S3 bucket (#185)

    Co-authored-by: Sergey Shelomentsev <sergey.shelomentsev@fingerprint.com>
    Sergey Shelomentsev and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    efddf15 View commit details
    Browse the repository at this point in the history
  48. feat: update all cache behavior that has fingerprint pro association (#…

    …186)
    
    Co-authored-by: Sergey Shelomentsev <sergey.shelomentsev@fingerprint.com>
    Sergey Shelomentsev and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    2970364 View commit details
    Browse the repository at this point in the history
  49. fix: cloudformation templatex (#188)

    * chore: fix CloudFormation template
    
    * chore: update guard rules
    
    ---------
    
    Co-authored-by: Sergey Shelomentsev <sergey.shelomentsev@fingerprint.com>
    Sergey Shelomentsev and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    a32e4ff View commit details
    Browse the repository at this point in the history
  50. feat: update package management (#189)

    * chore: switch to pnpm
    
    * chore: fix external dependencies exclusion
    
    * chore: add types
    
    * chore: update dependencies to latest versions
    
    * chore: update husky
    
    * chore: install @fingerprint dx dependencies
    
    * chore: update commitlint config
    
    * chore: use @fingerprint dx eslint plugin
    
    * chore: extend typescript config with dx config
    
    * chore: add pnpm workspace
    
    * chore: fix eslint
    
    * chore: remove eslint dependencies
    
    * chore: update tsconfig
    
    ---------
    
    Co-authored-by: Sergey Shelomentsev <sergey.shelomentsev@fingerprint.com>
    Sergey Shelomentsev and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    5135b1b View commit details
    Browse the repository at this point in the history
  51. chore: update linter (#193)

    * chore: update eslint and prettier configs
    
    * chore: lint code
    
    ---------
    
    Co-authored-by: Sergey Shelomentsev <sergey.shelomentsev@fingerprint.com>
    Sergey Shelomentsev and Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    b13e517 View commit details
    Browse the repository at this point in the history
  52. chore: remove @aws types from tsconfig

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    c7c8f30 View commit details
    Browse the repository at this point in the history
  53. chore: remove whatwg-fetch

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    b567a8b View commit details
    Browse the repository at this point in the history
  54. chore: uncomment tests

    Sergey Shelomentsev committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    dce602c View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. test: adjust tests to the new mocker

    Sergey Shelomentsev committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    51780d4 View commit details
    Browse the repository at this point in the history
  2. chore: rename Cloudfront -> CloudFront

    Sergey Shelomentsev committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    4f8196d View commit details
    Browse the repository at this point in the history