-
Notifications
You must be signed in to change notification settings - Fork 3
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
INCIDEN-922: Restricting list client API action to specified user #897
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ryan-Andrews99
force-pushed
the
inciden-922-enfore-access-token
branch
from
September 10, 2024 13:47
96914e0
to
d1b3827
Compare
Ryan-Andrews99
force-pushed
the
inciden-922-enfore-access-token
branch
from
September 10, 2024 13:50
d1b3827
to
99046dc
Compare
Ryan-Andrews99
changed the title
INCIDEN-922: Restricting listClient API to specified user
INCIDEN-922: Restricting API actions to specified user
Sep 10, 2024
Ryan-Andrews99
force-pushed
the
inciden-922-enfore-access-token
branch
from
September 10, 2024 15:36
f958309
to
6a1e9e3
Compare
Ryan-Andrews99
force-pushed
the
inciden-922-enfore-access-token
branch
from
September 11, 2024 13:25
6a1e9e3
to
99046dc
Compare
Ryan-Andrews99
changed the title
INCIDEN-922: Restricting API actions to specified user
INCIDEN-922: Restricting list client API action to specified user
Sep 11, 2024
isaac-GDS
reviewed
Sep 12, 2024
backend/api/tests/handlers/dynamodb/get-service-clients.test.ts
Outdated
Show resolved
Hide resolved
We're now sending the access token from the frontend to the backend, so we can now enforce some access control on listing a client. This will restrict the user to only seeing the service they created, so if they navigated to another user's service the backend now returns a 403 - Forbidden
Ryan-Andrews99
force-pushed
the
inciden-922-enfore-access-token
branch
from
September 13, 2024 12:46
99046dc
to
b0ef38d
Compare
isaac-GDS
approved these changes
Sep 13, 2024
Ryan-Andrews99
temporarily deployed
to
development
September 13, 2024 14:50 — with
GitHub Actions
Inactive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Onboarding Feature Deployment
Warning
Pull requests merged to
main
will be released to production, please ensure the checklist below is completeBefore any work can be merged to main in must meet the definition of done and be ready to deploy. While many of these tasks will be automated, the reviewers must take the responsibility of confirming the checklist below has been completed before this ticket can be merged.
Checklist
this pull request meets the acceptance criteria of the ticket
this branch is up-to-date with the main branch
git fetch --all && git rebase origin/main
these changes are backwards compatible (no breaking changes)
@deprecated
tests have been written to cover any new or updated functionality
new configuration parameters have been deployed to all environments, see configuration management.
all external infrastructure dependencies have been updated in all environments
Changes
[ please list the changes this pull request is making ]
Added
for new featuresChanged
for changes in existing functionalityDeprecated
for soon-to-be removed featuresRemoved
for now removed featuresFixed
for any bug fixes:/get-service-client
endpoint now has authorisation which checks for a User-Service relationshipSecurity
in case of vulnerabilities