Skip to content

Commit

Permalink
PoC of the rule upgrade and installation workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
banderror committed Jan 3, 2023
1 parent ae60734 commit 0800399
Show file tree
Hide file tree
Showing 54 changed files with 5,231 additions and 18 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@
"monaco-editor": "^0.24.0",
"monaco-yaml": "3.2.1",
"mustache": "^2.3.2",
"node-diff3": "^3.1.2",
"node-fetch": "^2.6.7",
"node-forge": "^1.3.1",
"nodemailer": "^6.6.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,21 @@
* 2.0.
*/

import { DETECTION_ENGINE_RULES_URL as RULES } from '../../../constants';
import {
DETECTION_ENGINE_RULES_URL as RULES,
INTERNAL_DETECTION_ENGINE_URL as INTERNAL,
} from '../../../constants';

export const PREBUILT_RULES_URL = `${RULES}/prepackaged` as const;
export const PREBUILT_RULES_STATUS_URL = `${RULES}/prepackaged/_status` as const;
const OLD_BASE_URL = `${RULES}/prepackaged` as const;
const NEW_BASE_URL = `${INTERNAL}/prebuilt_rules` as const;

export const PREBUILT_RULES_URL = OLD_BASE_URL;
export const PREBUILT_RULES_STATUS_URL = `${OLD_BASE_URL}/_status` as const;

export const GET_PREBUILT_RULES_STATUS_URL = `${NEW_BASE_URL}/status` as const;
export const REVIEW_RULE_UPGRADE_URL = `${NEW_BASE_URL}/upgrade/_review` as const;
export const PERFORM_RULE_UPGRADE_URL = `${NEW_BASE_URL}/upgrade/_perform` as const;
export const REVIEW_RULE_INSTALLATION_URL = `${NEW_BASE_URL}/installation/_review` as const;
export const PERFORM_RULE_INSTALLATION_URL = `${NEW_BASE_URL}/installation/_perform` as const;

export const INSTALL_TEST_ASSETS_URL = `${NEW_BASE_URL}/_install_test_assets` as const;
Loading

0 comments on commit 0800399

Please sign in to comment.