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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edc0d4fd65688f722184b96e4ad2bcceb5566d341075edc1ef4bd4d173eee3ea
4
- data.tar.gz: d64d05665d7f58193b5794a2acdfd491f5fdf6973005a32d1ec8f131df9263b9
3
+ metadata.gz: f8254fa918cab3d7ebaba751290cbcccb3ae3b00a3cedfba63e453e3c2215d6b
4
+ data.tar.gz: 5c9c4e6b6e081601028d96cf0607eab8c968544563244c1b30179348ecc68469
5
5
  SHA512:
6
- metadata.gz: cee719b6075599bd6d1806e3e48b9b54b31dcfbe8b034f68e07e6ef4bb55ba2361e2c9ae10b904a2f1251618d65f3d5b6248440400148439d96b0d4c8ee9d1f2
7
- data.tar.gz: 8bc800300bd705896670f5be6c5e096ac972db3a35d19251d0da9d39ee10a9f575f62b9ca2bbb755533e8e85f8e4d37d6aad769d5e59a43557d114741dd69ad0
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 =
@@ -1,3 +1,3 @@
1
1
  module InstagramConnect
2
- VERSION = "0.3.15"
2
+ VERSION = "0.3.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instagram_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kshitiz Sinha