Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Improve startup checks for insecure notary configs #5392

Merged
merged 2 commits into from
Jun 10, 2019

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jun 7, 2019

It's not really a problem to trust notary responses signed by the old key so
long as we are also doing TLS validation.

This commit adds a check to the config parsing code at startup to check that
we do not have the insecure matrix.org key without tls validation, and refuses
to start without it.

This allows us to remove the rather alarming-looking warning which happens at
runtime.

richvdh and others added 2 commits June 7, 2019 14:33
It's not really a problem to trust notary responses signed by the old key so
long as we are also doing TLS validation.

This commit adds a check to the config parsing code at startup to check that
we do not have the insecure matrix.org key without tls validation, and refuses
to start without it.

This allows us to remove the rather alarming-looking warning which happens at
runtime.
@richvdh richvdh requested a review from a team June 7, 2019 13:38
@@ -41,6 +41,15 @@
you are *sure* you want to do this, set 'accept_keys_insecurely' on the
keyserver configuration."""

RELYING_ON_MATRIX_KEY_ERROR = """\
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
RELYING_ON_MATRIX_KEY_ERROR = """\
RELYING_ON_MATRIX_KEY_ERROR = """

Copy link
Member Author

Choose a reason for hiding this comment

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

nope, this is deliberate. I don't want the leading newline.

@richvdh richvdh requested a review from a team June 10, 2019 09:05
@richvdh richvdh merged commit 88d7182 into release-v1.0.0 Jun 10, 2019
@richvdh richvdh deleted the rav/remove_placebo_warning branch December 1, 2020 12:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants