mudler
18d63f3a8c
Enhance error return from AuthRequest
...
Signed-off-by: mudler <mudler@c3os.io>
2023-01-18 16:08:16 +01:00
mudler
3f28d1857d
Add README
2023-01-18 15:46:16 +01:00
mudler
4f772ffb05
Add Earthfile
2023-01-18 15:46:10 +01:00
mudler
f0fe82f348
Refactor logic, split such as can be re-used for posting data too
2023-01-18 15:46:03 +01:00
mudler
368dfd7874
Add TPM accessors
2023-01-18 15:45:17 +01:00
mudler
372d597dd3
🎨 Rename
...
Signed-off-by: mudler <mudler@c3os.io>
2023-01-16 12:24:36 +01:00
mudler
b7975df14f
⬆️ Bump deps
...
Signed-off-by: mudler <mudler@c3os.io>
2023-01-13 19:10:14 +01:00
Ettore Di Giacinto
cc421fc8c3
Do not invoke logging into Get()
2022-10-13 14:55:23 +00:00
mudler
700d855876
Rename repository
2022-10-07 23:53:23 +02:00
Ettore Di Giacinto
fef86f595b
Allow to pass additional headers on Get()
2022-10-07 21:44:36 +00:00
Francesco Giudici
d273b298fc
tpm: add single step functions to perform attestation
...
Split generation of the token based on the AK and the EK and the
client authentication.
In particular, make the new funcions agnostic on the channel making
use of a io.ReadWriter interface.
This way, the library could be used for the TPM attestation related
tasks, with no assumptions on the channel or the (extra) data not related
to the TPM attestation exchanged between the client and the server.
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2022-08-23 09:56:03 +02:00
Francesco Giudici
baef878366
Merge pull request #3 from fgiudici/status_in_dial_error
...
Include more info in the error msg on Dial() error
2022-08-11 14:12:55 +02:00
Francesco Giudici
30058b554b
Include more info in the error msg on Dial() error
...
Include the HTTP Status CODE: it could help in diagnosing the
connection failure.
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2022-08-10 18:01:12 +02:00
Francesco Giudici
a02dabe8fe
Merge pull request #4 from fgiudici/lint_add_comment
...
Make the linter happy (add a comment)
2022-08-10 18:00:53 +02:00
Francesco Giudici
eab8ac2dca
Make the linter happy (add a comment)
...
exported var EmulatedHostSeed should have comment or be unexported
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2022-08-10 15:48:51 +02:00
Ettore Di Giacinto
89d72d325e
Add EmulatedHostSeed option
...
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-06-17 14:59:01 +02:00
Ettore Di Giacinto
a8efc2a644
Merge pull request #2 from rancher-sandbox/system_fallback
...
Allow to append to system CA
2022-05-12 12:55:46 +02:00
Ettore Di Giacinto
5842702dd4
Allow to append to system CA
...
Fixes #1
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-05-12 11:59:26 +02:00
Ettore Di Giacinto
a7b15ad1f8
Expose DecodePubHash
2022-02-17 14:33:23 +01:00
Ettore Di Giacinto
fb83f16609
Import other required functions
...
Also add a test for Get with the Challenges logic associated too
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-17 12:33:01 +01:00
Ettore Di Giacinto
e5997ada4c
Fixup tests, add testing pipelines and small refactors
...
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-17 12:33:01 +01:00
Ettore Di Giacinto
1ab3e10e4d
Add backends and simulated TPM device
...
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-17 12:33:01 +01:00
Ettore Di Giacinto
c2203f40dd
Import from rancherd
...
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-16 10:53:10 +01:00
Ettore Di Giacinto
56f0a12cc3
First commit
...
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-16 10:50:30 +01:00