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

Aut 2578/use common headers in all services #1635

Merged
merged 20 commits into from
May 22, 2024

Conversation

BeckaL
Copy link
Contributor

@BeckaL BeckaL commented May 21, 2024

What

Switches all services over to send common security headers, as part of the cloudfront initiative.

How to review

  1. Code Review commit by commit

Related PRs

This has already been done for a few services, e.g. #1620

@BeckaL BeckaL force-pushed the AUT-2578/use-common-headers-in-all-services branch 6 times, most recently from 6214cc8 to 64354ea Compare May 21, 2024 11:36
@BeckaL BeckaL marked this pull request as ready for review May 21, 2024 14:35
@BeckaL BeckaL requested review from a team as code owners May 21, 2024 14:35
andrew-moores
andrew-moores previously approved these changes May 21, 2024
BeckaL added 18 commits May 21, 2024 15:47
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
…aders

This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.

Note that the interface of the reset password service specifies an isForcedPassword param, which wasn't specified on the implementation. Making this change required us to add this parameter too otherwise our tests would not compile. However, the isForcedPasswordReset parameter is unused which is a small bug in our service which we'll fix subsequently
This means that we submit txma security headers in requests to the backend.
This means that we submit txma security headers in requests to the backend.
All internal requests are now converted to the new getInternalRequestConfigWithSecurityHeaders function, which sets security headers. Therefore, this function is now redundant and can be removed.
This is no longer required, as all services now expect the version of headers with the security keys
The x-forwarded-for header is now set using the common headers library by passing the request object through, so we no longer need to separately pass the ip through to the config function
@BeckaL BeckaL force-pushed the AUT-2578/use-common-headers-in-all-services branch from 64354ea to 4726215 Compare May 21, 2024 15:02
Copy link

sonarcloud bot commented May 21, 2024

@BeckaL BeckaL merged commit 20a7a10 into main May 22, 2024
4 checks passed
@BeckaL BeckaL deleted the AUT-2578/use-common-headers-in-all-services branch May 22, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants