@fonos/certs
Advanced tools
Comparing version 0.0.100 to 0.0.101
declare const PATH_TO_SALT: string; | ||
declare const PATH_TO_CONFIG: string; | ||
declare const ACCESS_KEY_ID: string; | ||
declare const ISS: string; | ||
declare const AUTH_ISS: string; | ||
declare const getSalt: () => string; | ||
@@ -14,2 +14,2 @@ declare const configExist: () => boolean; | ||
declare function createClientConfig(workdir: string, endpoint: string): void; | ||
export { createAccessFile as default, createServerConfig, createClientConfig, getSalt, configExist, saltExist, PATH_TO_SALT, PATH_TO_CONFIG, ACCESS_KEY_ID, ISS }; | ||
export { createAccessFile as default, createServerConfig, createClientConfig, getSalt, configExist, saltExist, PATH_TO_SALT, PATH_TO_CONFIG, ACCESS_KEY_ID, AUTH_ISS }; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ISS = exports.ACCESS_KEY_ID = exports.PATH_TO_CONFIG = exports.PATH_TO_SALT = exports.saltExist = exports.configExist = exports.getSalt = exports.createClientConfig = exports.createServerConfig = exports.default = void 0; | ||
exports.AUTH_ISS = exports.ACCESS_KEY_ID = exports.PATH_TO_CONFIG = exports.PATH_TO_SALT = exports.saltExist = exports.configExist = exports.getSalt = exports.createClientConfig = exports.createServerConfig = exports.default = void 0; | ||
const fs_1 = __importDefault(require("fs")); | ||
@@ -21,4 +21,4 @@ const jsonwebtoken_1 = __importDefault(require("jsonwebtoken")); | ||
exports.ACCESS_KEY_ID = ACCESS_KEY_ID; | ||
const ISS = process.env.ISS || "fonos"; | ||
exports.ISS = ISS; | ||
const AUTH_ISS = process.env.AUTH_ISS || "fonos"; | ||
exports.AUTH_ISS = AUTH_ISS; | ||
const getContent = (workdir, file) => btoa_1.default(fs_1.default.readFileSync(`${workdir}/${file}`).toString("utf-8")); | ||
@@ -38,3 +38,3 @@ if (!fs_1.default.existsSync(BASE_DIR)) | ||
const salt = getSalt(); | ||
const claims = { ISS, sub: ACCESS_KEY_ID }; | ||
const claims = { AUTH_ISS, sub: ACCESS_KEY_ID }; | ||
const config = { | ||
@@ -41,0 +41,0 @@ accessKeyId: ACCESS_KEY_ID, |
{ | ||
"name": "@fonos/certs", | ||
"version": "0.0.100", | ||
"version": "0.0.101", | ||
"description": "Handles Fonos certificates", | ||
@@ -47,3 +47,3 @@ "author": "Pedro Sanders <psanders@fonoster.com>", | ||
}, | ||
"gitHead": "31a413c97ad8c41b56f2574e4309b4f44c592edf" | ||
"gitHead": "e2d1096d33682217bf513baa4960782c6f827187" | ||
} |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
6704