instagram_connect 0.3.15 → 0.3.16
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 +10 -0
- data/app/models/instagram_connect/account.rb +7 -0
- data/lib/instagram_connect/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: f8254fa918cab3d7ebaba751290cbcccb3ae3b00a3cedfba63e453e3c2215d6b
|
|
4
|
+
data.tar.gz: 5c9c4e6b6e081601028d96cf0607eab8c968544563244c1b30179348ecc68469
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f63bf53d0569e50ee76bda51230f8a2432045c8a5aff8ac4ed75f7d9f64c919ab45d82b0b37226f738a363202800f49cf84b47ac4031c51863028773a86d5a2
|
|
7
|
+
data.tar.gz: d5ab0a07d616411f4013dfdcb067fe8d61894eb132f2a5e2d9e5b726057ec7132429650f073070b603ea2412d751c1d424fc6b4e646d104f2f5437e72e0ba173
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ All notable changes to this project are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.3.16] - 2026-07-28
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **`Account#token_readable?` can no longer raise.** With previous-keys wired for rotation, a
|
|
14
|
+
value no key set opens RAISES on read (AEAD tag verification) instead of returning ciphertext —
|
|
15
|
+
and the raise came from inside the guard itself, turning screens that consulted it into 500s.
|
|
16
|
+
Unreadable is unreadable, however the encryption layer chooses to say it.
|
|
17
|
+
|
|
18
|
+
|
|
9
19
|
## [0.3.15] - 2026-07-28
|
|
10
20
|
|
|
11
21
|
### Fixed
|
|
@@ -44,6 +44,13 @@ module InstagramConnect
|
|
|
44
44
|
def token_readable?
|
|
45
45
|
token = api_token.to_s
|
|
46
46
|
token.present? && !token.match?(ENCRYPTED_ENVELOPE)
|
|
47
|
+
rescue ActiveRecord::Encryption::Errors::Base => e
|
|
48
|
+
# With previous-keys wired, a value no key set opens RAISES on read
|
|
49
|
+
# (AEAD tag verification) instead of returning ciphertext — production
|
|
50
|
+
# 500'd inside this very guard. Unreadable is unreadable, however the
|
|
51
|
+
# encryption layer chooses to say it.
|
|
52
|
+
Rails.logger.error("[instagram_connect] token read raised #{e.class} for account=#{id}")
|
|
53
|
+
false
|
|
47
54
|
end
|
|
48
55
|
|
|
49
56
|
TOKEN_UNREADABLE_MESSAGE =
|