/usr/lib/python2.7/dist-packages/custodia/root.py is in python-custodia 0.1.0-5ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from custodia.httpd.consumer import HTTPConsumer
from custodia.secrets import Secrets
import json
class Root(HTTPConsumer):
def __init__(self, *args, **kwargs):
super(Root, self).__init__(*args, **kwargs)
if self.store_name is not None:
self.add_sub('secrets', Secrets(self.config))
def GET(self, request, response):
return json.dumps({'message': "Quis custodiet ipsos custodes?"})
|