Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide variables in job output #37

Open
Benjamin-K opened this issue Apr 19, 2022 · 0 comments
Open

Hide variables in job output #37

Benjamin-K opened this issue Apr 19, 2022 · 0 comments

Comments

@Benjamin-K
Copy link

Currently variables are replaced by their corresponding value. This could lead to security issues as password will be shown in plain text in the prunner output. Therefore, variables passed from an .env file should not be replaced by their value and kept as is.

Example

.env

DB_USER=user
DB_PASSWORD=my_secure_pw
DB_NAME=db

NEW_DB_USER=new_user
NEW_DB_PASSWORD=my_really_secure_pw
NEW_DB_NAME=new_db

pipelines.yaml:

pipelines:
  name:
    tasks:
      exportDb:
        script:
          - mysqldump -u $DB_USER -p$DB_PASSWORD -h 127.0.0.1 $DB_NAME > /path/to/dump.sql
      importDb:
        script:
          - |
            ssh -p 1234 other-host.com "
            cat /path/to/dump.sql | mysql -u $NEW_DB_USER -p$NEW_DB_PASSWORD -h 127.0.0.1 $NEW_DB_NAME
            "

This will print mysql -u new_user -pmy_really_secure_pw -h 127.0.0.1 new_db in the log visible in the Neos backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant