Skip to content
A platform for creating, editing and sharing JSON objects.
HTML Python Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
bin
instance
migrations
mosp
tests
.gitignore
AUTHORS.md
CHANGELOG.md Updated CHANGELOG. Feb 3, 2020
COPYING
Procfile
README.md
app.json
manager.py
package-lock.json
package.json
poetry.lock
pyproject.toml
runserver.py Fixed imports. Dec 11, 2019
runtime.txt
webserver.wsgi.example

README.md

MONARC Objects Sharing Platform

MOSP logo

Latest release License Contributors Stars Workflow

Presentation

MOSP is a platform for creating, editing and sharing validated JSON objects of any type.

The goal is to gather security related JSON objects, in the first place aimed to be used with MONARC.

You can use any available JSON schemas in order to create new JSON objects via a web form dynamically generated and based on the selected schema.
It is possible to interact with MOSP programmatically thanks to its API.
Some JSON objects can be exported to a MISP galaxy.

As example you can have a look at official instance operated by CASES and more particularly the objects shared by the MONARC project.

Installation

There are different ways to deploy MOSP.

Clone the repository and use a Python virtualenv

$ git clone https://github.com/CASES-LU/MOSP.git
$ cd MOSP/
$ npm install
$ poetry install
$ poetry shell
$ python manager.py db_create
$ python manager.py db_init
$ python manager.py import_licenses_from_spdx
$ python manager.py create_admin <username> <password>
$ pybabel compile -d mosp/web/translations
$ python runserver.py

Deploy to Heroku

Manually with some simple commands:

$ git clone https://github.com/CASES-LU/MOSP.git
$ cd MOSP/
$ heroku create --region eu <name-of-your-instance>
$ heroku addons:add heroku-postgresql:hobby-dev
$ heroku config:set APPLICATION_SETTINGS='heroku.cfg'
$ heroku buildpacks:add --index 1 heroku/python
$ heroku buildpacks:add --index 2 https://github.com/heroku/heroku-buildpack-nodejs
$ git push heroku master
$ heroku run init
$ heroku run python manager.py import_licenses_from_spdx
$ heroku ps:scale web=1

or simply with this button:

Deploy to Heroku

The default credentials are admin for the login and password for the password.

If you want to create other users programmatically:

$ heroku run python manager.py create_user <login> <password>
$ heroku run python manager.py create_admin <login> <password>

Contributing

Contributions are welcome and there are many ways to participate to the project. You can contribute to MOSP by:

  • reporting bugs;
  • suggesting enhancements or new features;
  • improving the documentation;
  • creating new objects on our instance.

Feel free to fork the code, play with it, make some patches and send us pull requests.

There is one main branch: what we consider as stable with frequent updates as hot-fixes.

Features are developed in separated branches and then regularly merged into the master stable branch.

Documentation

A documentation is available on the MONARC website.

License

This software is licensed under GNU Affero General Public License version 3

  • Copyright (C) 2018-2020 Cédric Bonhomme
  • Copyright (C) 2018-2020 SMILE gie securitymadein.lu

For more information, the list of authors and contributors is available.

You can’t perform that action at this time.