##// END OF EJS Templates
healthcheck: Added authentication because we expose DB information
super-admin -
r4737:77c100d1 stable
parent child
Show More
@@ -26,6 +26,8 from pyramid.httpexceptions import HTTPF
26
26
27 from rhodecode.apps._base import BaseAppView
27 from rhodecode.apps._base import BaseAppView
28 from rhodecode.lib import helpers as h
28 from rhodecode.lib import helpers as h
29 from rhodecode.lib.auth import LoginRequired
30 from rhodecode.model.db import UserApiKeys
29
31
30 log = logging.getLogger(__name__)
32 log = logging.getLogger(__name__)
31
33
@@ -73,6 +75,7 class OpsView(BaseAppView):
73 redirect_to = self.request.GET.get('to') or h.route_path('home')
75 redirect_to = self.request.GET.get('to') or h.route_path('home')
74 raise HTTPFound(redirect_to)
76 raise HTTPFound(redirect_to)
75
77
78 @LoginRequired(auth_token_access=[UserApiKeys.ROLE_HTTP])
76 def ops_healthcheck(self):
79 def ops_healthcheck(self):
77 from rhodecode.lib.system_info import load_system_info
80 from rhodecode.lib.system_info import load_system_info
78
81
General Comments 0
You need to be logged in to leave comments. Login now