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

Authentication for tar1090 site #338

Open
jdschuitemaker opened this issue Sep 17, 2024 · 6 comments
Open

Authentication for tar1090 site #338

jdschuitemaker opened this issue Sep 17, 2024 · 6 comments

Comments

@jdschuitemaker
Copy link

I would like to be able to access my ads-b / tar1090 site on its subdomain. Not sure if this is a good or bad idea but to avoid anyone being able I was thinking if it is possible to add some kind of authentication.

Would it be possible to add https://www.auth0.com or similar service to the site?

@wiedehopf
Copy link
Owner

Maybe use tailscale / zerotier instead?

@wiedehopf
Copy link
Owner

wiedehopf commented Sep 17, 2024

The authentication you linked would not prevent anyone to just access /tar1090/data/receiver.json for example.

@wiedehopf
Copy link
Owner

Just change the --lat --lon for readsb a bit so it doesn't point at your precise location.
Don't use heywhatsthat either.

Then there is no precise location..... and your only issue would be people scraping aircraft.json and using bandwidth.
You can block that easy enough in a webserver.

@jdschuitemaker
Copy link
Author

Thank you for the replies. I will look at tailscale / zerotier

@jdschuitemaker
Copy link
Author

For anyone else that wants to protect their tar1090 website that you are running on a domain or sub-domain, the below links can help if you are already using Cloudflare for your domain. Cloudflare calls this "Self Hosted Applications".

The way I have set it up now, when I open my page 'fr.domain.com' Cloudflare asks to provide an email address (registered during the setup) and then receive a pin to validate. If you don't validate, you cannot open the site and also not the data at /tar1090/data/receiver.json. If you provide a valid pin, Cloudflare will forward to your tar1090 page.

This video helped me: https://www.youtube.com/watch?v=Ynr8VubJqvY
And this page provides written documentaton from Cloudflare: https://developers.cloudflare.com/cloudflare-one/applications/configure-apps/self-hosted-apps/

@wiedehopf
Copy link
Owner

reopening for visibility.
i'll close it maybe in the future.

@wiedehopf wiedehopf reopened this Sep 19, 2024
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