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

Getting a blank page when trying to login with mitm reverse proxy running #1

Open
Myles1 opened this issue Feb 8, 2024 · 2 comments

Comments

@Myles1
Copy link

Myles1 commented Feb 8, 2024

Thank you so much for making this project public. That's super nice of you!

I'm running into an issue while following the instructions here: https://github.com/joshuataylor/snowflake-notes/blob/main/reverse_engineering_tips.md#inspecting-your-http-requests

I ran mitmweb --mode reverse:https://my_account.snowflakecomputing.com --listen-port 8083
Then navigated to http://localhost:8083
Entered the login info, then it loads a blank page and hangs indefinitely.

Do you have any tips for what I might be doing wrong here?
Thanks in advance!

@joshuataylor
Copy link
Owner

Glad you found it interesting, and sorry for the slow reply.

So there are three subdomains that Snowflake now uses:

  1. ACCOUNT.REGION.snowflakecomputing.com
    Used by the "official" drivers.

  2. app.snowflake.com
    Used to validate your account identifier, get the region, etc.

  3. apps-api.c1.REGION.aws.app.snowflake.com
    Used for API requests

The reverse API instructions made sense when there was a single domain, but the best approach now is to instead use mitmproxy/similar tool then use HTTP_PROXY in either your browser or as an environment variable.

Most HTTP frameworks pick this up out of the box, and should work.

@Myles1
Copy link
Author

Myles1 commented Feb 26, 2024

I'm not sure that I follow. Would you be able to give a working example in the same way that you did in the reverse API instructions?

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

No branches or pull requests

2 participants