Skip to content

Commit

Permalink
Do not show access_key in s3 driver
Browse files Browse the repository at this point in the history
Closes-Bug: #2047688
Change-Id: I9193df38d613259b61bb369fa1040fb2c51a21d7
  • Loading branch information
lujiefsi committed Jan 19, 2024
1 parent 7b1df2a commit a5ba027
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions glance_store/_drivers/s3.py
Expand Up @@ -623,10 +623,8 @@ def add(self, image_id, image_file, image_size, hashing_algo, context=None,
raise glance_store.BackendException(msg)

LOG.debug("Adding image object to S3 using (s3_host=%(s3_host)s, "
"access_key=%(access_key)s, bucket=%(bucket)s, "
"key=%(key)s)",
{'s3_host': self.s3_host, 'access_key': loc.accesskey,
'bucket': bucket, 'key': key})
"bucket=%(bucket)s, key=%(key)s)",
{'s3_host': self.s3_host, 'bucket': bucket, 'key': key})

if not self._object_exists(s3_client, bucket, key):
if image_size < self.s3_store_large_object_size:
Expand Down

0 comments on commit a5ba027

Please sign in to comment.