Skip to content

Conversation

@Ramesh7
Copy link
Contributor

@Ramesh7 Ramesh7 commented Aug 10, 2023

Summary

Adding support for enable user to pass the different ciphers for different protocols.

Additional Context

Related Issues (if any)

  • N/A

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

@Ramesh7 Ramesh7 force-pushed the CAT-1281-support-for-adding-cipher-for-protocols branch 5 times, most recently from 7d60a14 to 3d8e2e0 Compare August 10, 2023 09:02
Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

I did not know this was even an Apache option.

Should it also modify the cipher parameter in apache::vhost?

Optional[Stdlib::Absolutepath] $ssl_key = undef,
Optional[Stdlib::Absolutepath] $ssl_ca = undef,
String $ssl_cipher = $apache::params::ssl_cipher,
Variant[String, Array, Hash] $ssl_cipher = $apache::params::ssl_cipher,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why Array? I don't see code in the template to handle that. And can we further tighten Hash to Hash[String[1], String[1]]?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your comments, I wasn't aware that we can even define variable that level in puppet.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Puppet data types are surprisingly powerful and I like them a lot.

@Ramesh7 Ramesh7 force-pushed the CAT-1281-support-for-adding-cipher-for-protocols branch 2 times, most recently from 1a84d7b to 5855384 Compare August 10, 2023 11:11
@Ramesh7
Copy link
Contributor Author

Ramesh7 commented Aug 10, 2023

I did not know this was even an Apache option.

Should it also modify the cipher parameter in apache::vhost?

I have already covered up for vhost here https://github.com/puppetlabs/puppetlabs-apache/pull/2440/files#diff-2842c1252a08a185c551b13fdab39118416a7d296217322d5ebb921c24899397R18-R21
Thanks for reminding this as I missed to update the variable data type for vhost. Updated now. Thanks

@Ramesh7 Ramesh7 force-pushed the CAT-1281-support-for-adding-cipher-for-protocols branch from 5855384 to 9d00180 Compare August 10, 2023 11:15
@Ramesh7 Ramesh7 marked this pull request as ready for review August 10, 2023 13:00
@Ramesh7 Ramesh7 force-pushed the CAT-1281-support-for-adding-cipher-for-protocols branch from 9d00180 to 8acbad4 Compare August 10, 2023 13:00
@Ramesh7 Ramesh7 requested review from a team, bastelfreak and smortex as code owners August 10, 2023 13:00
Copy link
Collaborator

@smortex smortex left a comment

Choose a reason for hiding this comment

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

Nice! I was not aware of this. I added in-line comments for some improvements I see.

Copy link
Collaborator

@smortex smortex left a comment

Choose a reason for hiding this comment

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

As you said :-) With this fixed, LGTM!

@Ramesh7 Ramesh7 merged commit c97699b into main Aug 21, 2023
@Ramesh7 Ramesh7 deleted the CAT-1281-support-for-adding-cipher-for-protocols branch August 21, 2023 03:28
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.

4 participants