-
Notifications
You must be signed in to change notification settings - Fork 74
Encryption broken after Laravel code change #30
Comments
As proposed in #28 I've made a test by changing the name of the The encrypted value is being stored correctly in the database:
However, this change may potentially break other things in your code. I don't know (haven't had the time to inspect everything) if you are relying on the |
Hey, can you guys confirm if this issue is fixed? |
At the moment there hasn't been any new commits since reporting this issue, so I think that it still does not work out-of-the-box. I've been using the code with my workaround applied and it has been working (though I haven't tested it thoroughly). I'll try to do a pull-request with the changes I've made later on the day. |
Hey @TechTailor see if the changes from the pull-request #32 help you out and fix your issue #31. |
@axelitus @TechTailor any feedback? v0.2.0-rc3 ready for testing/feedback. Should be good to go! |
Sorry @austinheap been busy with other things. Let me try the new code this week. |
It looks like it is working now for me |
@axelitus No worries, just want to make sure it's working for you now 😄
@katzsimon Great to hear! |
Alright @austinheap, I tried the v0.2.0-rc3 in my project and it seems to be working fine. The data is now being encrypted into the database record. |
@axelitus Good deal! I'll release v0.2.0 in a week to give time for regressions to occur. |
v0.2.0 (Packagist) released, thanks for the help @axelitus, @TechTailor, & @katzsimon! |
Due to a code change in Laravel code identified in #28, the package no longer works because no encrypted values are stored for the models.
This code change introduced 21 days ago affects all Laravel Versions (5.5, 5.6 and 5.7).
I've set up a gist with a sample use case. I want to save email drivers config so that the users can send emails from different sources. As they contain sensitive information (server address, password, etc.) it is better to store them encrypted.
For the sample use case, include the source code from the gist, call the seeder in the DatabaseSeeder file with
$this->call(SendersTableSeeder::class);
and then just runphp artisan migrate:fresh --seed
.In the database there should be a row in the senders table with the
mail_config
column set with the encrypted value. Due to the code not working it shows the unencrypted value:{"driver":"log","host":null,"port":null,"username":null,"password":null,"encryption":null,"from":{"address":"admin@localhost","name":"Local Admin"}}
The text was updated successfully, but these errors were encountered: