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

Add client_authentication parameter to plugin::pulp #682

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Jun 18, 2021

Depends on the outcome of theforeman/smart_proxy_pulp#28

manifests/plugin/pulp.pp Outdated Show resolved Hide resolved
@ehelms ehelms changed the title Add certificate_common_name_auth setting to plugin::pulp Add client_authentication parameter to plugin::pulp Jun 18, 2021
class foreman_proxy::plugin::pulp (
Foreman_proxy::ListenOn $listen_on = 'https',
Boolean $pulpcore_enabled = true,
Boolean $pulpcore_mirror = false,
Stdlib::HTTPUrl $pulpcore_api_url = $foreman_proxy::plugin::pulp::params::pulpcore_api_url,
Stdlib::HTTPUrl $pulpcore_content_url = $foreman_proxy::plugin::pulp::params::pulpcore_content_url,
Optional[String] $version = undef,
Boolean $client_authentication = ['client_certificate'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Boolean $client_authentication = ['client_certificate'],
Array[Enum['password', 'client_certificate', 'client_certificate_admin_only']] $client_authentication = ['client_certificate'],

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a general question, do we want to be coupling in these situations? Whereby an update to smart_proxy_pulp adding some new type would then force an update to this code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also wondered that. The benefit of having a type here is that if you make a typo, it's caught during catalog compilation rather than smart proxy startup. On the other hand, we're not that likely to have user input so I'd also be fine with Array[String[1], 1] (the last 1 ensures there's at least one value, which would also be a good addition with the enum).

The client_authentication parameter controls the available types
of client authentication supported by the Pulp installation.
@ehelms
Copy link
Member Author

ehelms commented Jun 22, 2021

Additionally, need some thoughts on how this gets released. I have a major version bump planned to drop Puppet 5 that could include this (#683) and (#680) or this could be a minor version inclusion. I tend towards just including in the major given we are aiming to drop Puppet 5 across our modules for the coming Foreman release and that makes things easiest.

@ekohl
Copy link
Member

ekohl commented Jun 22, 2021

I think that's ok. I'm always happy to keep the git log clean and bumping minor and only then bump major is just noise IMHO. I don't see changes that need to be released to a stable branch for now (perhaps smart_proxy_acd support).

@ehelms
Copy link
Member Author

ehelms commented Jun 23, 2021

The Debian/Ubuntu tests failing are due to theforeman/smart_proxy_dynflow#86 so wont pass until that is released. However, for this change, given Pulp is only deployed on EL7 I dont think the failing tests apply so I am leaning to merge this and continue forward with these changes in the other modules.

@ehelms ehelms merged commit 2823b38 into theforeman:master Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants