Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6815ab86
Commit
6815ab86
authored
Apr 18, 2024
by
Julius Goryavsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HASHICORP_KEY_MANAGEMENT: code unification between MariaDB editions
parent
9705d623
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
plugin/hashicorp_key_management/hashicorp_key_management_plugin.cc
...shicorp_key_management/hashicorp_key_management_plugin.cc
+4
-5
plugin/hashicorp_key_management/mysql-test/vault/suite.pm
plugin/hashicorp_key_management/mysql-test/vault/suite.pm
+4
-0
plugin/hashicorp_key_management/mysql-test/vault/t/hashicorp_mariabackup.opt
...y_management/mysql-test/vault/t/hashicorp_mariabackup.opt
+1
-0
plugin/hashicorp_key_management/mysql-test/vault/t/hashicorp_mariabackup.test
..._management/mysql-test/vault/t/hashicorp_mariabackup.test
+5
-1
No files found.
plugin/hashicorp_key_management/hashicorp_key_management_plugin.cc
View file @
6815ab86
...
...
@@ -13,18 +13,17 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
#include <my_global.h>
#include <mysql/plugin_encryption.h>
#include <mysqld_error.h>
#include <my_alloca.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include <time.h>
#include <errno.h>
#include <string>
#include <sstream>
#include <curl/curl.h>
#ifdef _WIN32
#include <malloc.h>
#define alloca _alloca
#endif
#include <algorithm>
#include <unordered_map>
#include <mutex>
...
...
plugin/hashicorp_key_management/mysql-test/vault/suite.pm
View file @
6815ab86
package
My::Suite::
Vault
;
use
My::
Platform
;
@ISA
=
qw(My::Suite)
;
use
strict
;
return
"
Hashicorp Key Management plugin tests are currently not available on Windows
"
if
IS_WINDOWS
;
return
"
You need to set the value of the VAULT_ADDR variable
"
unless
$ENV
{
VAULT_ADDR
};
...
...
plugin/hashicorp_key_management/mysql-test/vault/t/hashicorp_mariabackup.opt
0 → 100644
View file @
6815ab86
--innodb --loose-changed_page_bitmaps --innodb-sys-tables --innodb-flush-log-at-trx-commit=2 --sequence
plugin/hashicorp_key_management/mysql-test/vault/t/hashicorp_mariabackup.test
View file @
6815ab86
...
...
@@ -8,9 +8,13 @@
CREATE
TABLE
t
(
i
INT
)
ENGINE
INNODB
encrypted
=
yes
encryption_key_id
=
1
;
INSERT
INTO
t
VALUES
(
1
);
echo
# mariabackup backup;
let
$targetdir
=
$MYSQLTEST_VARDIR
/
tmp
/
backup
;
--
error
0
,
1
rmdir
$targetdir
;
echo
# mariabackup backup;
--
disable_result_log
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
--
target
-
dir
=
$targetdir
;
--
enable_result_log
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment