Socket
Socket
Sign inDemoInstall

fastly-search

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastly-search

A utility for ingesting & querying Fastly accounts with ElasticSearch.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

A utility for indexing & querying a Fastly account with ElasticSearch for quick, terse & granular searches.

Usage

To use this, you need a Fastly API key & an ElasticSearch 7 compatible server.

$ export ELASTICSEARCH_URL={Your Elasticsearch DSN goes here}
$ export FASTLY_API_KEY={Your Fastly API key goes here}
$ npx fastly-search

Local Development

Local development depends on Docker, and ships with a Kibana UI for inspecting local results. You can get started with the below commands:

$ docker-compose up -d
$ export ELASTICSEARCH_URL=http://$(docker port fastly-search-elasticsearch 9200)/
$ export FASTLY_API_KEY={Your Fastly API key goes here}
$ open http://$(docker port fastly-search-kibana 5601)/app/discover
$ npm run start

Running in Production

TBC, but in theory this can write to any ElasticSearch 7 host.

Example Queries

All active services which have do not have WAF enabled:

active:true AND NOT wafs:*

All services with an S3 backend

backends.address:s3.amazonaws.com

All services which manipulate vcl_hash with custom VCL

vcls.content:"sub vcl_hash"

FAQs

Package last updated on 14 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc