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

[ansible/artifactory] Assert that database username and password are defined. #336

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

bbaassssiiee
Copy link
Contributor

PR Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • Title of the PR starts with installer/product name (e.g. [ansible/artifactory])
  • CHANGELOG.md updated
  • Variables and other changes are documented in the README.md

What this PR does / why we need it:
The looping in the creation tasks for user, database and privileges in the postgres role did not fail on undefined values. Input validation was missing, and the logging of item=None is not so useful.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged):
fixes #311

Special notes for your reviewer:

@Logeshwarsn
Copy link
Contributor

@bbaassssiiee Could you please address the comment ?

@chukka chukka changed the base branch from master to jp-10.16.0 October 26, 2023 15:50
@chukka chukka merged commit e9ab58b into jfrog:jp-10.16.0 Oct 26, 2023
1 check passed
chukka pushed a commit that referenced this pull request Oct 26, 2023
…defined. (#336)

* Assert that database username and password are defined.

Signed-off-by: Bas Meijer <[email protected]>

* Assertion at the start of the postgres role.

---------

Signed-off-by: Bas Meijer <[email protected]>
@bbaassssiiee bbaassssiiee deleted the bugfix/311 branch December 11, 2023 09:17
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

Successfully merging this pull request may close these issues.

[ansible/artifactory] No input validation on database credentials
3 participants