mihari 5.4.1 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/frontend/package-lock.json +145 -146
- data/frontend/package.json +8 -8
- data/frontend/src/swagger.yaml +306 -272
- data/lib/mihari/cli/alert.rb +11 -0
- data/lib/mihari/cli/main.rb +6 -1
- data/lib/mihari/commands/alert.rb +42 -0
- data/lib/mihari/commands/rule.rb +2 -2
- data/lib/mihari/commands/search.rb +20 -59
- data/lib/mihari/config.rb +1 -1
- data/lib/mihari/emitters/base.rb +1 -1
- data/lib/mihari/emitters/database.rb +2 -2
- data/lib/mihari/errors.rb +23 -2
- data/lib/mihari/http.rb +7 -1
- data/lib/mihari/schemas/alert.rb +14 -0
- data/lib/mihari/services/alert_proxy.rb +106 -0
- data/lib/mihari/services/alert_runner.rb +22 -0
- data/lib/mihari/services/{rule.rb → rule_proxy.rb} +10 -6
- data/lib/mihari/services/rule_runner.rb +49 -0
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/endpoints/alerts.rb +22 -0
- data/lib/mihari/web/endpoints/rules.rb +8 -8
- data/lib/mihari/web/public/assets/{index-61dc587c.js → index-4d7eda9f.js} +1 -1
- data/lib/mihari/web/public/index.html +1 -1
- data/lib/mihari/web/public/redoc-static.html +29 -27
- data/lib/mihari.rb +6 -1
- data/mihari.gemspec +2 -3
- metadata +14 -23
- data/Steepfile +0 -31
|
@@ -938,7 +938,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
938
938
|
.ace-tm .ace_indent-guide-active {
|
|
939
939
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
940
940
|
}
|
|
941
|
-
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,r,A){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var S=n("../lib/dom");S.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,r,A){"no use strict";var S=n("./lib/lang"),E=n("./lib/net"),T=n("./lib/dom"),c=n("./lib/app_config").AppConfig;A.exports=r=new c;var C={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(l){if(!C.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return C[l]},r.set=function(l,f){if(C.hasOwnProperty(l))C[l]=f;else if(this.setDefaultValue("",l,f)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&T.useStrictCSP(f)},r.all=function(){return S.copyObject(C)},r.$modes={},r.moduleUrl=function(l,f){if(C.$moduleUrls[l])return C.$moduleUrls[l];var R=l.split("/");f=f||R[R.length-2]||"";var x=f=="snippets"?"/":"-",L=R[R.length-1];if(f=="worker"&&x=="-"){var M=new RegExp("^"+f+"[\\-_]|[\\-_]"+f+"$","g");L=L.replace(M,"")}(!L||L==f)&&R.length>1&&(L=R[R.length-2]);var V=C[f+"Path"];return V==null?V=C.basePath:x=="/"&&(f=x=""),V&&V.slice(-1)!="/"&&(V+="/"),V+f+x+L+this.get("suffix")},r.setModuleUrl=function(l,f){return C.$moduleUrls[l]=f};var o=function(l,f){if(l==="ace/theme/textmate"||l==="./theme/textmate")return f(null,n("./theme/textmate"));if(a)return a(l,f);console.error("loader is not configured")},a;r.setLoader=function(l){a=l},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(l,f){var R,x;Array.isArray(l)&&(x=l[0],l=l[1]);var L=function(M){if(M&&!r.$loading[l])return f&&f(M);if(r.$loading[l]||(r.$loading[l]=[]),r.$loading[l].push(f),!(r.$loading[l].length>1)){var V=function(){o(l,function(D,F){F&&(r.$loaded[l]=F),r._emit("load.module",{name:l,module:F});var P=r.$loading[l];r.$loading[l]=null,P.forEach(function(X){X&&X(F)})})};if(!r.get("packaged"))return V();E.loadScript(r.moduleUrl(l,x),V),$()}};if(r.dynamicModules[l])r.dynamicModules[l]().then(function(M){M.default?L(M.default):L(M)});else{try{R=this.$require(l)}catch{}L(R||r.$loaded[l])}},r.$require=function(l){if(typeof A.require=="function"){var f="require";return A[f](l)}},r.setModuleLoader=function(l,f){r.dynamicModules[l]=f};var $=function(){!C.basePath&&!C.workerPath&&!C.modePath&&!C.themePath&&!Object.keys(C.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),$=function(){})};r.version="1.24.
|
|
941
|
+
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,r,A){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var S=n("../lib/dom");S.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,r,A){"no use strict";var S=n("./lib/lang"),E=n("./lib/net"),T=n("./lib/dom"),c=n("./lib/app_config").AppConfig;A.exports=r=new c;var C={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(l){if(!C.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return C[l]},r.set=function(l,f){if(C.hasOwnProperty(l))C[l]=f;else if(this.setDefaultValue("",l,f)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&T.useStrictCSP(f)},r.all=function(){return S.copyObject(C)},r.$modes={},r.moduleUrl=function(l,f){if(C.$moduleUrls[l])return C.$moduleUrls[l];var R=l.split("/");f=f||R[R.length-2]||"";var x=f=="snippets"?"/":"-",L=R[R.length-1];if(f=="worker"&&x=="-"){var M=new RegExp("^"+f+"[\\-_]|[\\-_]"+f+"$","g");L=L.replace(M,"")}(!L||L==f)&&R.length>1&&(L=R[R.length-2]);var V=C[f+"Path"];return V==null?V=C.basePath:x=="/"&&(f=x=""),V&&V.slice(-1)!="/"&&(V+="/"),V+f+x+L+this.get("suffix")},r.setModuleUrl=function(l,f){return C.$moduleUrls[l]=f};var o=function(l,f){if(l==="ace/theme/textmate"||l==="./theme/textmate")return f(null,n("./theme/textmate"));if(a)return a(l,f);console.error("loader is not configured")},a;r.setLoader=function(l){a=l},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(l,f){var R,x;Array.isArray(l)&&(x=l[0],l=l[1]);var L=function(M){if(M&&!r.$loading[l])return f&&f(M);if(r.$loading[l]||(r.$loading[l]=[]),r.$loading[l].push(f),!(r.$loading[l].length>1)){var V=function(){o(l,function(D,F){F&&(r.$loaded[l]=F),r._emit("load.module",{name:l,module:F});var P=r.$loading[l];r.$loading[l]=null,P.forEach(function(X){X&&X(F)})})};if(!r.get("packaged"))return V();E.loadScript(r.moduleUrl(l,x),V),$()}};if(r.dynamicModules[l])r.dynamicModules[l]().then(function(M){M.default?L(M.default):L(M)});else{try{R=this.$require(l)}catch{}L(R||r.$loaded[l])}},r.$require=function(l){if(typeof A.require=="function"){var f="require";return A[f](l)}},r.setModuleLoader=function(l,f){r.dynamicModules[l]=f};var $=function(){!C.basePath&&!C.workerPath&&!C.modePath&&!C.themePath&&!Object.keys(C.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),$=function(){})};r.version="1.24.1"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,A){n("./lib/fixoldbrowsers");var S=n("./config");S.setLoader(function(C,o){n([C],function(a){o(null,a)})});var E=function(){return this||typeof window<"u"&&window}();A.exports=function(C){S.init=T,S.$require=n,C.require=n},T(!0);function T(C){if(!(!E||!E.document)){S.set("packaged",C||n.packaged||A.packaged||E.define&&(void 0).packaged);var o={},a="",$=document.currentScript||document._currentScript,l=$&&$.ownerDocument||document;$&&$.src&&(a=$.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var f=l.getElementsByTagName("script"),R=0;R<f.length;R++){var x=f[R],L=x.src||x.getAttribute("src");if(L){for(var M=x.attributes,V=0,D=M.length;V<D;V++){var F=M[V];F.name.indexOf("data-ace-")===0&&(o[c(F.name.replace(/^data-ace-/,""))]=F.value)}var P=L.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);P&&(a=P[1])}}a&&(o.base=o.base||a,o.packaged=!0),o.basePath=o.base,o.workerPath=o.workerPath||o.base,o.modePath=o.modePath||o.base,o.themePath=o.themePath||o.base,delete o.base;for(var X in o)typeof o[X]<"u"&&S.set(X,o[X])}}function c(C){return C.replace(/-(.)/g,function(o,a){return a.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,r,A){var S=function(T,c){return T.row-c.row||T.column-c.column},E=function(){function T(c,C,o,a){this.start={row:c,column:C},this.end={row:o,column:a}}return T.prototype.isEqual=function(c){return this.start.row===c.start.row&&this.end.row===c.end.row&&this.start.column===c.start.column&&this.end.column===c.end.column},T.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},T.prototype.contains=function(c,C){return this.compare(c,C)==0},T.prototype.compareRange=function(c){var C,o=c.end,a=c.start;return C=this.compare(o.row,o.column),C==1?(C=this.compare(a.row,a.column),C==1?2:C==0?1:0):C==-1?-2:(C=this.compare(a.row,a.column),C==-1?-1:C==1?42:0)},T.prototype.comparePoint=function(c){return this.compare(c.row,c.column)},T.prototype.containsRange=function(c){return this.comparePoint(c.start)==0&&this.comparePoint(c.end)==0},T.prototype.intersects=function(c){var C=this.compareRange(c);return C==-1||C==0||C==1},T.prototype.isEnd=function(c,C){return this.end.row==c&&this.end.column==C},T.prototype.isStart=function(c,C){return this.start.row==c&&this.start.column==C},T.prototype.setStart=function(c,C){typeof c=="object"?(this.start.column=c.column,this.start.row=c.row):(this.start.row=c,this.start.column=C)},T.prototype.setEnd=function(c,C){typeof c=="object"?(this.end.column=c.column,this.end.row=c.row):(this.end.row=c,this.end.column=C)},T.prototype.inside=function(c,C){return this.compare(c,C)==0?!(this.isEnd(c,C)||this.isStart(c,C)):!1},T.prototype.insideStart=function(c,C){return this.compare(c,C)==0?!this.isEnd(c,C):!1},T.prototype.insideEnd=function(c,C){return this.compare(c,C)==0?!this.isStart(c,C):!1},T.prototype.compare=function(c,C){return!this.isMultiLine()&&c===this.start.row?C<this.start.column?-1:C>this.end.column?1:0:c<this.start.row?-1:c>this.end.row?1:this.start.row===c?C>=this.start.column?0:-1:this.end.row===c?C<=this.end.column?0:1:0},T.prototype.compareStart=function(c,C){return this.start.row==c&&this.start.column==C?-1:this.compare(c,C)},T.prototype.compareEnd=function(c,C){return this.end.row==c&&this.end.column==C?1:this.compare(c,C)},T.prototype.compareInside=function(c,C){return this.end.row==c&&this.end.column==C?1:this.start.row==c&&this.start.column==C?-1:this.compare(c,C)},T.prototype.clipRows=function(c,C){if(this.end.row>C)var o={row:C+1,column:0};else if(this.end.row<c)var o={row:c,column:0};if(this.start.row>C)var a={row:C+1,column:0};else if(this.start.row<c)var a={row:c,column:0};return T.fromPoints(a||this.start,o||this.end)},T.prototype.extend=function(c,C){var o=this.compare(c,C);if(o==0)return this;if(o==-1)var a={row:c,column:C};else var $={row:c,column:C};return T.fromPoints(a||this.start,$||this.end)},T.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},T.prototype.isMultiLine=function(){return this.start.row!==this.end.row},T.prototype.clone=function(){return T.fromPoints(this.start,this.end)},T.prototype.collapseRows=function(){return this.end.column==0?new T(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new T(this.start.row,0,this.end.row,0)},T.prototype.toScreenRange=function(c){var C=c.documentToScreenPosition(this.start),o=c.documentToScreenPosition(this.end);return new T(C.row,C.column,o.row,o.column)},T.prototype.moveBy=function(c,C){this.start.row+=c,this.start.column+=C,this.end.row+=c,this.end.column+=C},T}();E.fromPoints=function(T,c){return new E(T.row,T.column,c.row,c.column)},E.comparePoints=S,E.comparePoints=function(T,c){return T.row-c.row||T.column-c.column},r.Range=E}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,A){/*! @license
|
|
942
942
|
==========================================================================
|
|
943
943
|
SproutCore -- JavaScript Application Framework
|
|
944
944
|
copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
7
7
|
<link rel="icon" href="/favicon.ico" />
|
|
8
8
|
<title>Mihari</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-4d7eda9f.js"></script>
|
|
10
10
|
<link rel="stylesheet" href="/assets/index-33165282.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|