Hi All,
Been playing with encryption in 10.1.4 today and there’s a few issues…
Firstly the manual gives the following example…
“Example my.cnf to enable XtraDB encryption:
[mysqld]
file-key-management
file-key-management-filename = /mount/usb1/keys.txt
innodb-encrypt-tables
innodb-encrypt-logs
innodb-encryption-threads=4”
But doesn’t make mention of the fact you need to add..
plugin-load-add=file_key_management.so
for this to work.
Secondly…
With this config..
plugin-load-add=file_key_management.so
file_key_management
file_key_management_filename = /home/rcampbel/key.enc
file_key_management_filekey = FILE:/home/rcampbel/keyfile.txt
file_key_management_encryption_algorithm = AES_CBC
innodb-encrypt-tables
innodb-encrypt-logs
innodb-encryption-threads = 4
I receive the following error…
ERROR Innodb: Tablespace id 0 encrypted but encryption service not available. Can’t continue opening tablespace.”
Then if I comment out inndob-encrypt-tables we get a step further but it complains..
“unknown option –innodb-encrypt-logs” <- documentation for 10.1.4 says different
If I change this to…
The server then starts up successfully. Here’s a snip of some relevant variables…
After this I do seem to be able to dynamically set innodb_encrypt_tables and create an encrypted table…
Then adding both, or either one of…
aria-encrypt-tables=1
encrypt-tmp-disk-tables=1
Results in a crash on startup…
1.png 53 kB 2015-04-17 15:38 2.png 62 kB 2015-04-17 15:38 3.png 83 kB 2015-04-17 15:41
relates to
MDEV-8021
"InnoDB: Tablespace id 4 encrypted but encryption service not available. Can't continue opening tablespace" on server restart when there are encrypted tables
Closed
Transition
Time In Source Status
Execution Times
Open
Closed
22d 6h 44m
1
{"report":{"fcp":819.5,"ttfb":252.29999995231628,"pageVisibility":"visible","entityId":50972,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"403f377c-448a-4015-9819-519a32773485","navigationType":0,"readyForUser":872.7999999523163,"redirectCount":0,"resourceLoadedEnd":844.6000001430511,"resourceLoadedStart":257.40000009536743,"resourceTiming":[{"duration":76.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":257.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":257.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":333.5,"responseStart":0,"secureConnectionStart":0},{"duration":76.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":257.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":257.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":334.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":130.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":257.90000009536743,"connectEnd":257.90000009536743,"connectStart":257.90000009536743,"domainLookupEnd":257.90000009536743,"domainLookupStart":257.90000009536743,"fetchStart":257.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":257.90000009536743,"responseEnd":388.5,"responseStart":388.5,"secureConnectionStart":257.90000009536743},{"duration":197.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":257.90000009536743,"connectEnd":257.90000009536743,"connectStart":257.90000009536743,"domainLookupEnd":257.90000009536743,"domainLookupStart":257.90000009536743,"fetchStart":257.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":257.90000009536743,"responseEnd":455.40000009536743,"responseStart":455.40000009536743,"secureConnectionStart":257.90000009536743},{"duration":200.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":258,"connectEnd":258,"connectStart":258,"domainLookupEnd":258,"domainLookupStart":258,"fetchStart":258,"redirectEnd":0,"redirectStart":0,"requestStart":258,"responseEnd":458.90000009536743,"responseStart":458.90000009536743,"secureConnectionStart":258},{"duration":201.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":258.2000000476837,"connectEnd":258.2000000476837,"connectStart":258.2000000476837,"domainLookupEnd":258.2000000476837,"domainLookupStart":258.2000000476837,"fetchStart":258.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":258.2000000476837,"responseEnd":459.2999999523163,"responseStart":459.2000000476837,"secureConnectionStart":258.2000000476837},{"duration":201.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":258.2000000476837,"connectEnd":258.2000000476837,"connectStart":258.2000000476837,"domainLookupEnd":258.2000000476837,"domainLookupStart":258.2000000476837,"fetchStart":258.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":258.2000000476837,"responseEnd":459.7000000476837,"responseStart":459.7000000476837,"secureConnectionStart":258.2000000476837},{"duration":201.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":258.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":258.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":460.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":201.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":258.40000009536743,"connectEnd":258.40000009536743,"connectStart":258.40000009536743,"domainLookupEnd":258.40000009536743,"domainLookupStart":258.40000009536743,"fetchStart":258.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":258.40000009536743,"responseEnd":460.10000014305115,"responseStart":460.10000014305115,"secureConnectionStart":258.40000009536743},{"duration":202,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":258.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":258.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":460.5,"responseStart":0,"secureConnectionStart":0},{"duration":202,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":258.7000000476837,"connectEnd":258.7000000476837,"connectStart":258.7000000476837,"domainLookupEnd":258.7000000476837,"domainLookupStart":258.7000000476837,"fetchStart":258.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":258.7000000476837,"responseEnd":460.7000000476837,"responseStart":460.7000000476837,"secureConnectionStart":258.7000000476837},{"duration":579.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":264.2999999523163,"connectEnd":264.2999999523163,"connectStart":264.2999999523163,"domainLookupEnd":264.2999999523163,"domainLookupStart":264.2999999523163,"fetchStart":264.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":264.2999999523163,"responseEnd":843.6000001430511,"responseStart":843.6000001430511,"secureConnectionStart":264.2999999523163},{"duration":580.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":264.40000009536743,"connectEnd":264.40000009536743,"connectStart":264.40000009536743,"domainLookupEnd":264.40000009536743,"domainLookupStart":264.40000009536743,"fetchStart":264.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":264.40000009536743,"responseEnd":844.6000001430511,"responseStart":844.6000001430511,"secureConnectionStart":264.40000009536743},{"duration":225.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":603.9000000953674,"connectEnd":603.9000000953674,"connectStart":603.9000000953674,"domainLookupEnd":603.9000000953674,"domainLookupStart":603.9000000953674,"fetchStart":603.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":603.9000000953674,"responseEnd":829,"responseStart":829,"secureConnectionStart":603.9000000953674},{"duration":120.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":781,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":781,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":901.5,"responseStart":0,"secureConnectionStart":0},{"duration":108.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":932.6000001430511,"connectEnd":932.6000001430511,"connectStart":932.6000001430511,"domainLookupEnd":932.6000001430511,"domainLookupStart":932.6000001430511,"fetchStart":932.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":932.6000001430511,"responseEnd":1041.4000000953674,"responseStart":1041.4000000953674,"secureConnectionStart":932.6000001430511}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":97,"responseStart":252,"responseEnd":258,"domLoading":255,"domInteractive":995,"domContentLoadedEventStart":995,"domContentLoadedEventEnd":1038,"domComplete":1164,"loadEventStart":1164,"loadEventEnd":1165,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":972.5},{"name":"bigPipe.sidebar-id.end","time":973.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":973.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":974.2999999523163},{"name":"activityTabFullyLoaded","time":1053.4000000953674}],"measures":[],"correlationId":"bb22a1feff1adb","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":30,"dbConnsTimeInMs":38,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}