Skip to content

Conversation

@TheLastProject
Copy link
Contributor

@TheLastProject TheLastProject commented Oct 26, 2022

This allows logging into a registry again like Molecule 4.0.1 allowed

I noticed that upgrading from molecule 4.0.1 to 4.0.2 at work broke our ability to use containers on a private Docker registry (in our case, a private GitLab registry).

The specific error message we started receiving was:

["Additional properties are not allowed ('credentials' was unexpected)"]

I came to the conclusion this was most likely broken by accident given:

  1. The option does work (removing the option from our molecule.yml gave us permission errors)
  2. There was nothing in the CHANGELOG about Docker registries
  3. Comparing release 4.0.1 to 4.0.2 showed nothing related to Docker registries either: v4.0.1...v4.0.2
  4. The old schema on release 4.0.1 contained these options: https://github.com/ansible-community/molecule/blob/v4.0.1/src/molecule/model/schema_v3.py#L245-L258
  5. This feature previously received fixes: Validation for registry credentials (password) blocks passing actual credential value to underlying playbook #1331

@TheLastProject TheLastProject requested review from a team as code owners October 26, 2022 12:22
@TheLastProject TheLastProject requested review from cidrblock, ganeshrn, greg-hellings, jseguillon and trishnaguha and removed request for a team October 26, 2022 12:22
@github-actions github-actions bot added the bug label Oct 26, 2022
@zhan9san
Copy link
Contributor

@TheLastProject

Thanks for your contribution.
It looks good.

Would you mind taking a look at failed ci test?

It's not related to your change.

@TheLastProject
Copy link
Contributor Author

Sorry, I have no clue what could possibly be causing these test failures

Allows logging into a registry again like Molecule 4.0.1 allowed
@TheLastProject TheLastProject force-pushed the fix/reallow_registry_login branch from ff1016c to bbfaba8 Compare October 27, 2022 07:55
@zhan9san zhan9san merged commit c04706c into ansible:main Oct 27, 2022
davedittrich pushed a commit to davedittrich/molecule that referenced this pull request Dec 4, 2022
Allows logging into a registry again like Molecule 4.0.1 allowed

Co-authored-by: Jack <jack4zhang@gmail.com>
@cs35-owncloud
Copy link

It seems to work with molecule 4.0.4 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validation for registry credentials (password) blocks passing actual credential value to underlying playbook

3 participants