Operations

Operate Redis Agent Memory in the redis-iris suite with backups, secret rotation, updates, and network policy.

Backups

  • Back up Metadata Redis. Losing it removes Control Plane store records.
  • Back up the Identity Service Metadata Redis, which may be a separate database. Losing it removes agent-key records.
  • Back up Store Redis according to the customer's memory-retention policy.
  • Back up Job Redis if background job replay or delayed-job preservation is required by the deployment's recovery policy.
  • Back up any external secret manager material used to recreate Kubernetes Secrets.
  • For Job Redis, use persistent storage where supported and a non-volatile / noeviction policy. OOM can still lose jobs or leave worker state invalid; capacity alerts and compatibility checks should make that caveat visible.
  • For Metadata Redis and the Identity Service Metadata Redis, use persistent storage and an eviction policy that does not evict store or agent-key records under memory pressure.

Secret rotation

Use the Identity Service port-forward and control token from the deployment procedure to rotate agent keys:

IDS_URL=http://localhost:9200
curl -sS -X POST "$IDS_URL/v1/api-keys/<key-id>/rotate?graceSeconds=3600" \
  -H "Authorization: Bearer $IDS_CONTROL_TOKEN"

The response contains the new token. Store it immediately; tokens are returned only when a key is minted or rotated.

Rotation returns a new keyId with the new token. Use the new keyId for later updates, rotations, and revocations. The old key stays valid for graceSeconds, which defaults to 3600 and has a chart maximum of 604800 (identityService.apiKeys.maxRotateGraceSeconds). The response adds oldExpiresAt, the time the old key stops working. Revoking the old keyId ends its grace period early. For the full request and response, see API examples.

The suite generates Memory's credentials as these Secrets:

Secret Key Used by
iris-memory-admin-token token The Control Plane admin API
iris-memory-dataplane-credential memory-dp The Data Plane and the Identity Service
iris-memory-internal-token memory The Control Plane and the Identity Service, for grant validation

To rotate one, change its Secret in place. Memory and the Identity Service read the mounted file on each request, so the old value stops working once the kubelet syncs the volume, in about a minute, with no restart. For example, rotate the admin token:

kubectl -n <namespace-name> create secret generic iris-memory-admin-token \
  --from-literal=token='<new-admin-token>' \
  --dry-run=client \
  -o yaml | kubectl apply -f -

helm upgrade and helm rollback never restore an old value. See Credentials.

Rotate the license by updating the suite license Secret, named by global.iris.license.existingSecret (default iris-license) with the key in global.iris.license.secretKey (default license.key). Redis Agent Memory reads and validates the license file during process startup, so restart its Deployments afterward:

kubectl -n <namespace-name> create secret generic iris-license \
  --from-file=license.key=./license \
  --dry-run=client \
  -o yaml | kubectl apply -f -

kubectl -n <namespace-name> rollout restart \
  deployment/redis-agent-memory deployment/redis-agent-memory-worker deployment/redis-agent-memory-controlplane

If you change the overlay Secret (memory.secrets.secretName) in place, restart the same Deployments, because the chart does not track the Secret contents.

Updates

Agent Memory upgrades with the rest of the suite. Follow Upgrade, then verify the Memory Deployments:

kubectl -n <namespace-name> rollout status deployment/redis-agent-memory
kubectl -n <namespace-name> rollout status deployment/redis-agent-memory-worker
kubectl -n <namespace-name> rollout status deployment/redis-agent-memory-controlplane

To move from a standalone redis-agent-memory release or a preview chart, see Move from a preview or standalone install.

Collect and inspect audit records

Requires self-managed Redis Iris 1.1 or later.

Use the production logging profile to emit structured records to the container logs. Configure your collector to select logger audit or names ending in .audit. Collect records from Agent Memory and the Identity Service. Use audit_product: memory to find Memory events.

Retain the JSON records in storage with access controls and monitor the collector for output failures, retries, buffer growth, and low disk space. Audit records bypass log sampling and use best-effort delivery. A service crash or collector failure can lose or repeat a record.

Use subject and user_id to identify the authenticated actor. Use store_id, resource_id, and owner_id to identify the affected data when those fields are available. The result field is allowed, denied, or failed. An allowed mutation confirms persistence, while an allowed authorization event confirms the access check.

