Open antifuchs opened 6 months ago
Adding a couple files to highlight the differences in the HTTP requests between a working cURL based script and hoopsnake. I'm using OAuth creds that have device write permissions on a parent tag,
"tagOwners": {
"tag:workloads": ["joshpearce@github"],
"tag:hoopsnake-init": ["tag:workloads"],
},
Here's a capture from hoopsnake during boot, where it works. ts-oauth-hoopsnake-boot-good.txt
Here's a tricky bug: When you assign a tag "tag:hoopsnake" to your OAuth2 client, you can not mint authkeys for that tag, you must use a child tag. Everything else fails with
requested tags [tag:hoopsnake] are invalid or not permitted
.As mentioned, you have to use a child tag.
Say you have this tag structure:
Then you can only request authkeys for
tag:hoopsnake-selfhosted
ortag:hoopsnake-remote
(or both!), but no combination of the two withtag:hoopsnake
in it.