Skip to content

Commit 74217ed

Browse files
BON4Zvirovyi
andauthored
[DPE-7602] TLS implementation (#9)
* Multinode deployment. * Add collect_app_status handler and config integration test. * Ger rid of collect_status in charm.py. * Review suggestions. * Review suggestions. * Add spread tests. * Set UnitWorkloadState.ACTIVE only after unit actually ready. Change ClusterState.active -> is_active. Suppress exec error logging during is_healthy check. * Increase timeout for multinode deployment. * [DPE-7602] Add internal TLS * Multinode deployment. * Add collect_app_status handler and config integration test. * Ger rid of collect_status in charm.py. * Review suggestions. * Review suggestions. * Add spread tests. * Set UnitWorkloadState.ACTIVE only after unit actually ready. Change ClusterState.active -> is_active. Suppress exec error logging during is_healthy check. * Increase timeout for multinode deployment. * Documentation * Documentation. * Documentation. * Fix unit tests. * Fix unit tests, add ops-scenario. * Documentation. * [DPE-7602] Add internal TLS * [DPE-7602] Fix lock file * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Add TLS events * [DPE-7602] Test SANS * [DPE-7602] Test Self Signed * [DPE-7602] Test Self Signed * [DPE-7602] Test Self Signed * [DPE-7602] Test Self Signed * [DPE-7602] Test Self Signed * [DPE-7602] Test Self Signed * [DPE-7602] Test Self Signed * [DPE-7602] Test Self Signed * [DPE-7602] Test Self Signed * [DPE-7602] Test Self Signed * [DPE-7602] Test Self Signed * [DPE-7602] Test Self Signed * Bootstrap using rolling ops. * Fix unit tests. * [DPE-7602] Refactor manager state usage * [DPE-7602] Refactor manager state usage * [DPE-7602] Refactor manager state usage * [DPE-7602] Refactor manager state usage * [DPE-7602] Refactor manager state usage * [DPE-7602] Add truststore and keystore secrets * [DPE-7602] Add truststore and keystore secrets * [DPE-7602] Add truststore and keystore secrets * [DPE-7602] Add truststore and keystore secrets * [DPE-7602] Add truststore and keystore secrets * [DPE-7602] Add truststore and keystore secrets * [DPE-7602] Add truststore and keystore secrets * [DPE-7602] Add truststore and keystore secrets * [DPE-7602] Add truststore and keystore secrets * [DPE-7602] Add truststore and keystore secrets * [DPE-7602] Add truststore and keystore secrets * [DPE-7602] Add truststore and keystore secrets * Improve bootstrap logic. Izolate config reading only to start and config changed events. Add state to the config manager. * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * Wait exponentially with timeout of 30 minutes in bootstrap process. * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * Improve unit tests. Fix invalid config early exit in start event. * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add deploy tls integration test * [DPE-7602] Add unit tests for tls * Fix merge * tls Fix tests * Fix tests * Add unit tests * Add unit tests * Add unit tests * Add unit tests * Add unit tests * Add unit tests * Format * Fix tests * Fix tests * Fix tests * Add spread task * Refactor * Refactor * Refactor * Refactor * Refactor * Refactor * Refactor * Refactor * Refactor * Update src/events/tls.py Co-authored-by: Vladyslav Tarasenko <[email protected]> * Update src/managers/tls.py Co-authored-by: Vladyslav Tarasenko <[email protected]> * Refactor * Refactor * Refactor * Refactor * Refactor * Refactor --------- Co-authored-by: Vladyslav Tarasenko <[email protected]>
1 parent b4105ed commit 74217ed

File tree

26 files changed

+5461
-387
lines changed

26 files changed

+5461
-387
lines changed

charmcraft.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Copyright 2025 Canonical Ltd.
22
# See LICENSE file for licensing details.
3-
43
type: charm
54
platforms:
65
@@ -22,6 +21,8 @@ charm-libs:
2221
version: "0"
2322
- lib: rolling_ops.rollingops
2423
version: "0"
24+
- lib: tls_certificates_interface.tls_certificates
25+
version: "4"
2526

2627
config:
2728
options:
@@ -40,6 +41,16 @@ peers:
4041
bootstrap:
4142
interface: rolling_op
4243

44+
requires:
45+
client-certificates:
46+
interface: tls-certificates
47+
limit: 1
48+
optional: true
49+
peer-certificates:
50+
interface: tls-certificates
51+
limit: 1
52+
optional: true
53+
4354
parts:
4455
# "poetry-deps" part name is a magic constant
4556
# https://github.com/canonical/craft-parts/pull/901

0 commit comments

Comments
 (0)