BrooksCunningham / http-me-rust

http-me-rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test, build, and deploy

Website for HTTP testing

https://http-me.edgecompute.app/

Demo for DevSecOps

Using rust to demo DevSecOps.

Check out the Github Actions. The Github Actions are defined in the folder .github/workflows/

Sending test requests

Use curl to send requests to https://http-me.edgecompute.app

customize the landing page with Swagger UI using Fastly KV Store

creates the kv store

fastly kv-store create --name=assets_store

get the kv store id that was just created

fastly kv-store list | grep assets_store -a1 | grep ID

add everything in the directory for static assets in the store-id

fastly kv-store-entry create --dir ./static-assets/ --store-id=STORE-ID

create a link between the kv store and the service

fastly resource-link create --version=latest --autoclone --resource-id=STORE-ID

activate the latest version

fastly service-version activate --version=latest

https://developer.fastly.com/reference/cli/kv-store/ https://developer.fastly.com/reference/cli/kv-store-entry/

How to send requests through the CLI

Return a specific status code

curl -i 'https://http-me.edgecompute.app/status/302'

Return data sent to the server

curl -i 'https://http-me.edgecompute.app/anything/myquery?foo=bar'

return a custom status code at an arbitrary path

curl -i 'https://http-me.edgecompute.app/any/path/myquery?foo=bar' -H 'endpoint:status=302'

Security issues

Please see SECURITY.md for guidance on reporting security-related issues.

About

http-me-rust


Languages

Language:HTML 67.5%Language:Rust 26.5%Language:JavaScript 5.3%Language:CSS 0.7%