Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ scripts/bws-secure/.env*
scripts/bws-secure/**/.env*
.env.secure
.env.secure.*

*.md
61 changes: 41 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,28 +526,50 @@ env | grep -i lacework
For detailed configuration, troubleshooting, and advanced setup, see [Lacework Integration Documentation](./packages/docs/docs/integrations/lacework.md).

<!-- BWS-SECURE-DOCS-START -->

## BWS Secure Environmental Variable Integration
## 🔒 BWS Secure Environmental Variable Integration

This project uses [BWS Secure](https://github.com/last-rev-llc/bws-secure) for managing environment variables across different environments.

### Creating an Access Token

1. Visit your [Bitwarden Machine Accounts](https://vault.bitwarden.com/#/sm/${BWS_ORG_ID:-YOUR_BWS_ORG_ID_HERE}/machine-accounts) section
- **Note:** This link requires you to be a member of the Last Rev Bitwarden organization
- If you don't have access, please refer to the [BWS Secure documentation](https://github.com/last-rev-llc/bws-secure) or contact your team administrator
2. After clicking the link, follow these steps:
- Select the appropriate Client/Set of Machine Accounts from the list
- Click on the "Access Tokens" tab
- Click "+ New Access Token" button
- Give the token a meaningful name (e.g., "Your Name - Local Development")
- Click "Save" to generate the token
3. Copy the displayed token (you won't be able to see it again after closing)
4. Add it to your .env file in your project root:
```
BWS_ACCESS_TOKEN=your_token_here
```
5. Never commit this token to version control
### 🔐 Creating an Access Token

📍 **1.** Visit the [Bitwarden Machine Accounts](https://vault.bitwarden.com/#/sm) section within your Vault.
- If you login directly to https://vault.bitwarden.com, you will need to navigate to the Machine Accounts section, within the Secrets Manager. The Secrets Manager is located in the left sidebar, typically at the bottom of the page.
- If you don't have access, please refer to the [BWS Secure documentation](https://github.com/last-rev-llc/bws-secure) or contact your team administrator

🖱️ **2.** Navigate to the Machine Accounts section, and follow these steps:
- Select the appropriate Client/Set of Machine Accounts from the list
- Click on the "Access Tokens" tab
- Click "+ New Access Token" button
- Give the token a meaningful name (e.g., "Your Name - Local Development")
- Click "Save" to generate the token

📋 **3.** Copy the displayed token (you won't be able to see it again after closing)

💾 **4.** Add it to your .env file in your project root:
```
BWS_ACCESS_TOKEN=your_token_here
```

⚠️ **5.** Never commit this token to version control

### 🎯 Token Usage Options:

- **BWS_ACCESS_TOKEN**: Loads ALL projects associated with that token (recommended for multi-project setups)
- **BWS_PROJECT_ID**: Loads only a specific project (use for single-project or testing scenarios)

**Example for single project:**
```
BWS_PROJECT_ID=00000000-0000-0000-0000-000000000001
```

The project ID can be found in the Bitwarden Secrets Manager, within the list of projects.

### 🔧 Common Issues & Troubleshooting:

- **"No projects found"**: Verify your token has project access permissions in Bitwarden
- **"Access denied"**: Check that the Machine Account has read permissions for the target projects
- **Token not working**: Ensure no extra spaces when copying from Bitwarden
- **Multiple projects loading**: This is normal with BWS_ACCESS_TOKEN - use BWS_PROJECT_ID for single project

### Updating BWS Secure

Expand All @@ -562,5 +584,4 @@ Alternatively, you can run the following command manually from your project root
```bash
rm -rf scripts/bws-secure && git clone git@github.com:last-rev-llc/bws-secure.git scripts/bws-secure && rm -rf scripts/bws-secure/.git && bash scripts/bws-secure/install.sh
```

<!-- BWS-SECURE-DOCS-END -->
24 changes: 12 additions & 12 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"dependencies": {
"@auth0/auth0-react": "2.3.0",
"@auth0/nextjs-auth0": "3.5.0",
"@aws-sdk/client-s3": "^3.859.0",
"@aws-sdk/s3-request-presigner": "^3.859.0",
"@aws-sdk/signature-v4-crt": "^3.858.0",
"@dqbd/tiktoken": "^1.0.21",
"@aws-sdk/client-s3": "^3.887.0",
"@aws-sdk/s3-request-presigner": "^3.887.0",
"@aws-sdk/signature-v4-crt": "^3.887.0",
"@dqbd/tiktoken": "^1.0.22",
"@emotion/cache": "^11.14.0",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
Expand All @@ -37,9 +37,9 @@
"aai-embed": "workspace:*",
"add": "^2.0.6",
"aws-crt": "^1.27.3",
"axios": "1.8.2",
"axios": "^1.12.1",
"chromadb": "^1.10.5",
"cohere-ai": "^7.18.0",
"cohere-ai": "^7.19.0",
"cors": "^2.8.5",
"db": "workspace:*",
"encoding": "^0.1.13",
Expand All @@ -60,15 +60,15 @@
"serpapi": "^1.1.1",
"sharp": "^0.33.5",
"stripe": "^17.7.0",
"typeorm": "^0.3.25",
"typeorm": "^0.3.26",
"ui": "workspace:*",
"utils": "workspace:*",
"uuid": "^9.0.1"
},
"devDependencies": {
"@babel/core": "^7.28.0",
"@babel/core": "^7.28.4",
"@next/bundle-analyzer": "^13.5.11",
"@playwright/test": "^1.54.2",
"@playwright/test": "^1.55.0",
"@prisma/nextjs-monorepo-workaround-plugin": "^5.22.0",
"@types/cors": "^2.8.19",
"@types/js-cookie": "^3.0.6",
Expand All @@ -77,17 +77,17 @@
"@types/react-dom": "^18.3.7",
"@types/uuid": "^9.0.8",
"copy-webpack-plugin": "^11.0.0",
"dotenv": "^16.6.1",
"dotenv": "^17.2.2",
"eslint": "7.32.0",
"eslint-config-custom": "workspace:*",
"file-loader": "^6.2.0",
"terser-webpack-plugin": "^5.3.14",
"ts-loader": "^9.5.2",
"ts-loader": "^9.5.4",
"tsconfig": "workspace:*",
"types": "workspace:*",
"typescript": "~5.5.4",
"url-loader": "^4.1.1",
"webpack": "^5.101.0",
"webpack": "^5.101.3",
"webpack-cli": "^5.1.4",
"webpack-node-externals": "^3.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions copilot/copilot.appName.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ LOG_LEVEL=warn
AAI_DEFAULT_OPENAI_API_KEY=

# Initial Chatflow UUID - Set to a specific chatflow UUID or comma-separated UUIDs to copy chatflows to all user accounts
# Example: INITIAL_CHATFLOW_ID="UUID1,UUID2,UUID3"
# INITIAL_CHATFLOW_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# Example: INITIAL_CHATFLOW_IDS="UUID1,UUID2,UUID3"
# INITIAL_CHATFLOW_IDS=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

# ==================================================
# LANGFUSE CONFIGURATION
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,25 @@
"export-auth0-users": "pnpm secure-run \"node ./scripts/export-auth0-users.js\"",
"submodule:init": "git submodule update --init --recursive --force",
"submodule:reset": "git submodule deinit -f --all && git submodule update --init --recursive",
"precopilot": "BWS_SUPPRESS_ALL=true pnpm secure-run sh copilot/scripts/copilot-switch-app.sh && sleep 1",
"copilot": "BWS_SUPPRESS_ALL=true pnpm secure-run copilot",
"precopilot": "pnpm secure-run sh copilot/scripts/copilot-switch-app.sh && sleep 1",
"copilot": "pnpm secure-run copilot",
"copilot:auto": "bash ./copilot/scripts/copilot-auto-deploy.sh"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --fix"
},
"devDependencies": {
"@babel/preset-env": "^7.28.0",
"@babel/preset-env": "^7.28.3",
"@babel/preset-typescript": "7.21.4",
"@cypress/react18": "^2.0.1",
"@types/express": "^4.17.23",
"@types/node-cron": "^3.0.11",
"@typescript-eslint/typescript-estree": "^7.18.0",
"axios": "1.8.2",
"axios": "^1.12.1",
"cursor-tools": "latest",
"cypress": "^13.17.0",
"dotenv": "^16.6.1",
"dotenv-cli": "^8.0.0",
"dotenv": "^17.2.2",
"dotenv-cli": "^10.0.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^8.10.2",
"eslint-config-react-app": "^7.0.1",
Expand All @@ -95,8 +95,8 @@
"glob": "^11.0.3",
"husky": "^8.0.3",
"kill-port": "^2.0.1",
"knip": "^5.62.0",
"lint-staged": "^15.2.0",
"knip": "^5.63.1",
"lint-staged": "^15.5.2",
"prettier": "^2.8.8",
"pretty-quick": "^3.3.1",
"rimraf": "^6.0.1",
Expand All @@ -115,7 +115,7 @@
"sqlite3"
],
"overrides": {
"axios": "1.8.2",
"axios": "^1.12.1",
"body-parser": "2.0.2",
"braces": "3.0.3",
"cookie": ">=0.7.0",
Expand All @@ -137,6 +137,7 @@
"send": ">=0.19.0",
"serve-static": ">=1.16.0",
"set-value": "4.1.0",
"sha.js": ">=2.4.12",
"tar-fs": "3.0.9",
"tmp": "^0.2.4",
"tough-cookie": ">=4.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages-answers/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@prisma/client": "^5.22.0",
"prisma-json-types-generator": "^3.5.1"
"prisma-json-types-generator": "^3.6.0"
},
"devDependencies": {
"@types/jest": "^29.5.14",
Expand Down
2 changes: 1 addition & 1 deletion packages-answers/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"dependencies": {
"eslint": "^7.32.0",
"eslint-config-next": "^13.5.11",
"eslint-config-next": "^14.2.32",
"eslint-config-prettier": "^8.10.2",
"eslint-config-turbo": "^1.13.4",
"eslint-plugin-react": "^7.37.5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"webpack": "^5.101.0"
"webpack": "^5.101.3"
},
"scripts": {
"not:test": "echo \"Error: no test specified\" && exit 1"
Expand Down
8 changes: 4 additions & 4 deletions packages-answers/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"eslint-config-custom": "workspace:*",
"react": "18.2.0",
"tsconfig": "workspace:*",
"tsup": "^8.3.5",
"tsup": "^8.5.0",
"typescript": "~5.5.4"
},
"dependencies": {
Expand All @@ -45,7 +45,7 @@
"@next-auth/prisma-adapter": "^1.0.7",
"@textea/json-viewer": "2.14.1",
"aai-embed-react": "~1.0.8",
"axios": "1.8.2",
"axios": "^1.12.1",
"clsx": "^1.2.1",
"cors": "^2.8.5",
"encoding": "^0.1.13",
Expand All @@ -64,11 +64,11 @@
"react-dropzone": "^14.3.8",
"react-hook-form": "^7.62.0",
"react-markdown": "^8.0.7",
"react-syntax-highlighter": "^15.6.1",
"react-syntax-highlighter": "^15.6.6",
"react-window": "^1.8.11",
"remark-gfm": "^3.0.1",
"stripe": "^17.7.0",
"swr": "^2.3.4",
"swr": "^2.3.6",
"types": "workspace:*",
"utils": "workspace:*"
}
Expand Down
12 changes: 6 additions & 6 deletions packages-answers/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@
"dependencies": {
"@algolia/client-search": "^4.25.2",
"@auth0/nextjs-auth0": "3.5.0",
"@aws-sdk/client-s3": "^3.859.0",
"@contentful/app-sdk": "^4.39.0",
"@aws-sdk/client-s3": "^3.887.0",
"@contentful/app-sdk": "^4.43.0",
"@contentful/rich-text-from-markdown": "^15.18.10",
"@dqbd/tiktoken": "^1.0.21",
"@dqbd/tiktoken": "^1.0.22",
"@pinecone-database/pinecone": "^2.2.2",
"@slack/web-api": "^6.13.0",
"airtable": "^0.11.6",
"algoliasearch": "^4.25.2",
"axios": "1.8.2",
"axios": "^1.12.1",
"bufferutil": "^4.0.9",
"cheerio": "^1.1.2",
"contentful-management": "^11.54.4",
"contentful-management": "^11.57.1",
"csv": "^6.4.1",
"csv-parser": "^3.2.0",
"csv-stringify": "^6.6.0",
"dataloader": "^2.2.3",
"db": "workspace:*",
"dotenv": "^16.6.1",
"dotenv": "^17.2.2",
"eventsource-parser": "^1.1.2",
"gpt-3-encoder": "^1.1.4",
"gpt-tokens": "^1.3.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Flowise API documentation server",
"scripts": {
"build": "tsc",
"dev": "tsc-watch --onSuccess \"node dist/index.js\"",
"dev": "tsc-watch --noClear --onSuccess \"node dist/index.js\"",
"start": "node dist/index.js",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
},
Expand Down
Loading