-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Mechanism to error out on removed configuration options #10306
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
Mechanism to error out on removed configuration options #10306
Conversation
bf54ded
to
9995f03
Compare
9995f03
to
f745c31
Compare
f745c31
to
5a12986
Compare
5a12986
to
9cca937
Compare
9cca937
to
5582b64
Compare
This is ready for review. It isn't passing the CI yet, but fixing that should take just one more commit. |
I will rebase this once #10382 is merged. This should resolve the Windows-mingw build failure since that job will be removed from the CI. |
cb8a4b1
to
109cf72
Compare
I rebased a little too early (#10382 was still on the merge queue) so Windows-mingw is still failing. But anyway that job will go away, so the CI will pass once this is rebased again. This will need to be rebased again once the framework PR is merged, so I don't see any reason to rebase again right now. We'll have a green CI after the post-framework-merge rebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking pretty good to me, just a question about a string, and a request for one more test case.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Read the list of historical config options in 3.6, compare that to 1.0/4.0 and emit the appropriate checkers. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Fix the build of libmbedx509 when generated files are not already present. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Indicate which config file has the most relevant tweak. Duplicate a few test cases so that both the crypto config and the mbedtls config are tested. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
0dafd09
to
3cee43e
Compare
Rebased, hopefully for the last time, with the framework updated to the merge of Mbed-TLS/mbedtls-framework#164. The previous head is at https://github.com/gilles-peskine-arm/mbedtls/tree/config-error-on-removed-options-mbedtls-11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Set up a mechanism for erroring out if users try to use removed options in their configuration file. Resolves #10147.
Specification in Mbed-TLS/mbedtls-framework#184.
Status: ready.
Needed preceding PR: framework Mbed-TLS/mbedtls-framework#164
PR checklist