stechstudio / laravel-env-security

Securely manage Laravel .env files for different deployment environments
MIT License
75 stars 9 forks source link

Empty File #3

Closed bubba-h57 closed 5 years ago

bubba-h57 commented 6 years ago

When creating a new env file, if you leave the file empty like so:

php artisan env:edit qa
:wq

then the errors out and throws exceptions due to a lack of a plaintext value to work with.

In WrappedHttpHandler.php line 191:

  Error executing "Encrypt" on "https://kms.us-east-1.amazonaws.com"; AWS HTTP error: Client error: `POST https://kms.us-east-1.amazonaws.com` resulted in a `400 Bad Request` response:                                                       
  {"__type":"ValidationException","message":"1 validation error detected: Value at 'plaintext' failed to satisfy constrain (truncated...)                                                                                                      
   ValidationException (client): 1 validation error detected: Value at 'plaintext' failed to satisfy constraint: Member must have length greater than or equal to 1 - {"__type":"ValidationException","message":"1 validation error detected:  
   Value at 'plaintext' failed to satisfy constraint: Member must have length greater than or equal to 1"}                                                                                                                                     

In RequestException.php line 113:

  Client error: `POST https://kms.us-east-1.amazonaws.com` resulted in a `400 Bad Request` response:                                       
  {"__type":"ValidationException","message":"1 validation error detected: Value at 'plaintext' failed to satisfy constrain (truncated...)