Bug 661508

Summary: (RFE) Allow user-configurable period of inactivity after which authenticated session will timeout in luci
Product: [Fedora] Fedora Reporter: Jan Pokorný [poki] <jpokorny>
Component: luciAssignee: Jan Pokorný [poki] <jpokorny>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: cfeist, fdinitto, rmccabe
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-13 19:36:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 660446    
Bug Blocks:    

Description Jan Pokorný [poki] 2010-12-08 21:26:29 UTC
Current state
-------------
Commit
http://git.fedorahosted.org/git/?p=luci.git;a=commit;h=cef6da6fd7b45db6554af6a1e398a1fe4694b166
camed with "force idle sessions to timeout after 15 minutes of inactivity"
settings for auth_tkt authentication plugin (via repoze.who middleware which
auth_tkt is a part of)

But it has a drawback as additional configuration options used for that are
supported by repoze.who >= 2.0.14 and if older version is used, it leads to
fail in combination with them (unfortunately, this middleware is not designed
to support this kind of backward compatibility).


What to change
--------------
Due to previously stated, it would be reasonable to maintain this backward
compatibility (at least for some time) with repoze.who before 2.0.14
(which could be arranged easily by wrapping the creation of auth_tkt
plugin, trying it with all available parameters and if it fails, trying
with limited parameters supported by repoze.who before 2.0.14).

Apparently, the more important change is to allow user to customize
this idle session timeout.

Comment 1 Jan Pokorný [poki] 2010-12-08 21:27:32 UTC
Note: this was fixed in the context of work on pkg-update upstream
      branch which means the fix ties closely to the major change
      brought from this branch into main-line upstream code
      in connection with bug #660446

Comment 2 Jan Pokorný [poki] 2010-12-08 22:05:28 UTC
Commit http://git.fedorahosted.org/git/?p=luci.git;a=commit;h=3b02c9c01aabace3dbb173206937ac6a5d1a2fbd addresses this bug.

Comment 3 Jan Pokorný [poki] 2010-12-11 11:58:04 UTC
To test this, basically this sequence (made after installation) will serve its
purpose:

Comment 4 Jan Pokorný [poki] 2010-12-11 12:15:49 UTC
...

note: following is applicable only if python-repoze-who >= 2.0.14 is
      installed -- otherwise a simple check that luci works as usual when
      (re)started could be perfomed (to ensure that backward compatibility
      with       older versions of python-repoze-who is kept)

1. edit /etc/sysconfig/luci -> uncomment "who.auth_tkt_timeout"
   configuration item and set the period (in sec) of authenticated
   session inactivity before the session in invalidated -- this
   will be the main subject of the test
2. (re)start luci, log in and keep the page open for slightly longer
   time then defined in the step 1.
3. reload the page (e.g. by F5) and see if you have been logged out

To ensure that this configuration item is really taken into account
(and not the default value which is currently 900 sec) the test should be
repeated with a measurable different period set.