Skip to content

Conversation

@fanf
Copy link
Member

@fanf fanf commented May 23, 2025

https://issues.rudder.io/issues/26942

Add three new system variables whose value is taken from rudder properties file.

@fanf fanf requested a review from VinceMacBuche May 23, 2025 16:48
@fanf fanf marked this pull request as draft May 23, 2025 16:49
@fanf fanf removed the request for review from VinceMacBuche May 23, 2025 16:49
@peckpeck
Copy link
Member

Looks good to me

@peckpeck
Copy link
Member

After finding the proper option in curl, let's change how rudder.server.certificate.additionalKeyHash should be handled.

It must be a semicolon separated list of hash (not comma separated).

It must be appended to the existing key POLICY_SERVER_KEY_HASH in rudder.json, separated by a semicolon, (there must be no "empty" value in this list, ie no heading, trailing or successive semicolon)

ADDITIONAL_POLICY_SERVER_KEY_HASH system variable is not needed anymore

@peckpeck
Copy link
Member

POLICY_SERVER_CERT_NAME_VALIDATION cannot be implemented as documented, we should replace it with : POLICY_SERVER_SECURE_VALIDATION : false/empty by default to match current state (--insecure is passed to curl)

@fanf fanf force-pushed the arch_26942/add_new_settings_to_handle_certificate_trust branch from da181bb to a3cecdd Compare June 23, 2025 14:45
@fanf
Copy link
Member Author

fanf commented Jun 23, 2025

PR updated with a new commit

@amousset amousset marked this pull request as ready for review July 3, 2025 13:03
@Normation-Quality-Assistant
Copy link
Contributor

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/rudder/pull/6395
-- Your faithful QA
Kant merge: "Thoughts without content are empty, intuitions without concepts are blind."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/103486/console)

Comment on lines +589 to +590
# They only set system properties that can be then used for the management, but
# these parameters don't do anything more.
Copy link
Member

Choose a reason for hiding this comment

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

it does something now!

Copy link
Member Author

Choose a reason for hiding this comment

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

so remove these lines ? What it does now ?

#
# Value for POLICY_SERVER_CERT_CA, ie the path to the file with the CA cert that should be used
# for server certificate validation (the validation is not handled by Rudder).
# Let empty for not restricting the list of possible CA to use.
Copy link
Member

Choose a reason for hiding this comment

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

this is unclear

Copy link
Member Author

Choose a reason for hiding this comment

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

what would make it clearer ?


#
# Value for POLICY_SERVER_SECURE_VALIDATION, ie should the server certificate
# be checked. Default false or empty (ie `--insecure` passed to curl)
Copy link
Member

Choose a reason for hiding this comment

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

this is confusing, and might make believe there is no validation when it is false

Copy link
Member Author

Choose a reason for hiding this comment

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

so what would be not ?

@amousset
Copy link
Member

amousset commented Jul 3, 2025

We need a comprehensive documentation of the impact of these changes.

@fanf
Copy link
Member Author

fanf commented Jul 4, 2025

PR updated with a new commit

1 similar comment
@fanf
Copy link
Member Author

fanf commented Jul 4, 2025

PR updated with a new commit

@fanf
Copy link
Member Author

fanf commented Jul 4, 2025

OK, squash merging this PR

@fanf fanf force-pushed the arch_26942/add_new_settings_to_handle_certificate_trust branch from 3b834e8 to 9f054f9 Compare July 4, 2025 16:24
@fanf fanf merged commit 9f054f9 into Normation:branches/rudder/9.0 Jul 4, 2025
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.

4 participants