import {
  listEntries
} from "./chunk-JU6ELMEH.js";

// src/providers/resolve-secrets.ts
var BLOCKED_ENV_KEYS = /* @__PURE__ */ new Set([
  "PATH",
  "HOME",
  "USER",
  "SHELL",
  "LD_PRELOAD",
  "LD_LIBRARY_PATH",
  "NODE_PATH",
  "NODE_OPTIONS"
]);
function resolveVaultSecrets(vaultIds) {
  const secrets = {};
  for (const vid of vaultIds) {
    for (const { key, value } of listEntries(vid)) {
      if (!BLOCKED_ENV_KEYS.has(key)) secrets[key] = value;
    }
  }
  return secrets;
}

export {
  BLOCKED_ENV_KEYS,
  resolveVaultSecrets
};
