keycardai-oauth 0.15.0 → 0.15.1
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 +12 -0
- data/lib/keycardai/oauth/token_sources.rb +8 -3
- data/lib/keycardai/oauth/version.rb +1 -1
- data/lib/keycardai/oauth/workload_identity.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: a7400d25827d149ad7a740292601c57eb0b65c2774129f3e1611641ae137dbba
|
|
4
|
+
data.tar.gz: 529c41f9789e2def9c3891d107c76cb22a97614d2a1e3dc9ff86e1464606a345
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4797054e9a97e1a39772e3b6fcc2afc9c211b21e11226073bab08d070576a67b5e36a2fe41e79b01bf13252d39e8dd95cf119ba4f0d875f4e6e8a1526e144def
|
|
7
|
+
data.tar.gz: 170c9f2e56942af0de2bd02827e36f396396b1bfbff8e62e3d1359327a23fcebe792c349244c4071e7dfafe0cf2ec988c0389df8333e68e5ae08e71c4d78824a
|
data/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,18 @@ the loopback flow (RFC 8252), JWT signing and verification with a caching JWKS
|
|
|
15
15
|
keyring, the three application credentials (ClientSecret with multi-zone,
|
|
16
16
|
WebIdentity, WorkloadIdentity with pluggable token sources), and AccessContext.
|
|
17
17
|
|
|
18
|
+
## 0.15.1-keycardai-oauth (2026-11-26)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
- fix(keycardai-oauth): classify workload identity file failures (#122)
|
|
22
|
+
- * fix(keycardai-oauth): classify workload identity file failures
|
|
23
|
+
- Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
|
24
|
+
- * fix(keycardai-oauth): classify token file encoding failures at construction
|
|
25
|
+
- Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
|
26
|
+
- ---------
|
|
27
|
+
- Co-authored-by: devin-ai-keycard <devin-ai@keycard.ai>
|
|
28
|
+
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
|
29
|
+
|
|
18
30
|
## 0.15.0-keycardai-oauth (2026-11-26)
|
|
19
31
|
|
|
20
32
|
|
|
@@ -36,11 +36,14 @@ module Keycardai
|
|
|
36
36
|
# @raise [WorkloadIdentityRuntimeError] unreadable or empty file
|
|
37
37
|
def identity_token
|
|
38
38
|
token = File.read(@path).strip
|
|
39
|
-
|
|
39
|
+
if token.empty?
|
|
40
|
+
raise WorkloadIdentityRuntimeError.new("token file #{@path} is empty", source: "file", retryable: true)
|
|
41
|
+
end
|
|
40
42
|
|
|
41
43
|
token
|
|
42
44
|
rescue SystemCallError => e
|
|
43
|
-
raise WorkloadIdentityRuntimeError.new("token file #{@path} is unreadable: #{e.message}",
|
|
45
|
+
raise WorkloadIdentityRuntimeError.new("token file #{@path} is unreadable: #{e.message}",
|
|
46
|
+
source: "file", retryable: true)
|
|
44
47
|
end
|
|
45
48
|
|
|
46
49
|
def source_identifier
|
|
@@ -61,9 +64,11 @@ module Keycardai
|
|
|
61
64
|
end
|
|
62
65
|
|
|
63
66
|
def validate_file
|
|
64
|
-
return if File.file?(@path) && !File.
|
|
67
|
+
return if File.file?(@path) && !File.read(@path).strip.empty?
|
|
65
68
|
|
|
66
69
|
raise WorkloadIdentityConfigurationError.new("token file #{@path} is missing or empty", source: "file")
|
|
70
|
+
rescue SystemCallError, ArgumentError, EncodingError => e
|
|
71
|
+
raise WorkloadIdentityConfigurationError.new("token file #{@path} is unreadable: #{e.message}", source: "file")
|
|
67
72
|
end
|
|
68
73
|
end
|
|
69
74
|
|