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

nzbfinder.ws api key not being obscured in logs #2025

Closed
2 tasks done
arabcoders opened this issue Feb 13, 2024 · 1 comment
Closed
2 tasks done

nzbfinder.ws api key not being obscured in logs #2025

arabcoders opened this issue Feb 13, 2024 · 1 comment
Labels
Type: Bug Issue is a bug

Comments

@arabcoders
Copy link

Is there an existing issue for this?

  • I have searched the existing open and closed issues

Current Behavior

The logs in prowlarr showing the api key which make it harder to share logs with devs to diagnose problems.

Expected Behavior

The API key should be obscured. it seem NZBFinder uses &r=api_key instead of the usual &api_key=api_key for their download links.

Steps To Reproduce

In my case downloading deleted nzb trigger this error. for this specfic nzb indexer

Environment

- OS: Linux
- Prowlarr: 1.13.3.4273
- Docker Install: 1.13.3.4273-ls52 by linuxserver.io
- Using Reverse Proxy: Yes
- Browser: Chrome Version 121.0.6167.161 (Official Build) (64-bit)

What branch are you running?

Master

Trace Logs?

Example of API key showing in the logs

NzbDrone.Core.Exceptions.ReleaseDownloadException: Download failed
 ---> NzbDrone.Common.Http.HttpException: HTTP request failed: [400:BadRequest] [GET] at [https://nzbfinder.ws/getnzb?id=filename.nzb&r=api_key_not_removed]
   at NzbDrone.Common.Http.HttpClient.ExecuteAsync(HttpRequest request) in ./Prowlarr.Common/Http/HttpClient.cs:line 128
   at NzbDrone.Core.Indexers.IndexerHttpClient.ExecuteProxiedAsync(HttpRequest request, ProviderDefinition definition) in ./Prowlarr.Core/Indexers/IndexerHttpClient.cs:line 42
   at NzbDrone.Core.Indexers.HttpIndexerBase`1.Download(Uri link) in ./Prowlarr.Core/Indexers/HttpIndexerBase.cs:line 251
<?xml version="1.0" encoding="UTF-8"?>
<error code="300" description="NZB file not found!"/>

   --- End of inner exception stack trace ---
   at NzbDrone.Core.Indexers.HttpIndexerBase`1.Download(Uri link) in ./Prowlarr.Core/Indexers/HttpIndexerBase.cs:line 251
   at NzbDrone.Core.Download.DownloadService.DownloadReport(String link, Int32 indexerId, String source, String host, String title) in ./Prowlarr.Core/Download/DownloadService.cs:line 191
   at NzbDrone.Api.V1.Indexers.NewznabController.GetDownload(Int32 id, String link, String file) in ./Prowlarr.Api.V1/Indexers/NewznabController.cs:line 308
NzbDrone.Common.Http.HttpException: HTTP request failed: [400:BadRequest] [GET] at [https://nzbfinder.ws/getnzb?id=filename.nzb&r=api_key_not_removed]
   at NzbDrone.Common.Http.HttpClient.ExecuteAsync(HttpRequest request) in ./Prowlarr.Common/Http/HttpClient.cs:line 128
   at NzbDrone.Core.Indexers.IndexerHttpClient.ExecuteProxiedAsync(HttpRequest request, ProviderDefinition definition) in ./Prowlarr.Core/Indexers/IndexerHttpClient.cs:line 42
   at NzbDrone.Core.Indexers.HttpIndexerBase`1.Download(Uri link) in ./Prowlarr.Core/Indexers/HttpIndexerBase.cs:line 251
<?xml version="1.0" encoding="UTF-8"?>
<error code="300" description="NZB file not found!"/>

Trace Logs have been provided as applicable. Reports may be closed if the required logs are not provided.

  • I have read and followed the steps in the wiki link above and provided the required trace logs - the logs contain trace - that are relevant and show this issue.
@arabcoders arabcoders added Status: Needs Triage New Issue needing triage Type: Bug Issue is a bug labels Feb 13, 2024
@mynameisbogdan mynameisbogdan removed the Status: Needs Triage New Issue needing triage label Feb 13, 2024
@mynameisbogdan
Copy link
Contributor

It is already cleansed in the log files.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Issue is a bug
Projects
None yet
Development

No branches or pull requests

2 participants