Skip to content

Commit cb49c1e

Browse files
committed
fix: added TornadoProxyManager to ConfigTemplate.cfg
1 parent f0be806 commit cb49c1e

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

src/DIRAC/FrameworkSystem/ConfigTemplate.cfg

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,38 @@ Services
7171
}
7272
}
7373
##END
74+
##BEGIN TornadoProxyManager:
75+
# Section to describe ProxyManager system
76+
# https://dirac.readthedocs.org/en/latest/AdministratorGuide/Systems/Framework/ProxyManager/index.html
77+
TornadoProxyManager
78+
{
79+
Protocol = https
80+
MaxThreads = 100
81+
# Flag to use myproxy server
82+
UseMyProxy = False
83+
# Email to use as a sender for the expiration reminder
84+
MailFrom = "[email protected]"
85+
# Description of rules for access to methods
86+
Authorization
87+
{
88+
Default = authenticated
89+
getProxy = FullDelegation
90+
getProxy += LimitedDelegation
91+
getProxy += PrivateLimitedDelegation
92+
getVOMSProxy = FullDelegation
93+
getVOMSProxy += LimitedDelegation
94+
getVOMSProxy += PrivateLimitedDelegation
95+
getProxyWithToken = FullDelegation
96+
getProxyWithToken += LimitedDelegation
97+
getProxyWithToken += PrivateLimitedDelegation
98+
getVOMSProxyWithToken = FullDelegation
99+
getVOMSProxyWithToken += LimitedDelegation
100+
getVOMSProxyWithToken += PrivateLimitedDelegation
101+
getLogContents = ProxyManagement
102+
setPersistency = ProxyManagement
103+
}
104+
}
105+
##END
74106
SecurityLogging
75107
{
76108
Port = 9153
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
""" TornadoProxyManager is the implementation of the ProxyManagement service in HTTPS
22
33
.. literalinclude:: ../ConfigTemplate.cfg
4-
:start-after: ##BEGIN ProxyManager:
4+
:start-after: ##BEGIN TornadoProxyManager:
55
:end-before: ##END
66
:dedent: 2
7-
:caption: ProxyManager options
7+
:caption: TornadoProxyManager options
88
"""
9+
from DIRAC import gLogger
910
from DIRAC.Core.Tornado.Server.TornadoService import TornadoService
1011
from DIRAC.FrameworkSystem.Service.ProxyManagerHandler import ProxyManagerHandlerMixin
1112

1213

14+
sLog = gLogger.getSubLogger(__name__)
15+
16+
1317
class TornadoProxyManagerHandler(ProxyManagerHandlerMixin, TornadoService):
14-
pass
18+
log = sLog

0 commit comments

Comments
 (0)