Fix StarIntel v1 auth/path contract and add live server CI #67
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority:P1
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/quasar!67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/starintel-auth-contract-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Slice
Fix Quasar's StarIntel HTTP client against the current
starintel-servercontract and gate it with a real disposable server in CI.Root causes fixed
POST /auth/loginto turn username/password into an opaquestar_sk_v1_...API key; Quasar was incorrectly sending HTTP Basic auth to v1 routes./api/v1/capabilitiesis public and returns the contract underdata; Quasar was attaching credentials to discovery and retaining the envelope./new/target/:actor; Quasar was trying the nonexistent/api/v1/targetsfirst.Idempotency-Key, which is not in the current server CORS allow-header contract.Failed to fetch.Client behavior
/auth/login, cache the minted session key in memory, validate it through/auth/context, and retry once after a stale login key gets a 401.target_createcapability path.STAR_AUTH_ALLOWED_ORIGINShint when running in a browser.Tests / CI
StarIntel HTTP ContractCI that checks out pinnedstarintel-servercommit8fb297d146e7332fae7e38170b5b49d49530ac53, builds the real Nix server, starts CouchDB/RabbitMQ/Valkey, starts StarIntel with disposable known CI username/password, verifies capabilities + CORS, and runs Quasar against the authenticated server.No production credentials are used or committed; all CI credentials are disposable literals inside the ephemeral job.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.