Coder Social home page Coder Social logo

misp-frontend's Introduction

MISP-frontend

Setup

Install

npm install

MISP setup

Start instance

npm run start:misp Instance will be running at: https://localhost

generate your key here:

https://localhost/auth_keys/index

copy the template.env file to .env and replace the PUBLIC_MISP_KEY with your key

Update cors settings:

https://localhost/servers/serverSettings/Security

  • search for Security.allow_cors and set to true. See: MISP/MISP#4157
  • also search for Security.cors_origins and set to * for testing purposes

Multiple users / user roles

currently MISP has no api endpoint for /users/me => so we can not get the current user id, settings or role. The Api should update this. For now we have a workaround in api/users/me that will get the userId from the auth_keys and load the userData with admin privileges.

Therefore you can update the PUBLIC_MISP_KEY to one with lower permissions but you have to set the SECRET_MISP_KEY_ADMIN to the key with full permissions.

For testing with admin permissions just set both vars to the key generated in the previous step.

Develope

Start misp instance to use as api

npm run start:misp

Start sveltekit

npm run dev

the frontend will run at: http://localhost:5173/

Testing

Unit tests (vitest)

npm run test:unit

Component tests (cyprss)

npm run test:open

integration tests (cyprss)

npm run test:open

Storybook

Run

npm run story:dev

Build

npm run story:build

misp-frontend's People

Contributors

morstis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.