[os-q-feeds-connector] - API requests with empty tokens
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
Direzione di ricerca
The issue is in the Q-Feeds connector plugin. Start by locating the plugin's source code, likely under a directory like 'security/qfeeds-connector'. Examine the script that handles the update command, possibly '/usr/local/sbin/configctl qfeeds update' or a related PHP file. Look for the license request logic and the condition that checks for an empty API key. The fix involves adding a check before making the HTTP request and implementing a persistent backoff mechanism after a 401 response. Test by installing the plugin, leaving the API key empty, and verifying that no requests are made to 'https://api.qfeeds.com/licenses.php'.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- The title contains the plugin to which this issue belongs
Describe the bug
The Q-Feeds plugin contacts the license endpoint when no API key has been configured. The server correctly rejects the request with HTTP 401, but the connector tries again on later cron runs.
The problem is not limited to the development package. The same behavior is present in older, non-development versions of the plugin.
Authentication works correctly when a valid API key is configured.
To Reproduce
- Install the Q-Feeds connector.
- Leave the API key empty.
- Remove the existing Q-Feeds index file, if one is present.
- Run
/usr/local/sbin/configctl qfeeds update, or wait for the scheduled update. - The update contacts
https://api.qfeeds.com/licenses.phpand receives HTTP 401. - Later scheduled updates repeat the request while the API key remains empty.
Expected behavior
When no API key is configured, the connector should not contact the license or feed endpoints. It should wait until an API key has been saved.
After an HTTP 401 response, scheduled updates should use a persistent backoff and should not retry every few minutes.
Screenshots
Not applicable.
Relevant log files
Reproduced on a development firewall with:
- OPNsense 26.7.4_1 (amd64)
- os-q-feeds-connector-devel 1.6_1
- Empty
/usr/local/etc/qfeeds.conf
The connector still sent a request to licenses.php, including an Authorization header. The endpoint returned HTTP 401.
The same no-key request path is also present in older, non-development plugin versions.
Additional context
The connector currently starts the license request without first confirming that an API key exists. When the request fails, no new local index is saved. A later scheduled update therefore tries the same request again.
The existing one-hour wait after a 401 only affects the process that received that response. It does not persist between scheduled update processes.
Environment
Verified on:
OPNsense 26.7.4_1 (amd64)
os-q-feeds-connector-devel 1.6_1
Also applies to older, non-development versions of os-q-feeds-connector.
- Lingua principale
- PHP
- Stelle
- 1.2k
- Fork
- 905
- Merge medio
- 4g 16h
- PR unite (30g)
- 21
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di opnsense/plugins
-
security/openvpn-legacy: read-only user can stop a running VPNForse già presa @besendorf l’ha presa oggi. Apertaincomplete
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
opnsense/plugins#5887 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
security/tailscale: add description to restart serviceForse già presa @drpsyko101 l’ha presa 4 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
security/acme-client: missing accounts directory causes DNS-01 validation failureForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertasupport
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
opnsense/plugins#5770 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
security/tor: Advanced mode / help toggles are brokenForse già presa @txr13 l’ha presa 46 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di opnsense/plugins
Issue simili
-
Author mapping step: "create new user" and "assign to existing user" fields have no spacing between themForse già presa @umeshnevase l’ha presa oggi. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
WordPress/wordpress-importer#275 ·
-
jira-created
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
-
No Code Attached Yet
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
joomla/joomla-cms#48786 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Icinga/icingaweb2-module-director#3188 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
mollie/WooCommerce#1327 ·