misc: addressed greptile comments 1

This commit is contained in:
Sheen Capadngan
2025-09-03 21:18:34 +08:00
parent e30cb9d767
commit ec39f84719
7 changed files with 33 additions and 12 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
export const INSTANCE_PROXY_PREFIX = "infisical-";
export const isInstanceProxy = (proxyName: string) => {
return proxyName.startsWith("infisical-");
return proxyName.startsWith(INSTANCE_PROXY_PREFIX);
};
@@ -405,7 +405,7 @@ export const proxyServiceFactory = ({
format: "der",
type: "pkcs8"
});
const orgProxyClientCaPrivateKey = await crypto.nativeCrypto.subtle.importKey(
const orgProxyCaPrivateKey = await crypto.nativeCrypto.subtle.importKey(
"pkcs8",
orgProxyCaSkObj.export({ format: "der", type: "pkcs8" }),
alg,
@@ -425,7 +425,7 @@ export const proxyServiceFactory = ({
issuer: orgProxyCaCert.subject,
notBefore: orgProxyClientCaIssuedAt,
notAfter: orgProxyClientCaExpiration,
signingKey: orgProxyClientCaPrivateKey,
signingKey: orgProxyCaPrivateKey,
publicKey: orgProxyClientCaKeys.publicKey,
signingAlgorithm: alg,
extensions: [
@@ -460,7 +460,7 @@ export const proxyServiceFactory = ({
issuer: orgProxyCaCert.subject,
notBefore: orgProxyServerCaIssuedAt,
notAfter: orgProxyServerCaExpiration,
signingKey: orgProxyClientCaPrivateKey,
signingKey: orgProxyCaPrivateKey,
publicKey: orgProxyServerCaKeys.publicKey,
signingAlgorithm: alg,
extensions: [