Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables: allow calculation of variables for injection #6

Open
g105b opened this issue Jan 12, 2024 · 1 comment
Open

Variables: allow calculation of variables for injection #6

g105b opened this issue Jan 12, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@g105b
Copy link
Owner

g105b commented Jan 12, 2024

Inject variables in the same way as with secrets {{like_this}}, but this feature is to allow calculating variables by executing a script of some sort.

The main use case here is how Spektrix calculates its authentication header. It requires a multi-step cryptography process to generate a time-based auth header for each request. This is impossible to calculate prior to execution, so has to be generated on the fly for each request. I would love to use horsey to test this API!

@g105b g105b self-assigned this Jan 12, 2024
@g105b g105b added the enhancement New feature or request label Jan 12, 2024
@g105b
Copy link
Owner Author

g105b commented Jan 25, 2024

Current thoughts: a docker container on the server to execute a PHP script. You get a syntax-highlighted text editor to edit a single index.php, but a modal for adding Composer dependencies that are automatically made available within the script. This is a bit advanced, but I don't see any other way to get a useful script that can't destroy a server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant