Skip to content

Commit

Permalink
remove password obfuscation as that is now handled by csi-rclone
Browse files Browse the repository at this point in the history
  • Loading branch information
Panaetius committed Jan 11, 2024
1 parent ca7b991 commit 03b640f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions renku_notebooks/api/schemas/cloud_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from pathlib import Path
from typing import Any, Dict, List, Optional

from marshmallow import EXCLUDE, Schema, ValidationError, fields, validates_schema
from marshmallow import (EXCLUDE, Schema, ValidationError, fields,
validates_schema)

from ...config import config
from ..classes.user import User
Expand Down Expand Up @@ -152,9 +153,6 @@ def config_string(self, name: str) -> str:
# Switch is a fake provider we add for users, we need to replace it since rclone itself
# doesn't know it
self.configuration["provider"] = "Other"
configuration = config.storage_validator.obscure_password_fields_for_storage(
self.configuration
)
parser = ConfigParser()
parser.add_section(name)

Expand All @@ -163,7 +161,7 @@ def _stringify(value):
return "true" if value else "false"
return str(value)

for k, v in configuration.items():
for k, v in self.configuration.items():
parser.set(name, k, _stringify(v))
stringio = StringIO()
parser.write(stringio)
Expand Down

0 comments on commit 03b640f

Please sign in to comment.