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
Invalid crypt key after restart of Firebird [CORE5836] #6097
Comments
Commented by: Daniel Mazur (danielmazur) After few minutes got Internal coisitence error, after recreating connection I saw error I will check it on new snapshot and 64bit (FB on my machine is 32bit right now) EDIT: To be clear, I do not use keyholder |
Modified by: @AlexPeshkoffassignee: Alexander Peshkov [ alexpeshkoff ] |
Modified by: @AlexPeshkoffpriority: Critical [ 2 ] => Major [ 3 ] |
Commented by: @AlexPeshkoff Not reproduced. Encrypt: Restart server: Check database: |
Commented by: Daniel Mazur (danielmazur) Please try in windows environment EDIT: On 64bit version of latest snapshot 32980 got this after restart (I can do everything with encrypted database until restart): [Window Title] [Content] SQL Message : -902 Engine Code : 335544333 [OK] |
Commented by: @hvlad Daniel, i just check current snapshot with cryptDb sample - it works as expected. Please, explain: what exact consistence error ? any message in firebird.log ? > On latest snapshot it gives error to after restart Could you try with cryptDb sample ? |
Commented by: @AlexPeshkoff Daniel, please add new comments when you answer instead editing old one. Is that behavior reproduced with an example plugin? |
Commented by: Daniel Mazur (danielmazur) Hard to say. Look, I've moved all my local variables from encrypt and decrypt function into global scope. DLL has to start working after restart but while writing few thousand recods i got this: internal Firebird consistency check (can't continue after bugcheck) I may try with sample plugin but there is only xor 5 and no use of local variables. |
Commented by: @AlexPeshkoff Stack overflow in firebird caused by restart? No, I do not accept that. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Commented by: Daniel Mazur (danielmazur) Not by restart, on latest snapshot I have found the place with fbtracemgr the query which making a error. INSERT INTO(...) param0 = integer, "2" 2018-05-30T09:48:38.0610 (7892:0000000007A30040) EXECUTE_TRIGGER_START 2018-05-30T09:48:38.0890 (7892:0000000007A30040) ERROR AT JStatement::execute I will try with dbcrypt example now |
Submitted by: Daniel Mazur (danielmazur)
ALTER DATABASE ENCRYPT WITH cryptPlugin works fine after fix in 3.0.4 snapshot but i have found another critical bug.
Encryption and decryption works fine but after restart of FB, there is Exception Invalid crypt key (and this is surely not fault of my code, checked it twice)
The temporary fix is to use
ALTER DATABASE ENCRYPT WITH cryptPlugin KEY SOMELETTERS
With this, after encryption and restart of FB, everything works fine.
I think that now FB without KEY KEYNAME writes into db file random data (there wasn't issue with 3.0.3 official version)
Note: ALTER DATABASE DECRYPT is not affected
The text was updated successfully, but these errors were encountered: