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

chore(monitoring): Logging logins, introduce HTTP 403 Forbidden responses when updating links #653

Merged
merged 2 commits into from
Sep 28, 2020

Conversation

liangyuanruo
Copy link
Contributor

@liangyuanruo liangyuanruo commented Sep 28, 2020

Problem

The problems are twofold:

  1. Login emails can be clearly logged when attempting to login.

  2. HTTP 404 Not Found response is technically incorrect when a short link & user email URL object cannot be found. The better security posture is to treat it as an unauthorized attempt to modify a URL that does not belong to said user.

Solution

  1. Log all emails when OTP verification takes place, for both success and failure cases.

  2. Use HTTP 403 Forbidden response if a short link cannot be found by the URL management service.

Improvements:

  • Login logging
  • Improved security posture

Copy link
Member

@yong-jie yong-jie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@yong-jie yong-jie merged commit 91dc2bf into develop Sep 28, 2020
@yong-jie yong-jie deleted the chore/monitoring branch September 28, 2020 19:15
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.

2 participants