Skip to content

Main#1

Merged
mintritech merged 4 commits into
devfrom
main
Mar 11, 2026
Merged

Main#1
mintritech merged 4 commits into
devfrom
main

Conversation

@mintritech

Copy link
Copy Markdown
Member

No description provided.

- Downgrade to .NET 8.0 and create solution file
- Add docker-compose with MySQL, Redis, phpMyAdmin, and Redis Commander
- Configure detailed CI workflow for pull requests to dev branch
- Add connection strings example for database and cache
- Remove unused init scripts and env files for cleaner project structure"
- Downgrade to .NET 8.0 and create solution file
- Add global.json to lock SDK version at 8.0.100
- Setup docker-compose with MySQL, Redis, phpMyAdmin, and Redis Commander
- Configure detailed CI/CD workflow for pull requests to dev branch
  - Code quality check with dotnet format
  - Matrix build for Debug and Release configurations
  - Test execution with coverage reports
  - Security scanning for vulnerable packages
  - Pipeline summary with job status
- Add connection strings configuration
  - appsettings.Development.json for local dev
  - appsetting.example.json as template
  - Keep appsettings.json clean for production
- Update .gitignore to exclude sensitive config files

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

This PR establishes the initial .NET 8.0 project structure with CI/CD pipeline, Docker infrastructure, and project dependencies. However, critical security vulnerabilities must be addressed before merge.

Critical Issues Found

Security Vulnerabilities (4 instances):

  • Hardcoded credentials in appsetting.example.json and docker-compose.yml expose sensitive information patterns that could be reused in production environments
  • All database passwords and root credentials must be replaced with environment variable references

Required Actions

Replace all hardcoded credentials with environment variables or Docker secrets. Use the provided code suggestions to implement secure credential management. Create a .env.example file to document required environment variables without exposing actual values.

The CI/CD pipeline and project structure are well-configured, but the security issues are blocking concerns that must be resolved.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

Comment thread appsetting.example.json
@@ -0,0 +1,13 @@
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=3306;Database=project_sem3_db;User=devuser;Password=devpass;",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Security Vulnerability: Hardcoded database credentials in example file expose sensitive information patterns. Replace with placeholder values to prevent credential reuse in production.

Suggested change
"DefaultConnection": "Server=localhost;Port=3306;Database=project_sem3_db;User=devuser;Password=devpass;",
"DefaultConnection": "Server=<hostname>;Port=<port>;Database=<database_name>;User=<username>;Password=<password>;",

Comment thread docker-compose.yml
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: root

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Security Vulnerability: Hardcoded phpMyAdmin password in docker-compose exposes admin credentials. Use environment variables.1

Suggested change
PMA_PASSWORD: root
PMA_PASSWORD: ${MYSQL_ROOT_PASSWORD}

Footnotes

  1. CWE-798: Use of Hard-coded Credentials - https://cwe.mitre.org/data/definitions/798.html

Comment thread docker-compose.yml
container_name: project-sem3-mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Security Vulnerability: Hardcoded root password 'root' creates a severe security risk. Use environment variables or Docker secrets for production deployments.1

Suggested change
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}

Footnotes

  1. CWE-798: Use of Hard-coded Credentials - https://cwe.mitre.org/data/definitions/798.html

Comment thread docker-compose.yml
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: project_sem3_db
MYSQL_USER: devuser
MYSQL_PASSWORD: devpass

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Security Vulnerability: Hardcoded database password exposes credentials. Replace with environment variable reference.1

Suggested change
MYSQL_PASSWORD: devpass
MYSQL_PASSWORD: ${MYSQL_PASSWORD}

Footnotes

  1. CWE-798: Use of Hard-coded Credentials - https://cwe.mitre.org/data/definitions/798.html

- Add System.Text.Json 10.0.4 to fix GHSA-8g4q-xg66-9fp4
- Update actions/upload-artifact from v3 to v4 in CI workflow
- Add continue-on-error for test step
- Add if-no-files-found: ignore for artifact uploads
@mintritech mintritech merged commit 0b35e31 into dev Mar 11, 2026
6 checks passed
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.

1 participant