Security
Security is important. If you discover a security vulnerability within Laravel-OCI8, please report it responsibly.
Reporting Security Issues
Please do not report security vulnerabilities through public GitHub issues.
Instead, send an email directly to the maintainer:
- Email: [email protected]
What to Include
When reporting a security issue, please include:
- Description: A clear description of the vulnerability
- Steps to Reproduce: How to reproduce the issue
- Impact: Potential impact of the vulnerability
- Suggested Fix: If you have one, your suggested solution
Response Timeline
We aim to acknowledge security reports within 48 hours and provide a timeline for fixes based on severity.
Security Best Practices
When using Laravel-OCI8, follow these security practices:
Use Environment Variables
Never hardcode database credentials. Always use environment variables:
// config/database.php'connections' => [ 'oracle' => [ 'username' => env('DB_USERNAME'), 'password' => env('DB_PASSWORD'), ],],
Limit Database Privileges
Grant only the minimum privileges needed by your application:
-- Create a user with limited privilegesCREATE USER app_user IDENTIFIED BY "strong_password";GRANT CONNECT, RESOURCE TO app_user;
Protect Sensitive Data
Use Laravel's encryption features for sensitive data:
// Encrypt before storing$user->setAttribute('ssn', encrypt($request->input('ssn'))); // Decrypt when retrieving$ssn = decrypt($user->getAttribute('ssn'));
Sanitize Input
Always use Laravel's query builder or Eloquent for database operations to benefit from built-in SQL injection protection:
// Safe - uses parameterized queriesDB::table('users')->where('email', $email)->first(); // Avoid raw queries when possible// DB::select("SELECT * FROM users WHERE email = '$email'");
Dependency Security
Keep your dependencies up to date to receive security patches:
composer update --prefer-stable
License
See the License file for terms and conditions.