Skip to content

proper way to acquire a token automatically #1085

Answered by Skn0tt
boredland asked this question in Q&A
Discussion options

You must be logged in to vote

The specific semantics of acquiring a QUIRREL_TOKEN is indeed a leftover from multi-tenacy. But also without multi-tenacy, QUIRREL_TOKEN is required for authentication between Quirrel server and your application, since at least the application needs to be reachable via the public internet.

The correct combination of QUIRREL_BASE_URL and QUIRREL_ENCRYPTION_SECRET is indeed not enough, since QUIRREL_ENCRYPTION_SECRET is only for client-side encryption of job payloads. If there was no added security, then a malicious actor that discovered QUIRREL_BASE_URL (which is easy to discover, given it's the url of your application) would be able to e.g. delete all queued jobs.

The intended way of acqu…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@boredland
Comment options

@Skn0tt
Comment options

@boredland
Comment options

@Skn0tt
Comment options

@boredland
Comment options

Answer selected by boredland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants