Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security/prod secrets bruno #15

Merged
merged 3 commits into from
Jan 5, 2025
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
3 changes: 3 additions & 0 deletions CONTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ All branch names must follow a consistent pattern to clearly indicate their purp
* **`build/*`:** For changes in build components like build tool, ci pipeline, dependencies. Example: `build/update-deploy-scripts`
* **`ops/*`:** For changes that affect operational components like infrastructure, deployment, backup, recovery. Example: `ops/backup-utils`
* **`docs/*`:** For branches that affect documentation only. Example: `docs/update-contrubution`
* **`security/*`:** For branches addressing security improvements or issues. Example: `security/add-dotenv-secrets`
* **`chore/*`:** For tasks that don't directly affect the codebase (e.g., build process updates, dependency updates). Example: `chore/update-dependencies`


Expand Down Expand Up @@ -41,6 +42,7 @@ Where:
* `refactor`: A code change that neither fixes a bug nor adds a feature.
* `test`: Adding missing tests or refactoring existing tests.
* `build`: Add command in build script.
* `security`: Changes aimed at improving or resolving security-related issues.
* `chore`: Changes to the build process or auxiliary tools and libraries.


Expand All @@ -58,6 +60,7 @@ Where:
* `style: Fix formatting inconsistencies`
* `refactor(database): Improve database query performance`
* `test(api): Add unit tests for API endpoints`
* `security(env): Mask sensitive information in dotenv file`
* `chore: Update Node.js version`


Expand Down
3 changes: 3 additions & 0 deletions cms/tests/bruno-cms-collection/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PROD_STRAPI_URL=tobemodified
DEV_ADMIN_EMAIL=tobemodified
DEV_ADMIN_PASSWORD=tobemodified
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vars {
baseStrapiAdminUrl: https://strapiadmin.exb-nsk.ru
baseStrapiAdminUrl: {{process.env.PROD_STRAPI_URL}}
}
22 changes: 21 additions & 1 deletion dev-config/.env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
# server
HOST=0.0.0.0
PORT=1337
NODE_ENV=production // or development
DEV_CMS_SRC_PATH=/mnt/c/Users/Rita/projects/pets/church/strapi-2/strapi-church-cms/cms/src

# secrets
APP_KEYS="toBeModified1,toBeModified2"
API_TOKEN_SALT=tobemodified
ADMIN_JWT_SECRET=tobemodified
TRANSFER_TOKEN_SALT=tobemodified
JWT_SECRET=tobemodified
NODE_ENV=production // or development

# Database
DATABASE_CLIENT=postgres
DATABASE_HOST=127.0.0.1
DATABASE_PORT=5432
DATABASE_NAME=tobemodified
DATABASE_USERNAME=tobemodified
DATABASE_PASSWORD=tobemodified
DATABASE_SSL=false
DATABASE_FILENAME=
JWT_SECRET=tobemodified

# frontend
NEXT_PUBLIC_BACKEND_URL=http://localhost:1337
FRONTEND_HOSTNAME=test
DEV_FRONTEND_SRC_PATH=/mnt/c/Users/Rita/projects/pets/church/strapi-2/strapi-church-cms/frontend/src
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ yarn-error.log*

# env files (can opt-in for committing if needed)
.env*
!.env.example

# vercel
.vercel
Expand Down
1 change: 1 addition & 0 deletions frontend/tests/bruno-frontend-collection/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROD_FRONT_URL=tobemodified
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vars {
baseFrontUrl: exb-nsk.ru
baseFrontUrl: {{process.env.PROD_FRONT_URL}}
}