-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Ombi does not report the users ip wuen authenticating with emby. #4947
Comments
Hi! |
I'd like that too, but this is only feasible if it's supported by Emby server. They may only take into account the actual IP address that made the request, which will always be the one of Ombi server. |
When logging into emby via a nginx reverse proxy (outside of ombi, just logging in directly), if "proxy_set_header X-Real-IP $remote_addr;" is not used, emby uses the ip of the nginx instance, similar to what it's doing with ombi. My assumption is ombi is not using this header when connecting to emby where it could be, but I may be wrong. Somewhere to start at least. Thanks for looking into this. |
I tried X-Forwarded-For and X-Real-IP, it all yielded the same result: Emby displayed my actual IP instead of the one I gave. |
Also there's one drawback that this could bring: at the moment Ombi is counted as a single device by Emby. I'm wondering if passing the actual IP would result in Emby counting multiple devices (one per device connected to Ombi), thus risking of reaching the device limit for Emby Premiere. This would be a no-go. |
Huh, That's the first I'm hearing of ombi counting towards/requiring emby premier. That's not really mentioned anywhere I can see. I do see now, it shows up as a device in embys device manager. Looking through embys terms (https://emby.media/premiereterms.html) the only part that seems to cover it is "A 'Premiere Device' is defined as any mobile, computer, or other electronic device which registers with the Emby server with a unique 'device id'. The device id is a uniquely generated id that is dependent on both device model, OS version, and application." So long as ombi maintains the same DeviceID (which doesn't seem to be dependent on ip), it should be alright. |
Yes, there's an FAQ for it here: https://emby.media/support/articles/Premiere-Limits.html I managed to make it work! ✌️ Turns out there's a limit in Emby: it only supports X-Forwarded-For for external IP addresses so that you cannot bypass the remote connection rules you may have set up. I was using a local IP address when first testing so it wouldn't work. |
Fantastic news! Appreciate the quick responses/resolution. Keep up the great work m8 :) |
… as an Emby user Fixes Ombi-app#4947
Co-authored-by: tidusjar <tidusjar@gmail.com> Co-authored-by: sephrat <34862846+sephrat@users.noreply.github.com> Co-authored-by: Conventional Changelog Action <conventional.changelog.action@github.com> Co-authored-by: Teifun2 <Teifun2@users.noreply.github.com> Co-authored-by: contrib-readme-bot <contrib-readme-action@noreply.com> Co-authored-by: dr3amer <91037083+dr3am37@users.noreply.github.com> Co-authored-by: echel0n <echel0n@sickrage.ca> Co-authored-by: Marley <55280588+marleypowell@users.noreply.github.com> Co-authored-by: Igor Borges <igor@borges.dev> Co-authored-by: Lucane <Lucane@users.noreply.github.com> Co-authored-by: mkgeeky <github@mkgeeky.xyz> Co-authored-by: Miguel A Vico Moya <mvicomoya@gmail.com> Co-authored-by: Hadrien <26697460+ketsapiwiq@users.noreply.github.com> Co-authored-by: Victor Usoltsev <bernarden@users.noreply.github.com> Co-authored-by: Wesley King <kingwe92@gmail.com> Co-authored-by: Lea <me@janderedev.xyz> Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: snyk-bot <snyk-bot@snyk.io> [skip ci] Co-authored-by: Jamie <tidusjar@gmail.com> Co-authored-by: Drew <drewm727@hotmail.com> [skip ci] Co-authored-by: ryan-c44 <54028283+ryan-c44@users.noreply.github.com> Co-authored-by: Alexander Russell <ajex94@gmail.com> Co-authored-by: Grygon <647846+Grygon@users.noreply.github.com> Co-authored-by: phildups7 <60622768+phildups7@users.noreply.github.com> Co-authored-by: Avi <357984+Unimatrix0@users.noreply.github.com> Co-authored-by: Antonin <82907030+Antonin-Bruzard@users.noreply.github.com> Co-authored-by: Drew <mcminn.drew@gmail.com> Co-authored-by: Joel Samson <joel.samson@hotmail.com> Co-authored-by: David Benson <dben@users.noreply.github.com> fix: Consistently reset loading flag when requesting movies on discover page. (#4777) fix(sonarr): 🐛 Fixed an issue where the language list didn't correctly load for power users in the advanced options #4782 fix: Only log error messages from Microsoft (#4787) fix(notifications): Fixed the Partially TV notifications going to the admin #4797 (#4799) fix(translations): 🌐 New translations from Crowdin [skip ci] (#4801) fix(sonarr): 🐛 Sonarr V4 should work now (#4810) fixed (#4833) fix(plex-watchlist): Lookup the ID from different sources when Plex doesn't contain the metadata (#4843) fix(#4847): Invalid Discord request fixed, also fixed an issue where App Only users would not show as logged in on the user management page (#4848) fix(discover): 🐛 Fixed the default poster not taking into account the base url in some scenarios #4845 fix(wizard): 🐛 Stop access to the wizard when you have already setup ombi (#4866) fix(plex-oauth): 🐛 Fixed an issue where using OAuth you could log in as a Ombi Local user #4835 fix: Some minor tweaks to the movie info panel (#4883) fix(sonarr): 🐛 Stop the sonarr version endpoint from breaking when Sonarr is down #4895 fix: Support duplicates in Emby/JF collections (#4902) fix(discover): Fix denied requests displayed as approved (#4901) fix: Fix denied movie shown as 'processing request' in details view (#4900) fix(#4906): 🐛 Fixed an issue with power users and permissions fix: Cron Validation (#4842) fix(lidarr): Change monitor to Existing to properly add artist #3597 fix(API): Allow RequestOnBehalf rights if requested from the API (#4919) Fixes #4610 fix: added media type tag to media type text (#4638) fix(sickrage): Fixed issue with incorrect handling of SiCKRAGE episode results returned during episode status changes, now expects array of objects from data path if present (#4648) fix: Missing Poster broken link fix (#4637) fix: Improve Swagger documentation (#4652) fix(API): Fix pagination in some edge cases (#4649) fix(discover): Carousel touch not working when scrolling page and recommendations and similar movie navigation (#4633) fix: 🐛 Fixed the Request on Behalf of having blanks (#4667) fix(images): Retry images with a backoff when we get a Too Many requests from TheMovieDb #4685 fix: Landing and Login page improvements (#4690) fix(discover): 🐛 Created new Image component to handle 429's from TMDB (#4698) and fixed #4635 (#4699) fix: Override Sonarr V3 Profiles endpoint (#4678) fix(4K) :4K request fixes (#4702) fix(translations): 🌐 New translations from Crowdin [skip ci] (#4713) fix: fixed trakt image not loading when base url present (#4711) fix: 🐛 Fixed missing externals (#4712) fix: Log Microsoft warnings to log file (#4723) fix: Localize recently requested on discover page (#4729) Fix: Ombi.Api.Lidarr: Remove unused fields from ArtistAdd (#4727) fix: Fix conflicting property name for Swagger (#4733) fix: fixed stats controller (#4742) fix(webhook): Remove added trailing slash from webhook URL #4710 fix(sonarr): 🐛 Cleaned up and removed Sonarr v3 option, sonarr v3 is now the default. This allows us to get ready for the upcoming Sonarr v4 (#4764) fix: Fixes default image for recently requested items. (#4767) Fixes build warnings. (#4769) fix: Reworked the version check (#4719) (#4781) fix: Unable to Delete Jellyfin Server (#4705) (#4780) fix: Partially Available prevents further TV requests (#4768) (#4779) fix(emby): Fix Emby played sync running a full sync during recently added sync (#4932) Fixes #4947 fix: Fix various styling issues (#4935) fix(translations): 🌐 New translations from Crowdin [skip ci] (#4926) fix: upgrade @microsoft/signalr from 6.0.11 to 6.0.16 (#4964) [skip ci] fix: upgrade primeng from 15.0.0-rc.1 to 15.4.1 (#4962) [skip ci] fix: src/Ombi.Notifications/Ombi.Notifications.csproj to reduce vulnerabilities (#4969) [skip ci] fix: upgrade @fortawesome/fontawesome-free from 6.1.2 to 6.4.0 (#4965) [skip ci] fix: upgrade multiple dependencies with Snyk (#4963) [skip ci] fix flaky tests (#4970) [skip ci] fix: More automation tests mainly around the Plex Settings page (#4821) fix: upgrade cypress-real-events from 1.7.4 to 1.8.1 (#4968) [skip ci] fix: Remove Angular TSLint (#4973) fix: upgrade zone.js from 0.11.8 to 0.13.0 (#4975) fix: upgrade jquery from 3.6.1 to 3.7.0 (#4974) fix: upgrade multiple dependencies with Snyk (#4961) fixes (#4978) fix(user-importer): 🐛 Fixed an issue where the cleanup wouldn't delete users #4812 fix(user-importer): Do not delete the Plex Admin as part of the user Importer cleanup #4870 (#4981) Fixes #4957 fix: Remove old trending source (#4987) fix(plex-api): Switch over to the new API to avoid deprecation & save… (#4986) fix: switch back to the old plex friends API #4989 fix(user-importer): Fixed not importing all correct users #4989 fix: upgrade cypress-real-events from 1.8.1 to 1.9.1 (#5000) [skip ci] fix: upgrade @microsoft/signalr from 6.0.18 to 6.0.20 (#4999) [skip ci] fix: upgrade @fortawesome/fontawesome-free from 6.4.0 to 6.4.2 (#5005) [skip ci] fix: upgrade @types/jquery from 3.5.16 to 3.5.17 (#5011) [skip ci] fix: src/Ombi/ClientApp/package.json & src/Ombi/ClientApp/yarn.lock to reduce vulnerabilities (#5010) [skip ci] fix: upgrade @microsoft/signalr from 6.0.21 to 6.0.22 (#5020) fix: upgrade @types/jquery from 3.5.18 to 3.5.19 (#5022) fix: upgrade zone.js from 0.13.1 to 0.13.2 (#5019) fix: upgrade multiple dependencies with Snyk (#5030) fix: upgrade cypress-real-events from 1.10.0 to 1.10.1 (#5014) fix: upgrade jquery from 3.7.0 to 3.7.1 (#5015) Fix: Linkify logo in newsletter (#5036) fix: upgrade @types/jquery from 3.5.22 to 3.5.23 (#5034) [skip ci] fix: upgrade @microsoft/signalr from 6.0.22 to 6.0.23 (#5032) [skip ci] Fix(mutliple servers): attempting to cache the Plex Content in server (#5018) fix(radarr-4k): 🐛 Fixed an issue when using Radarr 4k with user set quality profiles. There are now user quality profiles for 4k profile #5025 fix: src/Ombi/ClientApp/package.json & src/Ombi/ClientApp/yarn.lock to reduce vulnerabilities (#5072) [skip ci] fix: src/Ombi/Ombi.csproj to reduce vulnerabilities (#5066) [skip ci] fix: upgrade @fortawesome/fontawesome-free from 6.4.2 to 6.5.0 (#5053) [skip ci] fix: upgrade @types/jquery from 3.5.27 to 3.5.28 (#5049) [skip ci] fix: src/Ombi/ClientApp/package.json & src/Ombi/ClientApp/yarn.lock to reduce vulnerabilities (#5040) [skip ci] fix: upgrade moment from 2.29.4 to 2.30.1 (#5075) [skip ci] fix: upgrade multiple dependencies with Snyk (#5073) [skip ci] fix: upgrade multiple dependencies with Snyk (#5104) [skip ci]
Co-authored-by: tidusjar <tidusjar@gmail.com> Co-authored-by: sephrat <34862846+sephrat@users.noreply.github.com> Co-authored-by: Conventional Changelog Action <conventional.changelog.action@github.com> Co-authored-by: Teifun2 <Teifun2@users.noreply.github.com> Co-authored-by: contrib-readme-bot <contrib-readme-action@noreply.com> Co-authored-by: dr3amer <91037083+dr3am37@users.noreply.github.com> Co-authored-by: echel0n <echel0n@sickrage.ca> Co-authored-by: Marley <55280588+marleypowell@users.noreply.github.com> Co-authored-by: Igor Borges <igor@borges.dev> Co-authored-by: Lucane <Lucane@users.noreply.github.com> Co-authored-by: mkgeeky <github@mkgeeky.xyz> Co-authored-by: Miguel A Vico Moya <mvicomoya@gmail.com> Co-authored-by: Hadrien <26697460+ketsapiwiq@users.noreply.github.com> Co-authored-by: Victor Usoltsev <bernarden@users.noreply.github.com> Co-authored-by: Wesley King <kingwe92@gmail.com> Co-authored-by: Lea <me@janderedev.xyz> Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: snyk-bot <snyk-bot@snyk.io> [skip ci] Co-authored-by: Jamie <tidusjar@gmail.com> Co-authored-by: Drew <drewm727@hotmail.com> [skip ci] Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: ryan-c44 <54028283+ryan-c44@users.noreply.github.com> Co-authored-by: Alexander Russell <ajex94@gmail.com> Co-authored-by: Grygon <647846+Grygon@users.noreply.github.com> Co-authored-by: phildups7 <60622768+phildups7@users.noreply.github.com> Co-authored-by: Avi <357984+Unimatrix0@users.noreply.github.com> Co-authored-by: Antonin <82907030+Antonin-Bruzard@users.noreply.github.com> Co-authored-by: Drew <mcminn.drew@gmail.com> Co-authored-by: Joel Samson <joel.samson@hotmail.com> Co-authored-by: David Benson <dben@users.noreply.github.com> Co-authored-by: Alexandre Picavet <apicavet@hotmail.fr> fix(#4847): Invalid Discord request fixed, also fixed an issue where App Only users would not show as logged in on the user management page (#4848) fix(discover): 🐛 Fixed the default poster not taking into account the base url in some scenarios #4845 fix(wizard): 🐛 Stop access to the wizard when you have already setup ombi (#4866) fix(plex-oauth): 🐛 Fixed an issue where using OAuth you could log in as a Ombi Local user #4835 fix: Some minor tweaks to the movie info panel (#4883) fix(sonarr): 🐛 Stop the sonarr version endpoint from breaking when Sonarr is down #4895 fix: Support duplicates in Emby/JF collections (#4902) fix(discover): Fix denied requests displayed as approved (#4901) fix: Fix denied movie shown as 'processing request' in details view (#4900) fix(#4906): 🐛 Fixed an issue with power users and permissions fix: Cron Validation (#4842) fix(lidarr): Change monitor to Existing to properly add artist #3597 fix(API): Allow RequestOnBehalf rights if requested from the API (#4919) Fixes #4610 fix: added media type tag to media type text (#4638) fix(sickrage): Fixed issue with incorrect handling of SiCKRAGE episode results returned during episode status changes, now expects array of objects from data path if present (#4648) fix: Missing Poster broken link fix (#4637) fix: Improve Swagger documentation (#4652) fix(API): Fix pagination in some edge cases (#4649) fix(discover): Carousel touch not working when scrolling page and recommendations and similar movie navigation (#4633) fix: 🐛 Fixed the Request on Behalf of having blanks (#4667) fix(images): Retry images with a backoff when we get a Too Many requests from TheMovieDb #4685 fix: Landing and Login page improvements (#4690) fix(discover): 🐛 Created new Image component to handle 429's from TMDB (#4698) and fixed #4635 (#4699) fix: Override Sonarr V3 Profiles endpoint (#4678) fix(4K) :4K request fixes (#4702) fix(translations): 🌐 New translations from Crowdin [skip ci] (#4713) fix: fixed trakt image not loading when base url present (#4711) fix: 🐛 Fixed missing externals (#4712) fix: Log Microsoft warnings to log file (#4723) fix: Localize recently requested on discover page (#4729) Fix: Ombi.Api.Lidarr: Remove unused fields from ArtistAdd (#4727) fix: Fix conflicting property name for Swagger (#4733) fix: fixed stats controller (#4742) fix(webhook): Remove added trailing slash from webhook URL #4710 fix(sonarr): 🐛 Cleaned up and removed Sonarr v3 option, sonarr v3 is now the default. This allows us to get ready for the upcoming Sonarr v4 (#4764) fix: Fixes default image for recently requested items. (#4767) Fixes build warnings. (#4769) fix: Reworked the version check (#4719) (#4781) fix: Unable to Delete Jellyfin Server (#4705) (#4780) fix: Partially Available prevents further TV requests (#4768) (#4779) fix: Consistently reset loading flag when requesting movies on discover page. (#4777) fix(sonarr): 🐛 Fixed an issue where the language list didn't correctly load for power users in the advanced options #4782 fix: Only log error messages from Microsoft (#4787) fix(notifications): Fixed the Partially TV notifications going to the admin #4797 (#4799) fix(translations): 🌐 New translations from Crowdin [skip ci] (#4801) fix(sonarr): 🐛 Sonarr V4 should work now (#4810) fixed (#4833) fix(plex-watchlist): Lookup the ID from different sources when Plex doesn't contain the metadata (#4843) fix(emby): Fix Emby played sync running a full sync during recently added sync (#4932) Fixes #4947 fix: Fix various styling issues (#4935) fix(translations): 🌐 New translations from Crowdin [skip ci] (#4926) fix: upgrade @microsoft/signalr from 6.0.11 to 6.0.16 (#4964) [skip ci] fix: upgrade primeng from 15.0.0-rc.1 to 15.4.1 (#4962) [skip ci] fix: src/Ombi.Notifications/Ombi.Notifications.csproj to reduce vulnerabilities (#4969) [skip ci] fix: upgrade @fortawesome/fontawesome-free from 6.1.2 to 6.4.0 (#4965) [skip ci] fix: upgrade multiple dependencies with Snyk (#4963) [skip ci] fix flaky tests (#4970) [skip ci] fix: More automation tests mainly around the Plex Settings page (#4821) fix: upgrade cypress-real-events from 1.7.4 to 1.8.1 (#4968) [skip ci] fix: Remove Angular TSLint (#4973) fix: upgrade zone.js from 0.11.8 to 0.13.0 (#4975) fix: upgrade jquery from 3.6.1 to 3.7.0 (#4974) fix: upgrade multiple dependencies with Snyk (#4961) fixes (#4978) fix(user-importer): 🐛 Fixed an issue where the cleanup wouldn't delete users #4812 fix(user-importer): Do not delete the Plex Admin as part of the user Importer cleanup #4870 (#4981) Fixes #4957 fix: Remove old trending source (#4987) fix(plex-api): Switch over to the new API to avoid deprecation & save… (#4986) fix: switch back to the old plex friends API #4989 fix(user-importer): Fixed not importing all correct users #4989 fix: upgrade cypress-real-events from 1.8.1 to 1.9.1 (#5000) [skip ci] fix: upgrade @microsoft/signalr from 6.0.18 to 6.0.20 (#4999) [skip ci] fix: upgrade @fortawesome/fontawesome-free from 6.4.0 to 6.4.2 (#5005) [skip ci] fix: upgrade @types/jquery from 3.5.16 to 3.5.17 (#5011) [skip ci] fix: src/Ombi/ClientApp/package.json & src/Ombi/ClientApp/yarn.lock to reduce vulnerabilities (#5010) [skip ci] fix: upgrade @microsoft/signalr from 6.0.21 to 6.0.22 (#5020) fix: upgrade @types/jquery from 3.5.18 to 3.5.19 (#5022) fix: upgrade zone.js from 0.13.1 to 0.13.2 (#5019) fix: upgrade multiple dependencies with Snyk (#5030) fix: upgrade cypress-real-events from 1.10.0 to 1.10.1 (#5014) fix: upgrade jquery from 3.7.0 to 3.7.1 (#5015) Fix: Linkify logo in newsletter (#5036) fix: upgrade @types/jquery from 3.5.22 to 3.5.23 (#5034) [skip ci] fix: upgrade @microsoft/signalr from 6.0.22 to 6.0.23 (#5032) [skip ci] Fix(mutliple servers): attempting to cache the Plex Content in server (#5018) fix(radarr-4k): 🐛 Fixed an issue when using Radarr 4k with user set quality profiles. There are now user quality profiles for 4k profile #5025 fix: src/Ombi/ClientApp/package.json & src/Ombi/ClientApp/yarn.lock to reduce vulnerabilities (#5072) [skip ci] fix: src/Ombi/Ombi.csproj to reduce vulnerabilities (#5066) [skip ci] fix: upgrade @fortawesome/fontawesome-free from 6.4.2 to 6.5.0 (#5053) [skip ci] fix: upgrade @types/jquery from 3.5.27 to 3.5.28 (#5049) [skip ci] fix: src/Ombi/ClientApp/package.json & src/Ombi/ClientApp/yarn.lock to reduce vulnerabilities (#5040) [skip ci] fix: upgrade moment from 2.29.4 to 2.30.1 (#5075) [skip ci] fix: upgrade multiple dependencies with Snyk (#5073) [skip ci] fix: upgrade multiple dependencies with Snyk (#5104) [skip ci] fix: src/Ombi.Store/Ombi.Store.csproj to reduce vulnerabilities (#5160) fix: src/Ombi.Notifications/Ombi.Notifications.csproj to reduce vulnerabilities (#5167) fix(radarr-settings): this.normalForm is undefined (#5207) Fixes #4994
Describe the bug
When a user imported from emby authenticates; the authentication event (whether failed or successful) shows the IP of the OMBI instance instead of the IP of the user (displayed in embys dashboard under activity/alerts).
This behavior is the same when directly connected to ombi, as well as when connected via nginx with
"proxy_set_header X-Real-IP $remote_addr;" set.
As far as I can tell, the only way to find the correct IP currently is to manually dig through ombis log files and match up the time stamps with embys events.
To Reproduce
Log in with an emby user. Look at embys events.
Expected behavior
The ip reported in emby should be the ip of the user that's authenticating. It is instead the ip of the ombi instance.
Desktop (please complete the following information):
Ombi Version (please complete the following information):
The text was updated successfully, but these errors were encountered: