Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 8be256a

Browse files
authored
Merge pull request #44 from Indicio-tech/chore/acapy-upgrade
chore: upgrade acapy
2 parents 154e2d0 + 137e4ab commit 8be256a

File tree

10 files changed

+2027
-1654
lines changed

10 files changed

+2027
-1654
lines changed

acapy_cache_redis/v0_1/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
import logging
55

6-
from aries_cloudagent.cache.base import BaseCache
7-
from aries_cloudagent.config.injection_context import InjectionContext
8-
from aries_cloudagent.protocols.problem_report.v1_0.message import ProblemReport
6+
from acapy_agent.cache.base import BaseCache
7+
from acapy_agent.config.injection_context import InjectionContext
8+
from acapy_agent.protocols.problem_report.v1_0.message import ProblemReport
99

1010
from .redis_base_cache import RedisBaseCache
1111

acapy_cache_redis/v0_1/redis_base_cache.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import json
33
import logging
44

5-
from aries_cloudagent.cache.base import BaseCache, CacheKeyLock
6-
from aries_cloudagent.core.profile import Profile
7-
from aries_cloudagent.core.error import BaseError
5+
from acapy_agent.cache.base import BaseCache, CacheKeyLock
6+
from acapy_agent.core.profile import Profile
7+
from acapy_agent.core.error import BaseError
88
from redis.asyncio import RedisCluster
99
from redis.exceptions import RedisError, RedisClusterException
1010
from typing import Any, Sequence, Text, Union
@@ -97,7 +97,9 @@ async def check_for_redis_cluster(self):
9797
"Found redis connection string correspond to a cluster node,"
9898
" reassigning redis to redis.asyncio.RedisCluster client."
9999
)
100-
self.root_profile.injector.bind_instance(RedisCluster, self.redis)
100+
self.root_profile.context.injector.bind_instance(
101+
RedisCluster, self.redis
102+
)
101103
await self.redis.ping(target_nodes=RedisCluster.PRIMARIES)
102104
else:
103105
LOGGER.info("Using an existing provided instance of RedisCluster.")

acapy_cache_redis/v0_1/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from aries_cloudagent.protocols.problem_report.v1_0.message import (
1+
from acapy_agent.protocols.problem_report.v1_0.message import (
22
ProblemReport as report,
33
)
44

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim-bullseye
1+
FROM python:3.12-slim-bullseye
22
WORKDIR /usr/src/app/
33

44
ENV POETRY_HOME=/opt/poetry \

docker/default.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ plugin-config-value:
3535
# - redis_cache.credentials.username="username"
3636
# - redis_cache.credentials.password="password"
3737
# - redis_cache.ssl.cacerts=./ca.crt
38+
39+
auto-provision: true
40+
wallet-name: default
41+
wallet-type: askar-anoncreds
42+
wallet-key: "insecure"

docker/default_cluster.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ plugin-config-value:
3535
- redis_cache.credentials.username="default"
3636
- redis_cache.credentials.password="test1234"
3737
# - redis_cache.ssl.cacerts=./ca.crt
38+
39+
auto-provision: true
40+
wallet-name: default
41+
wallet-type: askar-anoncreds
42+
wallet-key: "insecure"

int/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim-bullseye
1+
FROM python:3.12-slim-bullseye
22
WORKDIR /usr/src/app/
33

44
ENV POETRY_HOME=/opt/poetry \

int/docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ services:
1414
--plugin acapy_cache_redis.v0_1
1515
--plugin-config-value redis_cache.connection="redis://default:[email protected]:6382"
1616
--log-level debug
17+
--auto-provision
18+
--wallet-name default
19+
--wallet-type askar-anoncreds
20+
--wallet-key "insecure"
1721
networks:
1822
- acapy_default
1923
depends_on:
@@ -193,6 +197,10 @@ services:
193197
--plugin acapy_cache_redis.v0_1
194198
--plugin-config-value redis_cache.connection="redis://redis-host:6379/0"
195199
--log-level debug
200+
--auto-provision
201+
--wallet-name default
202+
--wallet-type askar-anoncreds
203+
--wallet-key "insecure"
196204
healthcheck:
197205
test: curl -s -o /dev/null -w '%{http_code}' "http://localhost:3004/status/live" | grep "200" > /dev/null
198206
start_period: 30s

poetry.lock

Lines changed: 1995 additions & 1642 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ description = "ACA-Py Cache Plugin for Redis enabling common cache on clustered
55
authors = ["Colton Wolkins <[email protected]>", "Kim Ebert <[email protected]>", "Alex Walker <[email protected]>"]
66

77
[tool.poetry.dependencies]
8-
python = "^3.9.0"
9-
aries-cloudagent = {version = ">=0.11.0,<1.0.0", extras = ["askar"]}
8+
python = "^3.12.0"
9+
acapy-agent = {version = ">=1.2.0,<1.4.0"}
1010
redis = "^4.3.0"
1111

1212
[tool.poetry.dev-dependencies]

0 commit comments

Comments
 (0)