-
Notifications
You must be signed in to change notification settings - Fork 4
CHINA-495: Add custom TLS certificate for clickhouse #109
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
base: main
Are you sure you want to change the base?
Conversation
e93f9fe to
54aaeef
Compare
54aaeef to
dfe9a53
Compare
| } | ||
|
|
||
| certificate := types.StringValue(certRaw) | ||
| s, err := strconv.Unquote(oldKey) |
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.
I suppose we need to be able to support multiple formats here, or describe which format of keys we support.
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.
Most of users will use file [1] function to forward keys, it's gonna be unquoted for most of cases.
[1] https://developer.hashicorp.com/terraform/language/functions/file
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.
Works as with
key = file("server.key")
as well as with
key = <<EOT
-----BEGIN CERTIFICATE-----
....
-----END CERTIFICATE-----
EOT
| Read-Only: | ||
|
|
||
| - `certificate` (String) Public certificate | ||
| - `key` (String) Private certificate key |
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.
Remove 'key' from datasource
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.
Without key can't check changes in private part
For example if customer used at first time wrong private part, changing in private part is not detected withoput changing in public part (certificate).
37b9f86 to
69c0565
Compare
4cc0725 to
248de08
Compare
248de08 to
e26b191
Compare
501cc61 to
c0f612c
Compare
c0f612c to
c756f04
Compare

No description provided.