[MDEV-28276] Hashicorp: Document kv version=2 as mandatory and detect error if possible Created: 2022-04-10 Updated: 2023-11-27 Resolved: 2022-05-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation, Encryption, Plugins |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.9.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Julius Goryavsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Cloned | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Description |
|
Hashicorp plugin can also work with key-value version=2. It is apparently intentional, in order to support key versioning, but it is not obvious, and the errors which occur upon an attempt to use version=1 are generic "Key not found", which is not helpful at all. It would be good if the plugin was able to detect the incompatible format and throw a meaningful error. In any case, this limitation (or requirement) must be documented very explicitly. |
| Comments |
| Comment by Elena Stepanova [ 2022-05-06 ] | |||||||||||||
|
The error is now detected and a meaningful error message is returned.
If the plugin is installed at runtime, the first error is returned to the client, while the second and third line from above are still written to the log.
I'm keeping this JIRA entry open for documentation purposes. There is an effect which may in theory be unexpected if somebody bothers to pay attention to it. However, I don't see it as a problem, in fact it allows to fix configuration and then install the plugin at runtime. Nor am I sure this particular point deserves a special mention in documentation, I'll leave it to documentation experts to decide. | |||||||||||||
| Comment by Julius Goryavsky [ 2022-05-10 ] | |||||||||||||
|
Fixed, https://github.com/MariaDB/server/commit/3d1f765066b561f9552b55ed9ba41b66815786f7 |