Skip to content

Commit 2fff547

Browse files
committed
feat: add checkpoint 13 for secrets management and dependency scanning
1 parent 148f72f commit 2fff547

6 files changed

Lines changed: 62 additions & 0 deletions

File tree

checkpoints/checkpoint-13-secrets-management-and-dependency-security.md

Whitespace-only changes.

labs/security/secrets-lab/.gitignore

Whitespace-only changes.

labs/security/secrets-lab/README.md

Whitespace-only changes.

labs/security/secrets-lab/app.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require('dotenv').config();
2+
3+
console.log('Database URL:');
4+
console.log(process.env.DATABASE_URL);
5+
6+
console.log('\nAPI Key:');
7+
console.log(process.env.API_KEY);
8+
9+
console.log('\nJWT Secret:');
10+
console.log(process.env.JWT_SECRET);

labs/security/secrets-lab/package-lock.json

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "secrets-lab",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "app.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [],
10+
"author": "",
11+
"license": "ISC",
12+
"type": "commonjs",
13+
"dependencies": {
14+
"dotenv": "^17.4.2",
15+
"lodash": "^4.17.15"
16+
}
17+
}

0 commit comments

Comments
 (0)