/usr/lib/python3/dist-packages/custodia/root.py is in python3-custodia 0.5.0-3.
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 17 18 19 20 | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
import json
from custodia.plugin import HTTPConsumer, PluginOption
from custodia.secrets import Secrets
class Root(HTTPConsumer):
store = PluginOption('store', None, None)
def __init__(self, config, section):
super(Root, self).__init__(config, section)
if self.store_name is not None:
self.add_sub('secrets', Secrets(config, section))
def GET(self, request, response):
msg = json.dumps({'message': "Quis custodiet ipsos custodes?"})
return msg.encode('utf-8')
|