Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution] PoC of the rule upgrade and installation workflows #144060

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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