Coverage includes authentication and authorization results, store and namespace changes, long-term memory writes, and document ingestion transitions. The following actions cover session and Summary View changes, expiry refresh, and authentication.

Actions What they record
session.create, session.event.create, session.delete, session.event.delete, session.events.delete, session.summary.update, session.property.update Committed session changes. Single-event operations can carry an event_id.
summary_view.create, summary_view.update, summary_view.delete.begin, summary_view.delete Definition changes and deletion progress.
summary_view.refresh.accept, summary_view.refresh.complete A newly accepted manual refresh or a committed result.
summary_view.refresh.request A worker failed to prepare a refresh after accepting its target.
maintenance.retry A confirmed change to which recovery attempt may run. Replaying a pending attempt adds no second mutation event.
memory.ttl.refresh The outcome of an opted-in REST or Model Context Protocol (MCP) retrieval that reached expiry refresh. The event applies to the store and omits memory IDs, owner IDs, and payloads. allowed can mean no expiry changed.
authenticate_delegated_user, authenticate_oidc, introspect_api_key, token.exchange Authentication and token exchange outcomes with verified identities and bounded reasons.

The token exchange endpoint emits one audit record for each well-formed request that reaches it, including requests it rate-limits.

Use request logs and metrics for routine reads. For write retries, use the operation's idempotency contract. A confirmed mutation can have a follow-up failure event if later work failed.

Recover pending Summary View cleanup

Requires self-managed Redis Iris 1.1 or later.

If the content database is unreachable during store deletion, the control plane records pending cleanup in metadata Redis before it removes the store. Give the control plane read and write access to the iris:memory:store-cleanup hash. The hash uses your configured metadata namespace as its prefix. If the control plane cannot record pending cleanup, deletion fails and retains the store metadata.

  1. Restore access to the content database.
  2. If the store is still present, retry deletion through the control plane. A successful cleanup completes its pending record.
  3. If the store is gone and the record has no completed_at value, contact Redis support for cleanup of the deleted store. Provide the recorded store and database IDs. Keep database credentials in your secret store.

Investigate partial bulk writes

Requires self-managed Redis Iris 1.1 or later.

If bulk creation returns HTTP 201, inspect the per-record errors before retrying. In the worker log, find the warning partial failures in bulk create. Use its api_request_id to find the matching Data Plane log entries. Check the failure stage to distinguish placement, admission, and persistence problems. The summary gives the created, failed, and omitted counts when the service caps individual warnings.

Release tests

helm test iris creates a temporary store, mints a scoped agent key, calls the Data Plane with it, and then removes what it created. See Verify the deployment.

FIPS

The suite chart 1.0.0 doesn't support the Federal Information Processing Standards (FIPS) profile. global.security.profile: fips fails the install. See Not supported in this release.

Network policy

For auth-disabled Data Plane deployments, restrict access to trusted callers. For agent-key deployments behind a gateway, prevent direct bypass paths unless the direct caller also has a valid Redis Agent Memory credential.

The Agent Memory chart inside the suite package includes networkpolicy.reference.yaml as a reference manifest. It is not templated, because allowed callers are environment-specific. Get it from the suite package:

helm pull redis-ai/redis-iris --version 1.0.0 --untar
tar -xzf redis-iris/charts/redis-agent-memory-1.0.0.tgz redis-agent-memory/networkpolicy.reference.yaml

Customize the placeholders before applying it:

  • <namespace>, <identity-service-namespace>, and <playbook-namespace>: the suite's release namespace.
  • <release-name>, <identity-service-release-name>, and <playbook-release-name>: the suite's release name, iris.
  • <caller-namespace> and caller pod labels: ingress controller, service mesh gateway, application pod, or approved internal caller allowed to call Redis Agent Memory.

The reference policy default-denies ingress to Redis Agent Memory pods, then allows TCP traffic to server pods on port 9000 from approved callers and the worker Deployment. Its Control Plane stanza for port 9100 allows the Identity Service's grant validation and the Agent Playbooks control plane. It doesn't manage ingress for the Identity Service itself. Under default-deny, also allow Data Plane requests to iris-identity-service on port 9200, and add egress rules when egress is restricted.

Review the manifest against the customer's CNI, ingress path, and service mesh behavior before production use.

RATE THIS PAGE
Back to top ↑