Skip to content
/ MOSP Public
forked from NC3-LU/MOSP

A platform for creating, editing and sharing JSON objects.

License

Notifications You must be signed in to change notification settings

zeke13210/MOSP

 
 

Repository files navigation

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-2019 Cédric Bonhomme
  • Copyright (C) 2018-2019 SMILE gie securitymadein.lu

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

About

A platform for creating, editing and sharing JSON objects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 52.3%
  • Python 45.9%
  • Other 1.8%