update controllers and services, stick to crud #13

Merged
mirrerror merged 6 commits from dimas into master 2023-10-04 13:28:03 +00:00
mirrerror commented 2023-10-02 05:59:00 +00:00 (Migrated from github.com)
No description provided.
DmitriiKaban (Migrated from github.com) reviewed 2023-10-02 05:59:00 +00:00
gitguardian[bot] commented 2023-10-02 05:59:04 +00:00 (Migrated from github.com)

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id Secret Commit Filename
8295187 MariaDB Credentials 32066bb47a src/main/resources/application.properties View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

#### ⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request. Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components. <details> <summary>🔎 Detected hardcoded secret in your pull request</summary> <br> | GitGuardian id | Secret | Commit | Filename | | | -------------- | ------------------------- | ---------------- | --------------- | -------------------- | | [8295187](https://dashboard.gitguardian.com/incidents/8295187?occurrence=116496840) | MariaDB Credentials | 32066bb47a8250c5ea35b377621eb5a3bd21d5d2 | src/main/resources/application.properties | [View secret](https://github.com/lumijiez/ExpenseTrackerFAF/commit/32066bb47a8250c5ea35b377621eb5a3bd21d5d2#diff-54eeffbae371fcd1398d4ca5e89a1b8118208b7bb2f8ddf55c1aa2f7d98ab136L4) | </details> <details> <summary>🛠 Guidelines to remediate hardcoded secrets</summary> <br> 1. Understand the implications of revoking this secret by investigating where it is used in your code. 2. Replace and store your secret safely. [Learn here](https://blog.gitguardian.com/secrets-api-management?utm_source=product&amp;utm_medium=GitHub_checks&amp;utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate this secret](https://docs.gitguardian.com/secrets-detection/detectors/specifics/mariadb_assignment_attached_port#revoke-the-secret?utm_source=product&amp;utm_medium=GitHub_checks&amp;utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&amp;utm_medium=GitHub_checks&amp;utm_campaign=check_run_comment). Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data. To avoid such incidents in the future consider - following these [best practices](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&amp;utm_medium=GitHub_checks&amp;utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit?utm_source=product&amp;utm_medium=GitHub_checks&amp;utm_campaign=check_run_comment) to catch secret before it leaves your machine and ease remediation. </details> --- <sup>🦉 [GitGuardian](https://dashboard.gitguardian.com/auth/login/?utm_medium=checkruns&amp;utm_source=github&amp;utm_campaign=cr1) detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.<br/><br/>Our GitHub checks need improvements? [Share your feedbacks](https://050127dayho.typeform.com/to/KmeAPTMk)!</sup>
bytegrip commented 2023-10-02 07:47:06 +00:00 (Migrated from github.com)

LGTM!

LGTM!
DmitriiKaban (Migrated from github.com) reviewed 2023-10-02 11:52:12 +00:00
DmitriiKaban (Migrated from github.com) left a comment

I have only one suggestion: in files UserService, IncomeService, and ExpenseService dependencies from repositories should be final, e.g. private ExpenseRepository expenseRepository; -> private final ExpenseRepository expenseRepository;

I have only one suggestion: in files UserService, IncomeService, and ExpenseService dependencies from repositories should be final, e.g. private ExpenseRepository expenseRepository; -> private final ExpenseRepository expenseRepository;
Sign in to join this conversation.