noobaa-operator icon indicating copy to clipboard operation
noobaa-operator copied to clipboard

`obc status` Prints Secrets In `alias s3=` (Without Flag `--show-secrets`)

Open shirady opened this issue 11 months ago • 0 comments

Environment info

  • NooBaa Operator Version: current master (5.14)
  • Platform: Rancher Desktop 1.19.0 (VM and cluster)

Actual behavior

  1. When running obc status prints secrets in alias s3 (without flag --show-secrets).

Expected behavior

  1. Secrets are shown only by using the flag --show-secrets.

Steps to reproduce

I saw it while I was trying to create a new aws-s3 backingstore (maybe some of the steps might be redundant):

  1. Based on the instructions here - the steps of ‘Build images’ and ‘Deploy noobaa’. Note: nb is an alias that runs the local operator from build/_output/bin (alias created by devenv).
  2. Create backingstore resource: nb backingstore create aws-s3 shira-bs-aws (shira-bs-aws is the backing store name).
  3. Create bucket class: nb bucketclass create placement-bucketclass bc-shira --backingstores=shira-bs-aws (bc-shira is the name of the bucket class).
  4. Create obc: nb obc create obc-shira --bucketclass=bc-shira (obc-shira is the name of the obc). At this point is will print a part of Shell commands: and under it, you will see AWS S3 Alias and the secrets are observable (no use of --show-secrets flag). The same is after creation and using nb obc status obc-shira.

More information - Screenshots / Logs / Other output

none

shirady avatar Jul 18 '23 08:07 shirady