Keystone2Keystone extension leaks file descriptors

Bug #1368690 reported by Marek Denis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Low
Unassigned

Bug Description

Keystone2Keystone extension uses pysaml2 library.
Currently, one method used in Keystone, sigver.read_cert_from_file (https://github.com/openstack/keystone/blob/1e204483e5feebe489ecca409509ae31bacb0ce2/keystone/contrib/federation/idp.py#L446) doesn't properly close file descriptors (https://github.com/rohe/pysaml2/blob/master/src/saml2/sigver.py#L643)

Proposed fix: File a bug in pysaml2 and propose a fix for pysaml2 library.

Changed in keystone:
assignee: nobody → Marek Denis (marek-denis)
Revision history for this message
Marek Denis (marek-denis) wrote :

The fix for pysaml2 library was just merged: https://github.com/rohe/pysaml2/pull/139

Revision history for this message
Lance Bragstad (lbragstad) wrote :

Marek, do you have the second link available again? The source for pysaml2 seems to have changed after you posted the original description.

tags: added: federation
description: updated
tags: added: juno-rc-potential
Changed in keystone:
importance: Undecided → Low
Revision history for this message
Marek Denis (marek-denis) wrote :

Lance,

Here is the diff that fixes the problem. It's already merged to the master branch.
https://github.com/rohe/pysaml2/commit/58400479eeae275f15676f1a66767c95704809cc

Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

This isn't a Keystone bug, it is a pysaml bug and there will be/has been a release to solve it.

Changed in keystone:
status: New → Invalid
assignee: Marek Denis (marek-denis) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.