latchset / custodia.openshift Goto Github PK
View Code? Open in Web Editor NEWCustodia plugins for OpenShift
License: GNU General Public License v3.0
Custodia plugins for OpenShift
License: GNU General Public License v3.0
In some situations I see custodia configured with custodia.openshift
to fail with
2018-01-03 15:59:15 - ContainerAuth-[auth:container] - Detected docker://6e3578420cc82950272a5a479e48222be99e9f9a35104a24751124dbcdd6e630 for pid 102522
2018-01-03 15:59:15 - SimplePathAuthz-[authz:paths] - PASS: '102522' authorized for '/secrets'
2018-01-03 15:59:15 - server - Handler failed: KeyError(u'containerID',)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/custodia/httpd/server.py", line 351, in handle_one_request
response = self.pipeline(self.server.config, request)
File "/usr/lib/python2.7/site-packages/custodia/httpd/server.py", line 450, in pipeline
valid = authzers[authz].handle(request)
File "/usr/lib/python2.7/site-packages/custodia/openshift/authz.py", line 83, in handle
pod = self.find_pod(pods, containerid)
File "/usr/lib/python2.7/site-packages/custodia/openshift/authz.py", line 68, in find_pod
if status[u'containerID'] == containerid:
KeyError: u'containerID'
It seems the code in find_pod
cycles containerStatuses
but assumes that containerID
has to be present.
I haven't seen my tests fail with OpenShift 3.6 but with 3.7, I've started to get the above traceback, so maybe in 3.7 containerID
can be missing? Or perhaps with 3.6 I was just lucky. In any case, the code should likely check for containerID
existence.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.