legion-crypt 1.4.25 → 1.4.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/legion/crypt/cluster_secret.rb +3 -0
- data/lib/legion/crypt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea29b8a42c33a47e97c578af649f6114b03e3ef155386fcb4e929afb3518b56c
|
|
4
|
+
data.tar.gz: f1c915cf4c52f269f536248805cb53d13cd6fca2bc237f41ab998102081e94a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d525f2ae8f8552d881e96912e6f828de345e869537e2319559e6da577ecc729d68709e1211b0ec986c4d14b3d7372b541be47a4fabd9615e627f02e96136026a
|
|
7
|
+
data.tar.gz: 0a42c458345ecf8d04e31db279377afb8886b5b77bb0e73faddda6971c7191dc602e06343c09dee9830c1d071fd7839707a5804a2fff90b4ec6fef40555e8c0f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Legion::Crypt
|
|
2
2
|
|
|
3
|
+
## [1.4.26] - 2026-03-28
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- `push_cs_to_vault` now rescues `StandardError` and returns `false` instead of propagating Vault errors (e.g. 403 permission denied), ensuring `set_cluster_secret` always stores the cluster secret in Settings even when the Vault write fails
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- Specs for `push_cs_to_vault` rescue path: verifies the method returns false and does not raise on Vault errors, and logs a warning when `Legion::Logging` is available
|
|
10
|
+
- Specs for `set_cluster_secret` confirming Settings assignment completes when Vault push returns false
|
|
11
|
+
|
|
3
12
|
## [1.4.25] - 2026-03-28
|
|
4
13
|
|
|
5
14
|
### Fixed
|
|
@@ -103,6 +103,9 @@ module Legion
|
|
|
103
103
|
|
|
104
104
|
Legion::Logging.info 'Pushing Cluster Secret to Vault'
|
|
105
105
|
Legion::Crypt.write('cluster', secret: Legion::Settings[:crypt][:cluster_secret])
|
|
106
|
+
rescue StandardError => e
|
|
107
|
+
Legion::Logging.warn("push_cs_to_vault failed: #{e.message}") if defined?(Legion::Logging)
|
|
108
|
+
false
|
|
106
109
|
end
|
|
107
110
|
|
|
108
111
|
def cluster_secret_timeout
|
data/lib/legion/crypt/version.rb
CHANGED