Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/DIRAC/ConfigurationSystem/ConfigTemplate.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Services
{
# Default authorization
Default = authenticated
#Define who can commit new configuration
# Define who can register other services
publishSlaveServer = TrustedHost
# Define who can commit new configuration
commitNewData = CSAdministrator
# Define who can roll back the configuration to a previous version
rollbackToVersion = CSAdministrator
Expand All @@ -35,7 +37,9 @@ Services
{
# Default authorization
Default = authenticated
#Define who can commit new configuration
# Define who can register other services
publishSlaveServer = TrustedHost
# Define who can commit new configuration
commitNewData = CSAdministrator
# Define who can roll back the configuration to a previous version
rollbackToVersion = CSAdministrator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def export_getCompressedDataIfNewer(cls, sClientVersion):
return S_OK(retDict)

types_publishSlaveServer = [str]
auth_publishSlaveServer = ["TrustedHost"]

@classmethod
def export_publishSlaveServer(cls, sURL):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def export_getCompressedDataIfNewer(self, sClientVersion):
retDict["data"] = b64encode(self.ServiceInterface.getCompressedConfigurationData()).decode()
return S_OK(retDict)

auth_publishSlaveServer = ["TrustedHost"]

def export_publishSlaveServer(self, sURL):
"""
Used by worker server to register as a worker server.
Expand Down
Loading