Skip to content

Conversation

@aksshriv1
Copy link
Contributor

No description provided.

@gitguardian
Copy link

gitguardian bot commented Nov 25, 2025

⚠️ 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 GitGuardian status Secret Commit Filename
22088979 Triggered Generic High Entropy Secret 4d2fa17 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.

@aksshriv1 aksshriv1 changed the title REST controller for managing help and documentation resources. REST controller for managing help and documentation resources. --> Don't Merge Nov 26, 2025
## Help & Support Configuration - End

## Potential Economic Benefits Configuration - Start
peb.totalDevelopers=30
Copy link
Contributor

Choose a reason for hiding this comment

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

Use the convention of specifying the property names by having a hyphen separator.

## Help & Support Configuration - End

## Potential Economic Benefits Configuration - Start
peb.totalDevelopers=30
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a grouping for these properties. peb.configuration for example or something relevant

## Potential Economic Benefits Configuration - Start
peb.totalDevelopers=30
peb.avgCostPerDeveloper=100000.00
peb.timeDuration=Per Year
Copy link
Contributor

Choose a reason for hiding this comment

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

The duration shouldn't be a string. Try using the TemporalAggregationUnit (my recommendation) or ChronoUnit enum or if it is a string then make sure that it easily mapped to any of these two enums

executive.dashboard.timeout.minutes=3

## Help & Support Configuration - Start
help.productDocumentationUrl=https://docs.example.com/product
Copy link
Contributor

Choose a reason for hiding this comment

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

Please apply the review from the peb properties to these ones as well at least on the naming convention

public class HelpAndSupportController {

@Autowired
private HelpConfig helpConfig;
Copy link
Contributor

Choose a reason for hiding this comment

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

Use the constructor based injection along with @requiredargsconstructor

@Autowired
private HelpConfig helpConfig;

public void setHelpConfig(HelpConfig helpConfig) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Use Lombok annotations

resourceLinks.put("raiseTicket", helpConfig.getRaiseTicketUrl() != null ? helpConfig.getRaiseTicketUrl() : "");
resourceLinks.put("supportChannel", helpConfig.getSupportChannelUrl() != null ? helpConfig.getSupportChannelUrl() : "");
log.info("Help configuration retrieved successfully");
return ResponseEntity.ok(new ServiceResponse(true, "Help and Support configuration retrieved successfully", resourceLinks));
Copy link
Contributor

Choose a reason for hiding this comment

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

Create a DTO instead of using a map

@RequestMapping("/help")
@Tag(name = "Help", description = "Endpoints for managing support and documentation resources")
@Slf4j
public class HelpAndSupportController {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it help controller when this is actually an endpoint for managing documentations?

@RequestMapping("/documentation") and then have the required endpoints beneath it

@Autowired
private PEBConfig pebConfig;

public void setPebConfig(PEBConfig pebConfig) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please apply the same review comments as received for "HelpAndSupportController"

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.

5 participants