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
influxd --session-length has no effect #17142
Comments
@dnr thanks for opening this. We will take a look. |
Any progress on this? The current behaviour is really annoying. |
@andig Sorry I closed this in error, because my team isn't directly involved in the fix. Here's an update. The session auto-logout has been increased from 4 hours to 8 hours, or at least it's the process of being increased on a region by region basis. The back end teams are working on coordinating a change to implement an active session timeout, that is, your session timeout limit will be reset every time you are active within the system. I don't have an ETA on that work, however, as I'm not on those teams, and I haven't checked in on that project recently. I hope that helps. |
Removing the UI team label since session management is handled by the compute & e-commerce team in unison |
Has there been any update on this? Either increasing session timeout or having a config to remove auth (for local networks) would be an awesome fix. |
I also agree - it'd be nice to not have to log so frequently into the influxd instances where I don't need this level of security. |
@dnr are you (still) experiencing this in OSS? |
I am. Logging into OSS instance that often is definitely annoying. |
Yes, this is still annoying. |
@dnr @divinitus @ssutcher I had a look at this. InfluxDB OSS is storing session data in in-memory storage. I am able to see the session-length working if I set it to a shorter value. Will leave it running overnight and see if setting to a longer value reproduces the issue for me. Which OSS version are you running currently? |
Mine is: It's in a container under podman. |
FWIW, I'm not running containerized; it's a direct RPM install on Centos Stream 8, running under systemd. |
Aha! I think the issue is that the backend is tracking expiry correctly, but the browser (e.g. Chrome) is not being told about the expiry, and so expires the cookie automatically when the browser restarts. There is a PR above to fix that works for me locally - at least it fixes preserving the cookie across browser restarts. |
The scenario for me is to have FF98 open all the time. I open a new tab, navigate to InfluxDB -> login -> watch the graphs -> close the tab. So at least in my dictionary this is not a browser restart. It's a new tab-close tab cycle. |
This is an annoying bug; I end using Grafana UI instead of Influxdb to run queries because of this bug, as the timeout is too short even for medium datasets. |
Yes I am actually using Grafana UI as well so I don't have to login all of the time |
@lesam From what I can see, the way server-side session cookies are handled by InfluxDB is clearly understood so its just a matter of making this feature available/visible to users either by configuration or by a change to the login UI. I would even be fine with a decent default like 8h or 12h but the current setting is way too short. InfluxDB is not a banking app but a monitoring tool. Practically all solutions with a web-interface nowadays have the option to set a userdefined "keep me logged in" flag. If the InfluxDB session timeout annoys so many people why can't this be changed? |
Has there been any progress on this? I'd like to set up an always-on dashboard for my home automation. I'm running the OSS version on-prem, so I do not need high security. I appreciate the suggestion to just use Grafana as the UI instead. I know that will do the job. |
I also always be logged out after a couple of minutes. [update] |
I'm trying to configure influxd 2 on a local network to not require logging in (at least not very often). The
--session-length
flag seems the obvious one to change, and I changed it to one year (in minutes), but it seems to have no effect and I'm prompted to log in frequently.I'm running it in docker.
Steps to reproduce:
List the minimal actions needed to reproduce the behavior.
--session-length=525600
Expected behavior:
I expect to see the dashboard and not be prompted to log in.
Actual behavior:
I get prompted to log in.
Environment info:
uname -srm
and copy the output hereLinux 5.3.0-24-generic x86_64
influxd version
and copy the output hereInfluxDB 2.0.0-beta.5 (git: 2295247a5) build_date: 2020-03-09T01:32:06Z
docker top
:Config:
Copy any non-default config values here or attach the full config as a gist or file.
From
docker inspect
:Logs:
Include snippet of errors in log.
The text was updated successfully, but these errors were encountered: