mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-11 08:29:13 -05:00
Closed
opened 2026-04-16 08:19:25 -05:00 by GiteaMirror
·
30 comments
No Branch/Tag Specified
main
dependabot/npm_and_yarn/prod-patch-updates-64dd675a88
dependabot/npm_and_yarn/dev-minor-updates-8aff2d3956
dependabot/go_modules/install/minor-updates-a249525a56
dependabot/github_actions/sigstore/cosign-installer-4.1.2
dependabot/npm_and_yarn/fast-uri-3.1.2
crowdin_dev
dev
s3
dependabot/npm_and_yarn/fast-xml-builder-1.2.0
dependabot/npm_and_yarn/axios-1.15.2
dependabot/npm_and_yarn/next-intl-4.9.2
dependabot/docker/node-26-alpine
dependabot/docker/docker/library/node-26-slim
dependabot/npm_and_yarn/multi-7bdfbe8666
resource-policies
redis
newt-install-commands
dependabot/npm_and_yarn/multi-d2fd79378c
dependabot/npm_and_yarn/uuid-14.0.0
dependabot/npm_and_yarn/postcss-8.5.10
miloschwartz-patch-2
dependabot/github_actions/actions/setup-node-6.4.0
dependabot/npm_and_yarn/next-16.2.1
dependabot/npm_and_yarn/recharts-3.8.1
cross-org-idp
update-readme
miloschwartz-patch-1
breakout-sites-tables
revert-2766-feature/systemd-install-instructions
ssh
delete-account
msg-delivery
org-only-idp
cicd
patch
site-targets-auto-login
1.18.3-s.3
1.18.3-s.2
1.18.3
1.18.3-s.1
1.18.3-s.0
1.18.2-s.5
1.18.2-s.4
1.18.2-s.3
1.18.2-s.2
1.18.2-s.1
1.18.2
1.18.2-s.0
1.18.1-s.7
1.18.1-s.6
1.18.1-s.5
1.18.1-s.4
1.18.1-s.3
1.18.1-s.2
1.18.1
1.18.1-s.1
1.18.1-s.0
1.18.0-s.2
1.18.0-s.1
1.18.0
1.18.0-s.0
1.17.1-s.7
1.17.1-s.6
1.18.0-rc.0
1.17.1-s.5
1.17.1-s.4
1.17.1-s.3
1.17.1
1.17.1-s.2
1.17.1-s.1
1.17.1-s.0
1.17.0-s.4
1.17.0
1.17.0-s.3
1.17.0-s.2
1.17.0-s.1
1.17.0-s.0
1.17.0-rc.0
1.16.2-s.22
1.16.2-s.21
1.16.2-s.20
1.16.2-s.19
1.16.2-s.18
1.16.2-s.17
1.16.2-s.16
1.16.2-s.15
1.16.2-s.14
1.16.2-s.13
1.16.2-s.12
1.16.2-s.11
1.16.2-s.10
1.16.2-s.9
1.16.2-s.8
1.16.2-s.7
1.16.2-s.6
1.16.2-s.5
1.16.2-s.4
1.16.2-s.3
1.16.2-s.2
1.16.2-s.1
1.16.2
1.16.2-s.0
1.16.1-s.1
1.16.1
1.16.1-s.0
1.16.0
1.16.0-s.1
1.16.0-s.0
1.16.0-rc.0
1.15.4-s.10
1.15.4-s.9
1.15.4-s.8
1.15.4-s.7
1.15.4-s.6
1.15.4-s.5
1.15.4-s.4
1.15.4-s.3
1.15.4-s.2
1.15.4-s.1
1.15.4
1.15.4-s.0
1.15.3
1.15.3-s.1
1.15.3-s.0
1.15.2
1.15.1-s.1
1.15.1-s.0
1.15.1
1.15.0-s.5
1.15.0
1.15.0-s.4
1.15.0-s.3
1.15.0-s.2
1.15.0-s.1
1.15.0-s.0
1.15.0-rc.0
1.14.1-s.3
1.14.1-s.2
1.14.1-s.1
1.14.1-s.0
1.14.1
1.14.0-s.2
1.14.0
1.14.0-rc.0
1.13.1
1.13.1-s.0
1.13.0
1.13.0.s.0
1.13.0-rc.0
1.12.2-s.5
1.12.3
1.12.2-s.4
1.12.2-s.3
1.12.2-s.2
1.12.2-s.1
1.12.2
1.12.2-s.0
1.12.1
1.12.0
1.12.0-s.0
1.12.0-rc.0
1.11.1
1.11.1-s.0
1.11.0-s.5
1.11.0
1.11.0-s.4
1.11.0-s.3
1.11.0-s.2
1.11.0-s.1
1.11.0-s.0
1.10.3
1.10.2
1.10.1
1.10.0
1.9.4
1.9.3
1.9.2
1.9.1
1.9.0
1.8.0
1.7.3
1.7.2
1.7.1
1.7.0
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.0
1.3.2
1.3.1
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
1.0.0-beta.15
1.0.0-beta.14
1.0.0-beta.13
1.0.0-beta.12
1.0.0-beta.11
1.0.0-beta.10
1.0.0-beta.9
1.0.0-beta.8
1.0.0-beta.7
1.0.0-beta.6
1.0.0-beta.5
1.0.0-beta.4
1.0.0-beta.3
1.0.0-beta.2
1.0.0-beta.1
Labels
Clear labels
api
authentication
bug
config
dependencies
docker
documentation
enhancement
good first issue
help wanted
Improvement
Look Into
needs investigating
networking
new feature
non-critical bug
potential bug
pull-request
question
reverse proxy
Security
stale
ui
wontfix
Mirrored from GitHub Pull Request
No Label
stale
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/pangolin#1611
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @samumatic on GitHub (May 21, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/757
This is a moved issue from Ferdinand99/home-assistant-newt-addon#3, as it affects the Pangolin authentication.
Describe the bug
After successfully installing the Home Assistant Newt Addon the HA instance is available through the specified domain in a Browser. But when trying to connect via android app to the ha instance an error message
under the URL
https://my.domain.com/lovelace?external_auth=1is interrupting the login process.When disabling the Pangolin authentication the app authentication works, but not when enabled.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The browser would backlink to the android app and successful log me in
📜 Logs
Paste any relevant logs here:
There are no logs in HA, as the url
https://my.domain.com/lovelace?external_auth=1doesn't reach the HA instance.🏠 Home Assistant Version
Home Assistant Version: 2025.5.2
Newt Add-on Version: 1.3.2
Installation Type: Home Assistant OS
💻 System Details
Hardware: HP-Thinclient
Network Setup: Ethernet
ℹ️ Additional context
After a while sometimes the url
is opened, firefox is then refusing to open the page with
Is there possibly a path that must be rule whitelisted?
@oschwartz10612 commented on GitHub (May 22, 2025):
Hi!
This is typically where the bypass rules come in handy but I dont think the community has found them for the HA app yet. If you are feeling technical you could work to find the API endpoints or unfortunately most of the time with the apps it is just required to disable the Pangolin auth because the app needs to be able to talk to its http API endpoints without being redirected.
@samumatic commented on GitHub (May 22, 2025):
The Home Assistant Authentik Docs are using a BeryJu/hass-auth-header, maybe this is missing here?
Whitelisting the
/api/*or/auth/*in the bypass rules resulted in no change.@samumatic commented on GitHub (May 23, 2025):
I found an error message when debugging with eruda.
Whitelisting
/frontend_latest*or/lovelace*has also no effect.@steuerlexi commented on GitHub (May 23, 2025):
I think i found a way
Here is what i have set as bypass rules
and here is what needs to be written in the configuration.yml
http:
cors_allowed_origins:
- https://google.com
- https://www.home-assistant.io
ip_ban_enabled: true
login_attempts_threshold: 2
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- Local IP of your NEWT instance
- VPS IP
@jhhaul commented on GitHub (May 26, 2025):
I can confirm both the issue and that the workaround given by steuerlexi works.
@oschwartz10612 commented on GitHub (May 27, 2025):
Awesome! We can add to the docs.
@samumatic commented on GitHub (May 27, 2025):
I can also confirm that logging in now works on mobile devices.
However, I would like to raise the issue that Pangolin authentication is effectively no longer working with the suggested rules in place.
When you open the HA instance in a browser at
https://my.domain.com/, you are redirected to Pangolin authentication.However, when you enter
https://my.domain.com/lovelace, you are no longer prompted for Pangolin authentication; you are only prompted for HA authentication.The same behaviour occurs on the Android app: when you enter the URL as a new HA site, you go straight to the login page and no Pangolin authentication is required.
The question is, if you can access the HA instance without Pangolin authentication, why have Pangolin authentication enabled? This bypasses the purpose of Pangolin authentication.
@steuerlexi commented on GitHub (May 27, 2025):
@samumatic Yes, I think we are bypassing Pangolin auth with this approach. But as far as I know Home Assistant OS is very secure and when your user has also TFA activated you should be rather save with this approach.
@samumatic commented on GitHub (May 27, 2025):
Im not questioning the security of Home Assistant, but this approach has the same effect as adding a rule with
/*. At this point you should disable the Pangolin authentication completely for Home Assistant.We should look for a solution that enables the login via the Android HA app but also requires the Pangolin authentication on all devices.
@steuerlexi commented on GitHub (May 27, 2025):
I do not agree as /* would really open up everything. But the question is the extra layer of security that pangolin gives you and if this is even necessary.
@miloschwartz commented on GitHub (May 27, 2025):
@steuerlexi Yeah for some apps it's easier/best to disable the dual auth as it's only a hinderance for apps with their own system.
@github-actions[bot] commented on GitHub (Jun 11, 2025):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@ConGp20 commented on GitHub (Jun 11, 2025):
Hello everyone, unfortunately this does not work for me. Nevertheless, I am always directed to the Pangolin side or no connection is established. Only if I activate /* as a rule does it work reliably. Does anyone have an idea? Can it be due to the appcache?
Edit: some hacs-dsshboard cards show an error, so the path rules in pangolin dont work correctly. Does someone have an idea?
@D3r3k23 commented on GitHub (Jun 16, 2025):
How can you get the IP address of the Newt instance?
@oschwartz10612 commented on GitHub (Jun 16, 2025):
@ConGp20 if the rules above do not work for you for some reason then you are pretty much only able to turn off auth that is fine too. It is okay to rely on application auth and I think HA has enough traction where it will be fine if you are comfortable with it.
@D3r3k23 - you can visit ipchicken.com or curl ifconfig.io
@github-actions[bot] commented on GitHub (Jul 1, 2025):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@github-actions[bot] commented on GitHub (Jul 16, 2025):
This issue has been automatically closed due to inactivity. If you believe this is still relevant, please open a new issue with up-to-date information.
@firecat53 commented on GitHub (Aug 17, 2025):
For anyone finding this issue, the Home Assistant companion app (Android) now has a built-in webview browser that redirects to the Pangolin authentication page and allows the Pangolin login before logging in to Homeassistant. No bypass rules required. 🎉
@oschwartz10612 commented on GitHub (Aug 23, 2025):
@firecat53 that's awesome if that works! We should update the docs if so!
@firecat53 commented on GitHub (Aug 23, 2025):
Probably should get some others to verify 😁
I forgot to add, HA app version 2025.8.7-full and HA server (core) version 2025.8.2. I don't know in which version it became usable.
@jhhaul commented on GitHub (Aug 23, 2025):
Yes, I can confirm that it works with the current versions of Home Assistant and the Android client (August 2025). Great!
@steuerlexi commented on GitHub (Aug 23, 2025):
That sounds great! How often do we need to log in to Pangolin before a new token is required? I have my whole family using the Home Assistant app, and I’d like to give them a Pangolin PIN, but I hope they don’t have to renew it every couple of weeks. Any thoughts?
@firecat53 commented on GitHub (Aug 24, 2025):
It seems like every time I reboot the pangolin server I have to reauthenticate, but honestly haven't paid that close attention because it's just me.
@vmfventura commented on GitHub (Sep 7, 2025):
I updated my app from minimal to full, but still has the same problem. Using external URL, open Firefox and "Unable to connect to Home Assistant.".
Missed something?
Edit: android app 2025.8.7-full
Ha core 2025.9.1
@firecat53 commented on GitHub (Sep 10, 2025):
@vmfventura There should be a built-in webview browser in the home assistant app. You might investigate why it's opening Firefox instead...that is probably the reason you can't authenticate.
@funkypopcorn commented on GitHub (Nov 11, 2025):
I'm having the same issue on my Android phone. Can someone with a proper setup sum up all the necessary settings?
How must this be setup in Nov-2025 when newt node is running as Addon in HA:
Would really appreciate if someone could share his working setup, can't get it to run.
PS: I set the default Browser (Standard App from firefox back to chrome) on my android phone, but still no luck!
@Selmaks commented on GitHub (Jan 18, 2026):
hopefully this helps someone.
I have setup google assistant with these path rules for it to work
bypass auth /api/google_assistant
bypass auth /auth/token
bypass auth /auth/authorize
These are the only rules I have enabled apart from allow county and block countries. rules .Google assistant works and I can login via the android app using the pangolin authenticaton.
@CorentinJ commented on GitHub (Jan 22, 2026):
Even with the android change to use chrome for logging in, I can't pass login with pangolin enabled. My take is to disable pangolin auth entirely for logging in via the mobile app, and once logged in, re-enable auth with the rules from @steuerlexi. So far I haven't been logged out doing this, so this kinda works.
@mazarian commented on GitHub (Mar 18, 2026):
For some reason, after a successful login, the HA Android app redirects to https://ha.mydomain.com/?external_auth=1 which breaks things. If the external_auth value is changed to 0 or removed entirely, I am able to view my HA (not in the app, but in the browser). Is the HA app adding that key at the end of the URL that is causing it all to break? I'm on HA app version 2026.3.2-full on Android and HA 2026.3.2
@bbreton09 commented on GitHub (Apr 10, 2026):
I have the same issue. Work's in chrome but not in Android HA apps.