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

[newPlatform] Server-side migration plan #2591

Closed
5 tasks done
Tracked by #2475
jsanchez91 opened this issue Nov 4, 2020 · 3 comments
Closed
5 tasks done
Tracked by #2475

[newPlatform] Server-side migration plan #2591

jsanchez91 opened this issue Nov 4, 2020 · 3 comments
Assignees

Comments

@jsanchez91
Copy link
Contributor

jsanchez91 commented Nov 4, 2020

Parent issue #2475

Description

Move server-side logic to the new platform plugin format

Tasks

@jsanchez91 jsanchez91 added the type/enhancement Enhancement issue label Nov 4, 2020
@jsanchez91 jsanchez91 changed the title Server-side migration plan [newPlatform] Server-side migration plan Nov 4, 2020
@Desvelao
Copy link
Member

Desvelao commented Dec 17, 2020

Changes

ApiInterceptor

Refactorized the ApiInterceptor service:

  • Replaced the class with static methods by functions
  • Simplify logic
  • Now the token of the internal Wazuh API host user is saved in memory instead of wazuh-registry.json file. Created a cache for this.
  • Replaced and adapted the instances of ApiInterceptor by the new functions

@Desvelao
Copy link
Member

Changes

  • Unified to constants (utils/contants.js) all the instances to optimize directory where Wazuh data is being saved
  • The Wazuh app data is now under <KIBANA>/data folder

@Desvelao Desvelao self-assigned this Jan 14, 2021
@Desvelao
Copy link
Member

Changes - Backend cleaning

PR:

  • Removed not used files (.old.js)
  • Renamed .js files to .ts
  • Renamed /util to /common
  • Moved /server/reporting to /server/lib/reporting
  • Moved /server/jobs/queue to /server/start/queue
  • Moved /server/logger to /server/lib/logger
  • Moved files in /util to /server/lib
  • Adapted imports in backend and frontend
  • Created index files for each backend job
  • Removed endpoints:
    • /api/pci/{requirement}
    • /api/gdpr/{requirement}
    • /api/nist/{requirement}
    • /api/tsc/{requirement}
    • /api/hipaa/{requirement}
    • /api/monitoring
    • /api/agents
    • /elastic/index-patterns
    • /reports
  • Renamed endpoint /elastic/esAlerts to /elastic/alerts. Adapted frontend
  • Removed files:
    • /server/lib/elastic-wrapper.ts
    • /server/lib/api-helper.js
    • /server/lib/get-path.ts
    • /server/lib/reporting/tab-description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants