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

NOBUG: removed publicGet and protectedGet from map-info-controller #827

Merged
merged 2 commits into from
Apr 12, 2021

Conversation

cameronpettit
Copy link
Contributor

In the map-info-controller, publicGet and protectedGet were hardwired to a findById function that, if provided with the _id, of any record, returned that record regardless of user role, record redaction or token authentication. Though it would be difficult for someone to obtain the _id of a sensitive record, they would be able to access that record easily if they hit these endpoints.

publicGet and protectedGet are yet unused by any services in this project, so this PR removes them from map-info-controller and the swagger routes.

@sonarcloud
Copy link

sonarcloud bot commented Apr 12, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@cameronpettit cameronpettit merged commit baaa05d into bcgov:master Apr 12, 2021
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.

3 participants