Skip to content

Use a tool like MITM Proxy to observe ArchivesSpace HTTP traffic

License

Notifications You must be signed in to change notification settings

brianzelip/aspace_mitm_proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aspace_mitm_proxy

Use a tool like mitmproxy to observe ArchivesSpace HTTP traffic

  1. Download, install, and run mitmproxy - typically on port 8088.

  2. Add this plugin to ArchivesSpace:

AppConfig[:plugins] = ['aspace_mitm_proxy']
  1. Run the backend, frontend, and / or public devservers with a special environment variable:
ASPACE_PROXY_PORT=8088 ./build/run backend:devserver
  1. Make a curl request to a search endpoint:
curl -H "X-ArchivesSpace-Session:$ASPACE_SESSION" "$ASPACE_BACKEND_URL/repositories/3/search?q=papers&page=1"
  1. Inspect the backend's request to Solr in the mitmproxy console:

image

About

Use a tool like MITM Proxy to observe ArchivesSpace HTTP traffic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%