Introduction
Problem
Receiving "illegal base64 data at input byte X" error when reaching to "/sys/storage/raft/snapshot-auto/status/:name" endpoint for Azure blob type snapshot.
The character "X" in the error indicates the byte number for example - byte 6.
Prerequisites (if applicable)
- Vault versions that support the auto-snapshot feature
Cause
-
The value of azure_account_key parameter of the /sys/storage/raft/snapshot-auto/config/:name endpoint contains illegal character at the specified byte number. For example, if the literal error is - "illegal base64 data at input byte 6", the illegal character is located in position number 7 in the string inputted for the azure_account_key parameter. The counting starts from 0!
Overview of possible solutions (if applicable)
Solutions:
- Verify the correctness of the azure_account_key parameter used for configuring the auto-snapshot feature.
- Verify the correctness of the azure_account_name parameter as well.
Outcome
After correcting the value of the azure_account_key parameter, the error should not appear when requesting "/sys/storage/raft/snapshot-auto/status/:name" endpoint.