DIARCHERS-610: generate batch token to connect vault#589
Conversation
6945f12 to
435c9e1
Compare
liuwei08
left a comment
There was a problem hiding this comment.
Found this error in rel env, https://infrabox.datahub.only.sap/dashboard/#/project/rms/build/45609/1/job/generator%2Fbuild-testjumpbox-server-csi-image.1, Please fix this bug
File "/infrabox/api/handlers/job_api.py", line 454, in get
secret = get_secret(json.dumps(password))
File "/infrabox/api/handlers/job_api.py", line 416, in get_secret
batch_token = vault_client.generate_batch_token(token_to_use)
File "/infrabox/api/handlers/job_api.py", line 99, in generate_batch_token
if 'token-creator' in self.policies:
TypeError: argument of type 'NoneType' is not iterable
21-11-2025:05:58:52,918 INFO [job_api.py:414] validate way is appRole
21-11-2025:05:58:53,134 ERROR [app.py:1891] Exception on /api/job/job [GET]
Traceback (most recent call last):
No description provided.