Browse Source

refactor: package rename

pull/9499/head
Pranav C 2 months ago
parent
commit
e692390744
  1. 4
      .gitignore
  2. 0
      packages/nc-secret-mgr/.npmignore
  3. 0
      packages/nc-secret-mgr/dist/cli.js
  4. 0
      packages/nc-secret-mgr/dist/cli.js.LICENSE.txt
  5. 0
      packages/nc-secret-mgr/src/core/NcConfig.ts
  6. 0
      packages/nc-secret-mgr/src/core/NcError.ts
  7. 0
      packages/nc-secret-mgr/src/core/SecretManager.ts
  8. 0
      packages/nc-secret-mgr/src/core/index.ts
  9. 0
      packages/nc-secret-mgr/src/core/logger.ts
  10. 0
      packages/nc-secret-mgr/src/index.spec.ts
  11. 0
      packages/nc-secret-mgr/src/index.ts
  12. 0
      packages/nc-secret-mgr/src/nocodb/cli.js
  13. 0
      packages/nc-secret-mgr/tsconfig.json
  14. 0
      packages/nc-secret-mgr/webpack.config.js
  15. 20
      packages/noco-docs/docs/100.data-sources/050.updating-secret.md
  16. 2
      packages/nocodb/webpack.cli.config.js
  17. 2
      scripts/updateCliVersion.js

4
.gitignore vendored

@ -96,5 +96,5 @@ test_noco.db
httpbin httpbin
.run/test-debug.run.xml .run/test-debug.run.xml
/packages/nc-secret-cli/dist/index.js /packages/nc-secret-mgr/dist/index.js
/packages/nc-secret-cli/dist/index.js.map /packages/nc-secret-mgr/dist/index.js.map

0
packages/nc-secret-cli/.npmignore → packages/nc-secret-mgr/.npmignore

0
packages/nc-secret-cli/dist/cli.js → packages/nc-secret-mgr/dist/cli.js vendored

0
packages/nc-secret-cli/dist/cli.js.LICENSE.txt → packages/nc-secret-mgr/dist/cli.js.LICENSE.txt vendored

0
packages/nc-secret-cli/src/core/NcConfig.ts → packages/nc-secret-mgr/src/core/NcConfig.ts

0
packages/nc-secret-cli/src/core/NcError.ts → packages/nc-secret-mgr/src/core/NcError.ts

0
packages/nc-secret-cli/src/core/SecretManager.ts → packages/nc-secret-mgr/src/core/SecretManager.ts

0
packages/nc-secret-cli/src/core/index.ts → packages/nc-secret-mgr/src/core/index.ts

0
packages/nc-secret-cli/src/core/logger.ts → packages/nc-secret-mgr/src/core/logger.ts

0
packages/nc-secret-cli/src/index.spec.ts → packages/nc-secret-mgr/src/index.spec.ts

0
packages/nc-secret-cli/src/index.ts → packages/nc-secret-mgr/src/index.ts

0
packages/nc-secret-cli/src/nocodb/cli.js → packages/nc-secret-mgr/src/nocodb/cli.js

0
packages/nc-secret-cli/tsconfig.json → packages/nc-secret-mgr/tsconfig.json

0
packages/nc-secret-cli/webpack.config.js → packages/nc-secret-mgr/webpack.config.js

20
packages/noco-docs/docs/100.data-sources/050.updating-secret.md

@ -1,32 +1,32 @@
--- ---
title: 'Updating Secrets' title: 'Updating Secrets'
description: 'Learn how to update secrets in NocoDB using the nc-secret-cli package.' description: 'Learn how to update secrets in NocoDB using the nc-secret-mgr package.'
tags: ['Secrets', 'nc-secret-cli', 'Update', 'Security'] tags: ['Secrets', 'nc-secret-mgr', 'Update', 'Security']
keywords: ['NocoDB secrets', 'nc-secret-cli', 'Update', 'Security'] keywords: ['NocoDB secrets', 'nc-secret-mgr', 'Update', 'Security']
--- ---
## Updating Secrets ## Updating Secrets
To update a secret in NocoDB, you can use the `nc-secret-cli` package. Follow the steps below to update a secret: To update a secret in NocoDB, you can use the `nc-secret-mgr` package. Follow the steps below to update a secret:
### Using the Command Line Interface (CLI) ### Using the Command Line Interface (CLI)
1. Install the `nc-secret-cli` package if you haven't already. You can do this by running the following command in your terminal: 1. Install the `nc-secret-mgr` package if you haven't already. You can do this by running the following command in your terminal:
```bash ```bash
npm install -g nc-secret-cli npm install -g nc-secret-mgr
``` ```
2. Once the package is installed, you can update a secret by running the following command: 2. Once the package is installed, you can update a secret by running the following command:
```bash ```bash
NC_DB="pg://host:port?u=user&p=password&d=database" nc-secret-cli update --prev <previous-secret> --new <new-secret> NC_DB="pg://host:port?u=user&p=password&d=database" nc-secret-mgr update --prev <previous-secret> --new <new-secret>
``` ```
OR OR
```bash ```bash
NC_DB="pg://host:port?u=user&p=password&d=database" nc-secret-cli <previous-secret> <new-secret> NC_DB="pg://host:port?u=user&p=password&d=database" nc-secret-mgr <previous-secret> <new-secret>
``` ```
Replace `<previous-secret>` with the name of the secret you used previously, and `<new-secret>` with the new value of the secret. Replace `<previous-secret>` with the name of the secret you used previously, and `<new-secret>` with the new value of the secret.
@ -35,9 +35,9 @@ To update a secret in NocoDB, you can use the `nc-secret-cli` package. Follow th
### Using Executables ### Using Executables
Alternatively, you can use the `nc-secret-cli` executable to update secrets. Alternatively, you can use the `nc-secret-mgr` executable to update secrets.
1. Download the `nc-secret-cli` executable from the [NocoDB website](https://github.com/nocodb/nc-secret-cli/releases/latest). 1. Download the `nc-secret-mgr` executable from the [NocoDB website](https://github.com/nocodb/nc-secret-mgr/releases/latest).
2. Run the executable using the following command: 2. Run the executable using the following command:
```bash ```bash

2
packages/nocodb/webpack.cli.config.js

@ -42,7 +42,7 @@ module.exports = {
mode: 'production', mode: 'production',
output: { output: {
filename: 'cli.js', filename: 'cli.js',
path: path.resolve(__dirname, '..', 'nc-secret-cli', 'src/nocodb'), path: path.resolve(__dirname, '..', 'nc-secret-mgr', 'src/nocodb'),
library: 'libs', library: 'libs',
libraryTarget: 'umd', libraryTarget: 'umd',
globalObject: "typeof self !== 'undefined' ? self : this", globalObject: "typeof self !== 'undefined' ? self : this",

2
scripts/updateCliVersion.js

@ -1,7 +1,7 @@
const fs = require('fs') const fs = require('fs')
const path = require('path') const path = require('path')
const packageJsonPath = path.join(__dirname, '..', 'packages', 'nc-secret-cli', 'package.json') const packageJsonPath = path.join(__dirname, '..', 'packages', 'nc-secret-mgr', 'package.json')
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')) const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'))

Loading…
Cancel
Save