FluidFramework/tools/getkeys
..
.eslintrc.cjs
.npmrc
README.md
index.js
package.json
pnpm-lock.yaml
pnpm-workspace.yaml
prettier.config.cjs
tsconfig.lint.json

README.md

@fluid-internal/getkeys

This tool is specifically for Microsoft internal development.

This folder contains a script that will get secret values from the prague keyvault and persist them as environment variables in all future consoles/shells. In order to have access to the prague keyvault you must be a member of the prague-secrets or WAC Bohemia security group.

How to use this tool

  1. Install the Azure CLI, run az login and authenticate with your Microsoft corporate account.
  2. In this folder, run pnpm install, then npm start.

You should restart the console/shell after running the script (or for bash/zsh run source ~/.bashrc or source ~/.zshrc) for the exported environment variables to become available.

TO-DO

This tool had a fallback mechanism using REST to access Azure Keyvault if the Azure CLI wasn't installed, but it got outdated and had issues (e.g. not retrieving all the existing secrets from the vault). Going forward we want to streamline it and make it behave consistently for everyone who runs it; we might remove the (deactivated) REST fallback approach, or fix it (start by updating the relevant NPM packages) and remove the AzureCLI flow. Relevant discussion.