Skip to content

Conversation

@NormB
Copy link
Owner

@NormB NormB commented Dec 8, 2025

Summary

  • Add comprehensive test suites for Node.js and TypeScript reference applications
  • Fix Go debug default from true to false for security
  • Align API-first FastAPI implementation with code-first (logging, version, rate limiting)
  • Fix network IP addresses in .env.example to match 4-tier architecture
  • Document AppRole secret_id renewal process in VAULT.md
  • Improve error messages in certificate generation script

Changes

Test Suites (New)

Node.js (reference-apps/nodejs/tests/):

  • index.test.js - Application entry point tests
  • health.test.js - Health check endpoint tests with mocked dependencies
  • config.test.js - Configuration loading tests
  • Jest configuration with 50% coverage thresholds

TypeScript API-First (reference-apps/typescript-api-first/tests/):

  • index.test.ts - Application entry point tests
  • health.test.ts - Health check endpoint tests
  • config.test.ts - Configuration loading tests
  • ts-jest configuration with TypeScript support

Code Fixes

  • reference-apps/golang/internal/config/config.go: DEBUG default truefalse
  • reference-apps/fastapi-api-first/app/main.py: Aligned with code-first (structured JSON logging, version 1.1.0, rate limiting on /metrics)
  • reference-apps/fastapi/requirements.txt: Removed outdated pytest comment
  • scripts/generate-certificates.sh: Improved VAULT_TOKEN error message

Documentation

  • docs/VAULT.md: Added AppRole secret_id renewal section with commands, crontab setup, and timeline table

Configuration

  • .env.example: Fixed network IPs to match 4-tier segmentation (vault/data/app/observability networks)

Test plan

  • Python syntax validation passes
  • Go build succeeds
  • All changes committed locally
  • CI/CD checks pass

NormB added 2 commits December 8, 2025 07:18
- Fix Go debug default from true to false for security
- Align API-first FastAPI logging with code-first (structured JSON)
- Update API-first version to 1.1.0 to match code-first
- Add rate limiting to API-first metrics endpoint
- Add structured logging to API-first middleware
- Remove outdated pytest version comment
- Improve VAULT_TOKEN error message in generate-certificates.sh
- Run go mod tidy to fix missing go.sum entries
Node.js reference app:
- Add Jest configuration with coverage thresholds
- Add comprehensive health check tests with mocked dependencies
- Add configuration tests
- Add application entry point tests

TypeScript API-first reference app:
- Add Jest configuration for TypeScript with ts-jest
- Add comprehensive health check tests
- Add configuration and entry point tests
- Add supertest and @types/supertest dependencies

Documentation:
- Document AppRole secret_id renewal process with commands
- Add automated renewal instructions (crontab)
- Add renewal timeline table

Configuration:
- Fix .env.example network IPs to match 4-tier architecture
- Organize IPs by network segment (vault/data/app/observability)
@NormB NormB merged commit 058dca1 into main Dec 8, 2025
30 checks passed
@NormB NormB deleted the fix/codebase-improvements branch December 8, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants