Releases: rackslab/RFL
Releases · rackslab/RFL
v1.3.0
Added
- auth:
- Introduce
AnonymousUser
class as a child ofAuthenticatedUser
withis_anonynous()
onAuthenticatedUser
class to tell if user is anonymous. - Add posibility to lookup user DN in the scope of user base subtree before trying authentication instead of expecting the DN is the basic concatenation of the user name attribute, the login and the user base (#30→#36).
- Introduce
- perms: Add
RBACPolicyManager.disable_anonymous()
as a mean to disable anonymous role even if defined in loaded authorization policy (#35→#39)
Changed
- web: Change error description and log message when unauthorized to access endpoint with
@rbac_action
decorator with anonymous token in order to match access without token.
Fixed
v1.2.0
Added
- settings: print list parameters as comma-separated list of values for more readability (#27).
Changed
- permissions: Do not attribute anonymous role by default anymore to authenticated users.
Fixed
v1.1.1
v1.1.0
Added
- core: Introduce
asyncio
module withasyncio_run()
wrapper with a backported version ofasyncio.run()
compatible with Python 3.6 (#11). - settings:
- Add
dump()
method onRuntimeSettings
class to print all settings with their value and origin on standard output. - Add
name
attribute onSettingsDefinitionLoaderYaml
andRuntimeSettingsSiteLoaderIni
classes. - Add
_origin
dict attribute onRuntimeSettingsSection
to keep tracks of origin of parameters values. - Support new
password
type of parameters, similar to strings but it is not printed as clear text when dumped (#7). - Support new
ip
andnetwork
types of parameters which return Pythonipaddress.IPv{4,6}Address
andipaddress.IPv{4,6}Network
objects respectively (#8).
- Add
Fixed
- auth: When retrieving users with
users()
method, raiseLDAPAuthenticationError
only when user name attribute is missing in all retrieved user entries, instead of raising as soon as it is missing in any user entry. Warning log message is emitted for all user entries that miss the attribute (#12).
v1.0.3
Added
- core: Introduce
utils
module withshlex_join
function to backportshlex.join()
from Python >= 3.8. - auth:
- Add
user_primary_group_attribute
argument toLDAPAuthentifier
class initializer with default value gidNumber to define an alternative
user primary group ID attribute (#4). - Add
group_object_classes
argument toLDAPAuthentifier
class initializer with default values posixGroup and groupOfNames to define alternative LDAP group object classes (#6).
- Add
Changed
- auth: Support absence of primary group attribute optional in LDAP user entries (#5).
Fixed
- auth: Handle
UnicodeDecodeError
when loading JWT private key (#3).
v1.0.2
Added
- auth: Add
user_name_attribute
argumetn with default value uid toLDAPAuthentifier
class initializer to specify an alternative user name attribute (#2). - build: Support explicit packages list without find, lack of dependencies, lack of urls, lack and file license in PEP 518 → setup.py script generator.
Changed
- auth: Add default values for
cacert
,user_class
,user_fullname_attribute
andgroup_name_attribute
arguments ofLDAPAuthentifier
class initializer.