-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-04-05] [$500] Anonymous user can access the settings page #38163
Comments
Triggered auto assignment to @alexpensify ( |
As a bug reporter, can I take this as C+ as I already have context? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Anonymous user can access the settings page What is the root cause of that problem?We do not check if the user is Anonymous in InitialSettingsPage. What changes do you think we should make in order to solve the problem?Add a check such that if user is not signed in then call if (Session.isAnonymousUser() ) {
Navigation.isNavigationReady().then(() => {
Session.signOutAndRedirectToSignIn();
});
}
Put the above check inside the useEffect: App/src/pages/settings/InitialSettingsPage.tsx Lines 104 to 106 in c05ce47
What alternative solutions did you explore? (Optional)N/A |
@puneetlath would your |
ProposalPlease re-state the problem that we are trying to solve in this issue.Anonymous user can access restricted page such as settings page by clicking the link from the chat. What is the root cause of that problem?We don't prevent the user to directly navigate to a page from a link in the chat. Lines 102 to 107 in 91d7eb2
What changes do you think we should make in order to solve the problem?We can check if it's a page that is accessible for anonymous user only. If it's not accesible, we redirect the user to the sign in modal.
What alternative solutions did you explore? (Optional)We can do the anonymous check inside Navigation.navigate, but this would require more changes as there would be cyclic dependency between Session and Navigation. |
This is dupe of #25482 |
Yep makes sense!
I don't think it's strictly a dupe per se. That's about a task title/description, whereas this is about settings pages -- importantly here, things like starting the Plaid flow to enable the wallet is possible. I agree both are valid though and we should prompt for sign-in. @youssef-lr coming from that other issue, I think we fix this, so we close this loop on being able to start that enable wallet flow without being signed-in. (Check the OP vid here for that). |
I agree with @bernhardoj's proposal. |
I think we should reopen the previous issue because there are some pending proposals |
Oh it looks like @DylanDylann proposed same solution in the past. |
I'm double-checking with the team on the assignment plan and confirming if we should run with this GH or open the dupe. I should have an update by tomorrow. Thanks! |
@alexpensify no my changes are related to mentions, which it doesn't seem like this issue is related to. |
Cool, thanks for confirming! |
Job added to Upwork: https://www.upwork.com/jobs/~012cb619021a94beb4 |
Current assignees @mkhutornyi and @DylanDylann are eligible for the External assigner, not assigning anyone new. |
Ok, instead of opening the other GH, I chatted with the team and let's work here. @mkhutornyi let's go with @DylanDylann's proposal. Next week, I'll figure out the wave or VIP for this one. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.57-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-04-05. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Tomorrow, I will prepare the payment summary but please accept the invites here: https://www.upwork.com/jobs/~012cb619021a94beb4 @DylanDylann and @mkhutornyi -- Thanks! |
Payment Summary
BugZero Checklist (@alexpensify)
|
@DylanDylann - I've paid you via Upwork @mkhutornyi - Please accept the invite and I can complete the process. Thanks! |
Update: Waiting for @mkhutornyi to accept the Upwork invite to complete the payment process there. |
@mkhutornyi please accept the Upwork invite and then I can complete the payment process. Thanks! |
No update here, still waiting for @mkhutornyi to accept the Upwork invite: |
I believe that @mkhutornyi is OOO right now. Heads up, I will be offline starting on Wednesday until Tuesday, April 23. I'll check again one more time before I go OOO to see if I can complete the payment process. |
This comment was marked as outdated.
This comment was marked as outdated.
Catching up from being OOO and going to remove @mallenexpensify. I checked the Upwork job and we are still waiting for @mkhutornyi to accept. |
I've asked the team for feedback since this one has been pending payment for over a month - https://expensify.slack.com/archives/C01SKUP7QR0/p1714516012720699 |
@mkhutornyi - I'm going to move this to monthly. Please let me know when you are back online and we can complete the payment process. Thanks! |
Heads up, I will be offline until Tuesday, May 28, 2024, and will not actively watch over this GitHub during that period.If anything urgent is needed here, please ask for help in the #expensify-open-source Slack Room-- thanks! |
Monthly check-in - no update here. Setting a reminder to review in a month. |
@mkhutornyi is back! can you please accept the job and reply here once you have? @alexpensify , please finish off payment once it's ready. |
Awesome, thanks for the update! |
Accepted offer. Thanks |
Done, I've completed the payment process via Upwork and closed the jobs there. Welcome back @mkhutornyi! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.50-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @trjExpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1710244751238109
Action Performed:
Expected Result:
The sign-in prompt should appear in the RHP just like clicking the "settings" bottom tab or search icon.
Actual Result:
The pages are accessible via the deep links.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Recording.2848.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @mkhutornyiThe text was updated successfully, but these errors were encountered: