Skip to content

Commit afa33d7

Browse files
serfonfstagni
authored andcommitted
fix: Remove of Sensitive Information into Log File generated by RucioFileCatalogClient
1 parent 6e11057 commit afa33d7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/DIRAC/Resources/Catalog/RucioFileCatalogClient.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __init__(self, **options):
112112
proxyInfo = getProxyInfo(disableVOMS=True)
113113
if proxyInfo["OK"]:
114114
os.environ["X509_USER_PROXY"] = proxyInfo["Value"]["path"]
115-
sLog.debug(f"X509_USER_PROXY not defined. Using {proxyInfo['Value']['path']}")
115+
sLog.debug("X509_USER_PROXY not defined. Using value from proxyInfo")
116116
try:
117117
try:
118118
self._client = Client()
@@ -125,7 +125,7 @@ def __init__(self, **options):
125125
dn = proxyInfo["Value"]["identity"]
126126
username = proxyInfo["Value"]["username"]
127127
self.account = username
128-
sLog.debug(f"Switching to account {username} mapped to proxy {dn}")
128+
sLog.debug(f"Switching to another account based on DN")
129129

130130
try:
131131
self._client = Client(account=self.account)
@@ -151,8 +151,7 @@ def __init__(self, **options):
151151
self.authHost = options.get("AuthHost", None)
152152
self.caCertPath = Locations.getCAsLocation()
153153
try:
154-
sLog.info(f"Logging in with a proxy located at: {self.proxyPath}")
155-
sLog.debug("account: ", self.username)
154+
sLog.info("Logging in with a user proxy")
156155
sLog.debug("rucio host: ", self.rucioHost)
157156
sLog.debug("auth host: ", self.authHost)
158157
sLog.debug("CA cert path: ", self.caCertPath)

0 commit comments

Comments
 (0)