Skip to content

Do not log password #1022

Closed
Closed

Description

@windsource

Describe the bug

When running opencloud init the password of the admin user is logged which is bad practise due to security implications.

Steps to reproduce

  1. Using the container opencloudeu/opencloud-rolling:2.3.0
  2. /etc/opencloud being empty
  3. Environment variable IDM_ADMIN_PASSWORD set to mypassword
  4. In the container run opencloud init

Expected behavior

The password is not logged.

Actual behavior

The log contains:

=========================================
  generated OpenCloud Config
=========================================
 configpath : /etc/opencloud/opencloud.yaml
 user       : admin
 password   : mypassword

Setup

Additional context

Activity

  1. micbar commented on Nov 12, 2025

    @micbar
    Member

    @windsource I do not agree with your analysis.

    We are creating a random password, if none is given. This is important, we should be always "Secure by default".

    We need some method to inform the admin during the first startup of opencloud.

    NOTE: This is only when using the internal IDM. Normal deployments are using external IDM.

  2. moved this from Qualification to Done in OpenCloud Team Boardon Nov 12, 2025
  3. windsource commented on Nov 12, 2025

    @windsource
    Author

    @micbar I get your point. But you can see in my example, that I provide a password via the environment variable IDM_ADMIN_PASSWORD. What about logging the password only when has been generated?

  4. micbar commented on Nov 12, 2025

    @micbar
    Member

    @rhafer i am not sure if we can distinguish that case.

  5. reopened this on Nov 12, 2025
  6. jbrunner commented on May 21, 2026

    @jbrunner

    This should be labeled as Type:Security. In Kubernetes environments, logs are aggregated and persisted in centralized systems, making them accessible to multiple teams.

    Logging secrets is unacceptable and violates basic security practices.

    Could we at least add a --no-print-banner flag to suppress the banner output?

  7. self-assigned this
    on May 27, 2026
  8. moved this from Done to In Progress in OpenCloud Team Boardon May 27, 2026
  9. rhafer commented on May 27, 2026

    @rhafer
    Member

    Addressed in #2839. (Which also adds a --quiet cli flag.

    In Kubernetes environments

    @jbrunner Using opencloud init sounds somewhat wrong to me. opencloud init is mostly intended for the single node use cases. In an Kubernetes environment I think it's better to set everything via ConfigMap and Secrets, then you wouldn't need to call opencloud init at all.

  10. added a commit that references this issue on May 27, 2026
    da0b941
  11. added a commit that references this issue on Oct 13, 2026
    ab2b971
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions