You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was previously reported in #3992 but is still relevant (can still be reproduced).
What happened:
external-dns pod was crashing because of "the AES Encryption key must have a length of 32 bytes" after following the documentation, using a url-base64 encoding for the key.
Instead, using a 32 character-long string "works", meaning that the key is successfully taken by external-dns but it then fails with other errors related to old TXT records not being encrypted.
Moreover, 32 characters are not 32 bytes of entropy, because people will likely use only alphanumerical characters. As such, it should be discouraged to just update the documentation to use 32 characters.
What you expected to happen:
external-dns should pick the key, decode it using base64 and use it to encrypt/decrypt TXT records
How to reproduce it (as minimally and precisely as possible):
Use the following arguments, which should be valid according to the documentation but actually prevent external-dns from starting:
A string is a read-only, immutable, slice of arbitrary bytes at the lowest level.
By arbitrary, we mean that the bytes can be of any format. When a character value is stored in a string, its byte-at-a-time representation is stored. Go does not know or require that the bytes represent any particular encoding e.g. ASCII, UTF-8, UTF-32 etc- they are just bytes.
So in example that is not working ZPitL0NGVQBZbTD6DwXJzD8RiStSazzYXQsdUowLURY= there are 44 bytes
In second working example 01234567890123456789012345678901 there are only 32 bytes, which is correct. 32 bytes x 8 = 256bits, which is a requirement for AES-256
But agree technically there is a bug. According to documentation the aes key is The 32-byte AES-256-GCM encryption key must be specified in URL-safe base64 form
This was previously reported in #3992 but is still relevant (can still be reproduced).
What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Use the following arguments, which should be valid according to the documentation but actually prevent external-dns from starting:
On the other hand, this configuration works:
Anything else we need to know?:
Environment:
external-dns --version
): v0.15.1cc @bennesp @lnhrdt from the previous issue
The text was updated successfully, but these errors were encountered: