mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 14:40:39 +00:00
misc: addressed greptile comments 1
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user