This also contains a documentation fix for authentication in / endpoint.
Signed-off-by: Boris Ranto <branto@redhat.com>
return {
'api_version': 1,
'auth':
- 'Use ceph auth key pair as HTTP Basic user/password '
- '(requires caps mon allow * to function properly)',
+ 'Use "ceph tell mgr create_key <key>" to create a key pair, '
+ 'pass it as HTTP Basic auth to authenticate',
'doc': 'See /doc endpoint',
'info': "Ceph Manager RESTful API server",
}
def load_cert(self):
- cert_base = '/etc/ceph/ceph-mgr-restful'
+ cert_base = self.get("config").get("mgr_data", "/tmp") + "/ceph-mgr-restful"
cert_file = cert_base + '.crt'
pkey_file = cert_base + '.key'