Escape-Technologies / repeater

A proxy client to scan internal APIs with Escape
Apache License 2.0
1 stars 2 forks source link

Add a local credential storage #16

Open QuentinN42 opened 10 hours ago

QuentinN42 commented 10 hours ago

Allow the repeater to add some tokens from a local storage to some requests.

{
  "global_replace": {
    "<url regex matcher>": {
      "k1": "v1",
      "k2": "v2"
    } 
  }
}

On escape platform

user:
  - name: user1
    headers:
      - name: test
        value: k1 k2

Will become

POST ... HTTP/1.0
test: v1 v2
QuentinN42 commented 10 hours ago

Add a new env var ESCAPE_LOCAL_CREDENTIALS_BUCKET pointing to the json file.