-
We have a long runnning process (a small rest api that generates device config files). This process fetches a session key on startup and keeps using it forever (until it is restarted). Since switching from DanSheps' plugin to this one, we noticed that our restapi sometimes fails with Q: Are session keys invalidated after some time? can this be turned off or is the length at least configurable? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@abhi1693, can you please share you insight on this? |
Beta Was this translation helpful? Give feedback.
-
by pure luck we managed to identify when this bug occurs: if a user adds their session key, it invalidates all other user's session keys! here is the relevant commit: fd2a22a#diff-9990b46add1ad8ae1af4d8e4ee578166248d807cff0d20ba7724fa400e71388dL187-R228 (note that this commit, descriptively named "misc cleanup", modifies 26 files, and is contained in a pull request with 42 commits! it's completely unsurprising that bugs get introduced when code is pushed in such an unauditable way and without any review attempts at all) I also found out that this bug has been fixed in the meantime, in 1d00380. |
Beta Was this translation helpful? Give feedback.
by pure luck we managed to identify when this bug occurs: if a user adds their session key, it invalidates all other user's session keys!
here is the relevant commit:
fd2a22a#diff-9990b46add1ad8ae1af4d8e4ee578166248d807cff0d20ba7724fa400e71388dL187-R228
(note that this commit, descriptively named "misc cleanup", modifies 26 files, and is contained in a pull request with 42 commits! it's completely unsurprising that bugs get introduced when code is pushed in such an unauditable way and without any review attempts at all)
I also found out that this bug has been fixed in the meantime, in 1d00380.