Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat: updated pr by reptile review
=38b88739c8f6
diff --git a/backend/src/keystore/keystore.ts b/backend/src/keystore/keystore.tsindex 0854c2c717..45589e529e 100644--- a/backend/src/keystore/keystore.ts+++ b/backend/src/keystore/keystore.ts@@ -109,7 +109,11 @@ const pickPrimaryOrSecondaryRedis = (primary: Redis | Cluster, secondaries?: Arrreturn selectedReplica;};-export const keyStoreFactory = (redisConfigKeys: TRedisConfigKeys): TKeyStoreFactory => {+interface TKeyStoreFactoryDTO extends TRedisConfigKeys {+ REDIS_READ_REPLICAS?: { host: string; port: number }[];+}++export const keyStoreFactory = (redisConfigKeys: TKeyStoreFactoryDTO): TKeyStoreFactory => {const primaryRedis = buildRedisFromConfig(redisConfigKeys);const redisReadReplicas = redisConfigKeys.REDIS_READ_REPLICAS?.map((el) => {if (redisConfigKeys.REDIS_URL) {diff --git a/backend/src/lib/config/redis.ts b/backend/src/lib/config/redis.tsindex 8e375ab62d..5187f740a2 100644--- a/backend/src/lib/config/redis.ts+++ b/backend/src/lib/config/redis.ts@@ -15,8 +15,6 @@ export type TRedisConfigKeys = Partial<{REDIS_SENTINEL_ENABLE_TLS: boolean;REDIS_SENTINEL_USERNAME: string;REDIS_SENTINEL_PASSWORD: string;-- REDIS_READ_REPLICAS: { host: string; port: number }[];}>;export const buildRedisFromConfig = (cfg: TRedisConfigKeys) => {diff --git a/docs/self-hosting/configuration/envars.mdx b/docs/self-hosting/configuration/envars.mdxindex e966d44605..8d351d7f2c 100644--- a/docs/self-hosting/configuration/envars.mdx+++ b/docs/self-hosting/configuration/envars.mdx@@ -208,13 +208,13 @@ Redis is used for caching and background tasks. You can use either a standalonequery="REDIS_READ_REPLICAS"type="string"default="none"- required+ optional>Comma-separated list of Redis read replicas host:port pairs. ```192.168.65.254:26379,192.168.65.254:26380 ```</ParamField>- The rest of the parameters of the primary instance will be inherited.+ The paramters like username, password, tls, redis type of the primary instance will be inherited.</Tab></Tabs>