Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bearer SAST scanner #31

Closed
wants to merge 5 commits into from
Closed

Add Bearer SAST scanner #31

wants to merge 5 commits into from

Conversation

tomczak-mateusz
Copy link
Contributor

@tomczak-mateusz tomczak-mateusz commented Nov 28, 2024

Comment on lines +29 to +40
protected static $paths = [
'coupon' => 'lipscore_coupons/coupons/',
'product_attributes' => 'lipscore_general/product_attributes/',
'apiKey' => 'lipscore_general/api_key/',
'locale' => 'lipscore_general/locale/',
'emails' => 'lipscore_general/emails/',
'module' => 'lipscore_general/module/',
'coupons' => 'lipscore_general/coupons/',
'tracking' => 'lipscore_plugin/',
'storeGeneral' => 'general/',
'appearance' => 'lipscore_general/appearance/'
];

Choose a reason for hiding this comment

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

🚫 [Bearer] <php_lang_hardcoded_secret> reported by reviewdog 🐶

Usage of hard-coded secret

Description

Storing secret values directly in the source code exposes them to unauthorized access and compromises security. This practice makes your application vulnerable to attacks.

Remediations

  • Do not hard-code secrets in your application code. Hard-coding makes sensitive information easily accessible to anyone who can view the code.
  • Do use environment variables to manage secrets securely. This method keeps sensitive information out of your codebase and makes it more difficult for unauthorized users to access.
  • Do retrieve secrets from a secure location at runtime. This approach minimizes the risk of exposing sensitive information and enhances the security of your application.
    $secret = getenv('SECRET_KEY');
  • Do consider implementing a key-management system to securely handle secrets and other sensitive information. This approach provides enhanced security measures for managing and accessing credentials.

References

@tomczak-mateusz tomczak-mateusz self-assigned this Nov 28, 2024
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