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

packaging: setup: Filter from logs secrets from otopi answer files #585

Merged
merged 1 commit into from
Aug 24, 2022

Commits on Aug 24, 2022

  1. packaging: setup: Filter from logs secrets from otopi answer files

    When running engine-setup with an answer file generated by a previous
    interactive engine-setup, without this patch, we log some secrets
    unfiltered. Fix this:
    
    - Require a new otopi that provides LOG_FILTER_QUESTIONS.
    
    - Conflict with older dwh/keycloak that are incompatible with the
    changes in getCredentials (see below).
    
    - Add an attribute 'asked_on' for constants. If a constant is_secret,
    require setting asked_on, to a list of question names that might
    change/set it.
    
    - Add a field CREDS_Q_NAME_FUNC to the various *DB_ENV_KEYS. This field
    should point at a function that should return the question name for a
    particular field.
    
    - Change getCredentials to not get a parameter queryprefix for
    constructing the question names, instead relying on CREDS_Q_NAME_FUNC.
    
    - Add functions *question_name for both passing as CREDS_Q_NAME_FUNC and
    for asked_on.
    
    - And finally: Patch filter_secrets.py to also loop over all the
    constants that set is_secret, and add their asked_on to
    env[LOG_FILTER_QUESTIONS]. This makes otopi filter out all the answers
    provided for these questions in answer files.
    
    Change-Id: Ibaca2a03f2020750f96ae30a3448ea2ad17fe43c
    Signed-off-by: Yedidyah Bar David <didi@redhat.com>
    didib committed Aug 24, 2022
    Configuration menu
    Copy the full SHA
    cb4f5c7 View commit details
    Browse the repository at this point in the history