Skip to content

Add support for authentication via mTLS (authentication with TLS certificates)#89

Merged
azat merged 1 commit intomainfrom
mTLS
Apr 19, 2025
Merged

Add support for authentication via mTLS (authentication with TLS certificates)#89
azat merged 1 commit intomainfrom
mTLS

Conversation

@azat
Copy link
Owner

@azat azat commented Apr 19, 2025

mTLS (Mutual TLS, or mTLS for short, is a method for mutual authentication) allows you to authenticate on the server with client certificate.

Now chdig supports it, for this you need to pass the following arguments for connection url:

  • ca_certificate
  • certificate_file
  • private_key_file

I.e. tcp://azat-tls@localhost:9440?secure=true&ca_certificate=ca.pem&certificate_file=client.crt&private_key_file=client.key

Note, that this is a rought draft for now, since mTLS support in clickhouse-rs should be stabilized for this, this should be done until next chdig release.

Refs: #85 (since this is draft only Refs over Fixes)
Refs: azat-rust/clickhouse-rs#3 (all implementation is here)

…ificates)

**mTLS** (Mutual TLS, or mTLS for short, is a method for mutual
authentication) allows you to authenticate on the server with client
certificate.

Now `chdig` supports it, for this you need to pass the following arguments for connection url:
- `ca_certificate`
- `certificate_file`
- `private_key_file`

I.e. `tcp://azat-tls@localhost:9440?secure=true&ca_certificate=ca.pem&certificate_file=client.crt&private_key_file=client.key`

Note, that this is a **rought draft** for now, since mTLS support in
clickhouse-rs should be stabilized for this, this should be done until
next chdig release.

Refs: #85 (since this is draft only `Refs` over `Fixes`)
Refs: azat-rust/clickhouse-rs#3
@azat azat changed the title Add support for authentication via mTLS Add support for authentication via mTLS (authentication with TLS certificates) Apr 19, 2025
@azat azat merged commit cc2982f into main Apr 19, 2025
7 checks passed
@azat azat deleted the mTLS branch April 19, 2025 00:12
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.

1 participant