Skip to content

Commit

Permalink
CI/CD integration support
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarpo committed Nov 23, 2018
2 parents 990defc + 905af47 commit b7f95c8
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
8 changes: 6 additions & 2 deletions API/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

sys.path.append('../')

from flask import Flask, render_template
from flask import Flask, render_template, send_from_directory
from flask import Response, make_response
from flask import request
from flask import Flask
Expand Down Expand Up @@ -277,5 +277,9 @@ def main():
thread.daemon = True
thread.start()

main()

@app.route('/robots.txt', methods=['GET'])
def robots():
return send_from_directory(app.static_folder, "robots.txt")

main()
2 changes: 2 additions & 0 deletions Dashboard/static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ REST API penetration testing is complex due to continuous changes in existing AP
- Rate limit
- CORS misconfiguration (including CORS bypass techniques)
- JWT attack
- CRLF detection
- Blind XXE injection

## Roadmap
[https://www.astra-security.info/roadmap/](https://www.astra-security.info/roadmap/)
Expand Down Expand Up @@ -142,3 +144,4 @@ $ python api.py
- Ankur Bhargava
- Harsh Grover
- Flipkart security team
- Pardeep Battu
30 changes: 29 additions & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Installing Astra is very straightforward. You can clone the github repo and use pip to install all the required dependencies.
Installing Astra is very straightforward. You can clone the github repo and use pip to install all the required dependencies. Or you can use docker.

## ** Requirement **
As of now, Astra can be installed only on Linux and MacOS. Please make sure that your system meets the following requirements.
Expand All @@ -25,6 +25,34 @@ $ git clone https://github.com/flipkart-incubator/Astra
$ cd Astra
$ sudo pip install -r requirements.txt
```

## Docker Installation

### Run Mongo Container:

```
$ docker pull mongo
$ docker run --name astra-mongo -d mongo
```

### Installing GUI Docker:

```
$ git clone https://github.com/flipkart-incubator/Astra.git
$ cd Astra
$ docker build -t astra .
$ docker run --rm -it --link astra-mongo:mongo -p 8094:8094 astra
```

### Installing CLI Docker :

```
$ git clone -b docker-cli https://github.com/flipkart-incubator/Astra.git
$ cd Astra
$ docker build -t astra-cli .
$ docker run --rm -it --link astra-mongo:mongo astra-cli
```

Installing and launching Astra:

<iframe width="600" height="400" src="https://www.youtube.com/embed/EzT9jJlaK9k" frameborder="0" allowfullscreen></iframe>
Expand Down

0 comments on commit b7f95c8

Please sign in to comment.