Skip to content

Commit

Permalink
Bump chat version including the fix for security_service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gfenoy committed Feb 10, 2025
1 parent 886ecf5 commit 91fa847
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zoo-project-dru/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.21
version: 0.3.22

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
7 changes: 5 additions & 2 deletions zoo-project-dru/files/zoo-project/security_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@ def securityIn(conf, inputs, outputs):
if "servicesNamespace" in conf and "debug" in conf["servicesNamespace"]:
zoo.debug(f"No JWT service available: {str(e)}")
rPath = conf["servicesNamespace"]["path"] + "/"
has_rpath=False
for i in conf["renv"]:
if i.count("SERVICES_NAMESPACE"):
rPath += conf["renv"][i]
if not(has_rpath):
rPath += conf["renv"][i]
has_rpath=True
if "auth_env" not in conf:
conf["auth_env"] = {"user": conf["renv"][i], "cwd": rPath}
else:
Expand All @@ -96,7 +99,7 @@ def securityIn(conf, inputs, outputs):
if "required_files" in conf["servicesNamespace"]:
rFiles = conf["servicesNamespace"]["required_files"].split(",")
for i in range(len(rFiles)):
zoo.info(f"Copy file {rFile[i]}")
zoo.info(f"Copy file {rFiles[i]}")
shutil.copyfile(
conf["renv"]["CONTEXT_DOCUMENT_ROOT"] + "/" + rFiles[i],
rPath + "/" + rFiles[i],
Expand Down

0 comments on commit 91fa847

Please sign in to comment.