@cipherstash/stack 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @cipherstash/stack
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0b9fd7a: Add notes to CLI about init in prototype phase.
8
+
3
9
  ## 0.5.0
4
10
 
5
11
  ### Minor Changes
package/dist/bin/stash.js CHANGED
@@ -1448,7 +1448,10 @@ function resolveProvider(flags) {
1448
1448
  }
1449
1449
  async function initCommand(flags) {
1450
1450
  const provider = resolveProvider(flags);
1451
- Ie(`CipherStash Stack Setup`);
1451
+ Ie("CipherStash Stack Setup");
1452
+ M2.warn(
1453
+ "This command is a prototype and a sneak peek at what's next. It doesn't perform any actual setup yet."
1454
+ );
1452
1455
  M2.info(provider.introMessage);
1453
1456
  let state = {};
1454
1457
  try {
@@ -4646,13 +4649,11 @@ function getConfig(environment) {
4646
4649
  const workspaceCRN = process.env.CS_WORKSPACE_CRN;
4647
4650
  const clientId = process.env.CS_CLIENT_ID;
4648
4651
  const clientKey = process.env.CS_CLIENT_KEY;
4649
- const apiKey = process.env.CS_CLIENT_ACCESS_KEY;
4650
4652
  const accessKey = process.env.CS_ACCESS_KEY;
4651
4653
  const missing = [];
4652
4654
  if (!workspaceCRN) missing.push("CS_WORKSPACE_CRN");
4653
4655
  if (!clientId) missing.push("CS_CLIENT_ID");
4654
4656
  if (!clientKey) missing.push("CS_CLIENT_KEY");
4655
- if (!apiKey) missing.push("CS_CLIENT_ACCESS_KEY");
4656
4657
  if (missing.length > 0) {
4657
4658
  console.error(
4658
4659
  style.error(
@@ -4668,14 +4669,13 @@ ${style.info("Please set the following environment variables:")}`
4668
4669
  }
4669
4670
  process.exit(1);
4670
4671
  }
4671
- if (!workspaceCRN || !clientId || !clientKey || !apiKey) {
4672
+ if (!workspaceCRN || !clientId || !clientKey || !accessKey) {
4672
4673
  throw new Error("Missing required configuration");
4673
4674
  }
4674
4675
  return {
4675
4676
  workspaceCRN,
4676
4677
  clientId,
4677
4678
  clientKey,
4678
- apiKey,
4679
4679
  accessKey,
4680
4680
  environment
4681
4681
  };