[consfigurator] binary (non utf8) secrets

Sean Whitton spwhitton at spwhitton.name
Sun Apr 13 04:11:29 BST 2025


Hello David,

It seems like the problem could be either in how the data gets written
to the secrets file; how it gets read from there; or how the deployment
is trying to send the data over to the remote side.

Based on the traceback I would think that it's the third one, but let's
try to eliminate the other two.

Looking inside your secrets file, how has Lisp decided to represent the
binary data?  If you copy and paste that into the repl inside a call to
READ-FROM-STRING, does it produce an appropriate Lisp representation of
the binary string?

If that's fine I would suggest trying to do

    (funcall (%get-data "_secrets" path))

at the REPL and see whether it successfully extracts the item of data as
an instance of STRING-DATA.

Though ... STRING-DATA suggests that valid UTF-8 is required.  FILE-DATA
isn't appropriate for DATA.PGP, so perhaps we need a new OCTETS-DATA.

Let me know if these ideas yield some more information.

-- 
Sean Whitton



More information about the sgo-software-discuss mailing list