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

Translation Implementation using i18n #5084

Open
wants to merge 79 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
74fd2ff
Wazuh plugin support translation from files.
muhammad-Haris-1 Dec 26, 2022
e496c3d
translation fixes
asadsaleem1 Dec 26, 2022
73ecacf
translate fixes
asadsaleem1 Dec 26, 2022
7ecc1c9
Translations completed in welcome components
muhammad-Haris-1 Dec 26, 2022
e61a3da
common folder done
asadsaleem1 Dec 27, 2022
0b3eb26
components 2files done
asadsaleem1 Dec 27, 2022
5ce806e
table file fixes done
asadsaleem1 Dec 27, 2022
6a34044
Translation complete in add modules data
asadsaleem1 Dec 28, 2022
fa6eec1
add missing translations
muhammad-Haris-1 Dec 28, 2022
ee36b6d
addmodules-data-folder-doone
asadsaleem1 Dec 29, 2022
3510f62
components-agents folder done
asadsaleem1 Dec 30, 2022
cf93a10
Templates translation completed
muhammad-Haris-1 Dec 30, 2022
39f01e0
Merge branch 'translation' of https://github.com/muhammad-Haris-1/waz…
muhammad-Haris-1 Dec 30, 2022
879dbbd
Utils section completed
muhammad-Haris-1 Jan 2, 2023
ce267a2
more folder done
asadsaleem1 Dec 30, 2022
4e8022d
more file done
asadsaleem1 Jan 2, 2023
adf1d0f
translations bug remove
muhammad-Haris-1 Jan 3, 2023
3e8f4cb
components folder complete done
asadsaleem1 Jan 3, 2023
14ef13e
Merge branch 'translation' of https://github.com/muhammad-Haris-1/waz…
muhammad-Haris-1 Jan 3, 2023
2d1243f
translation complete
asadsaleem1 Jan 4, 2023
f45ecee
Translation fixes.
muhammad-Haris-1 Jan 4, 2023
00f41f7
Translation in compliance requirement
muhammad-Haris-1 Jan 5, 2023
8a89a44
files fixing
asadsaleem1 Jan 5, 2023
50d7364
files fixing
asadsaleem1 Jan 5, 2023
7eab5bf
files fixing
muhammad-Haris-1 Jan 5, 2023
b2def3c
Translation missing in controllers folder
muhammad-Haris-1 Jan 5, 2023
10a89d6
files fixing
asadsaleem1 Jan 5, 2023
3cadd7d
Import i18n in missing files
muhammad-Haris-1 Jan 6, 2023
282bc91
files fixing
asadsaleem1 Jan 6, 2023
f4d5e2d
files fixing
asadsaleem1 Jan 6, 2023
7abe4d6
files fixing
asadsaleem1 Jan 6, 2023
c75a3ec
Wazuh module added as namespace
muhammad-Haris-1 Jan 6, 2023
8c66030
Conflicts resolve
muhammad-Haris-1 Jan 6, 2023
fd2e67d
Welcome component files added
muhammad-Haris-1 Jan 6, 2023
f20cca1
Typo fixed.
muhammad-Haris-1 Jan 6, 2023
563cf15
i18n dependency added.
muhammad-Haris-1 Jan 9, 2023
cf5892a
Add wazuh in missing files
muhammad-Haris-1 Jan 10, 2023
9e37ee0
fixing
asadsaleem1 Jan 10, 2023
39422fe
fixing files
asadsaleem1 Jan 10, 2023
36e5ef6
fixing files
asadsaleem1 Jan 10, 2023
a635bf2
i18n bug fix
muhammad-Haris-1 Jan 11, 2023
07873a0
fixing files
asadsaleem1 Jan 11, 2023
5268cfa
fixing feedback
asadsaleem1 Jan 12, 2023
4a426c8
fixing feedback
asadsaleem1 Jan 12, 2023
baba2a1
Fix missing translations
muhammad-Haris-1 Jan 13, 2023
e3ac853
Add wazuh as namespace
muhammad-Haris-1 Jan 13, 2023
6bcf83b
fixing files
asadsaleem1 Jan 13, 2023
f8b29c8
fixing files
asadsaleem1 Jan 13, 2023
cf0d466
fixing files
asadsaleem1 Jan 13, 2023
f62c66e
wazuh menu duplicates removed
muhammad-Haris-1 Jan 13, 2023
ae41895
recheching files
asadsaleem1 Jan 16, 2023
fc5623d
recheching files
asadsaleem1 Jan 16, 2023
c790a01
recheching files
asadsaleem1 Jan 16, 2023
b9b88c2
recheching files
asadsaleem1 Jan 17, 2023
f74c4ba
Fixes in translation
muhammad-Haris-1 Jan 17, 2023
274f6b5
recheching files
asadsaleem1 Jan 17, 2023
699e158
Merge branch 'translation' of https://github.com/muhammad-Haris-1/waz…
muhammad-Haris-1 Jan 17, 2023
cc406bd
Transaltion fixes in controller
muhammad-Haris-1 Jan 17, 2023
d727c71
Remove duplicates
muhammad-Haris-1 Jan 17, 2023
ae26a45
recheching files
asadsaleem1 Jan 17, 2023
95e8fea
Translation fixex
muhammad-Haris-1 Jan 18, 2023
2e866a1
recheching files
asadsaleem1 Jan 18, 2023
da5e8d2
recheching files
asadsaleem1 Jan 18, 2023
7f2a409
recheching files
asadsaleem1 Jan 18, 2023
87c2a15
recheching files
asadsaleem1 Jan 18, 2023
37cbf7e
Translation fixes.
muhammad-Haris-1 Jan 19, 2023
b4b8de9
Kibana wazuh translation keys fixes
muhammad-Haris-1 Jan 19, 2023
31e256f
recheching files
asadsaleem1 Jan 19, 2023
fc20d19
Add missing translations
muhammad-Haris-1 Jan 19, 2023
01eefb2
recheching files
asadsaleem1 Jan 24, 2023
5cd6fc5
recheching files
asadsaleem1 Jan 24, 2023
6385663
Feedback fixes
muhammad-Haris-1 Jan 24, 2023
a4762d0
recheching files
asadsaleem1 Jan 25, 2023
fffe0a5
Fixes in settings and modules
muhammad-Haris-1 Jan 25, 2023
bcd5e6e
Remove unnecessary translations from wazuh menu
muhammad-Haris-1 Jan 31, 2023
1de5e0c
Configuration fixes in progress
muhammad-Haris-1 Feb 3, 2023
a34783e
feedback-work
asadsaleem1 Feb 3, 2023
f58b29b
Translation completed in configurations.
muhammad-Haris-1 Feb 3, 2023
f2a1529
Fixed configuration translations
zaheeraws Feb 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
118 changes: 98 additions & 20 deletions common/compliance-requirements/gdpr-requirements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,103 @@
*
* Find more information about this on the LICENSE file.
*/
import { i18n } from '@kbn/i18n';

const sharingProtection = i18n.translate(
'wazuh.complianceRequirements.gdpr.sharingProtection',
{
defaultMessage:
'Ensure the ongoing confidentiality, integrity, availability and resilience of processing systems and services, verifying its modifications, accesses, locations and guarantee the safety of them.File sharing protection and file sharing technologies that meet the requirements of data protection.',
},
);

const restrictPersonalDataSharing = i18n.translate(
'wazuh.complianceRequirements.gdpr.restrictPersonalDataSharing',
{
defaultMessage: ' Restrict the processing of personal data temporarily.',
},
);

const personalInfoErase = i18n.translate(
'wazuh.complianceRequirements.gdpr.personalInfoErase',
{
defaultMessage: ' Permanently erase personal information of a subject.',
},
);

const dataProtectionPolicy = i18n.translate(
'wazuh.complianceRequirements.gdpr.dataProtectionPolicy',
{
defaultMessage:
'Be able to demonstrate compliance with the GDPR by complying with data protection policies.',
},
);

const ensureDatProtection = i18n.translate(
'wazuh.complianceRequirements.gdpr.ensureDatProtection',
{
defaultMessage:
' Ensure data protection during processing, through technical and organizational measures.',
},
);

const dataLocation = i18n.translate(
'wazuh.complianceRequirements.gdpr.dataLocation',
{
defaultMessage:
'It is necessary to keep all processing activities documented, to carry out an inventory of data from beginning to end and an audit, in order to know all the places where personal and sensitive data are located, processed, stored or transmitted.',
},
);

const dataLossPrevention = i18n.translate(
'wazuh.complianceRequirements.gdpr.dataLossPrevention',
{
defaultMessage:
'Data Loss Prevention (DLP) capabilities to examine data flows and identify personal data that is not subject to adequate safeguards or authorizations. DLP tools can block or quarantine such data flows. Classify current data appropriately to determine specific categories of data that will be subject to the GDPR.',
},
);

const accountManagementTools = i18n.translate(
'wazuh.complianceRequirements.gdpr.accountManagementTools',
{
defaultMessage:
'Account management tools that closely monitor actions taken by standard administrators and users who use standard or privileged account credentials are required to control access to data. ',
},
);

const supervisorAuthority = i18n.translate(
'wazuh.complianceRequirements.gdpr.supervisorAuthority',
{
defaultMessage:
' Notify the supervisory authority of a violation of the data in 72 hours and in certain cases, the injured parties.',
},
);

const technicalMeasures = i18n.translate(
'wazuh.complianceRequirements.gdpr.technicalMeasures',
{
defaultMessage:
'Perform a data protection impact evaluation for high risk processes. Implement appropriate technical measures to safeguard the rights and freedoms of data subjects, informed by an assessment of the risks to these rights and freedoms.',
},
);

const employeeAlert = i18n.translate(
'wazuh.complianceRequirements.gdpr.employeeAlert',
{
defaultMessage:
'Capabilities for identification, blocking and forensic investigation of data breaches by malicious actors, through compromised credentials, unauthorized network access, persistent threats and verification of the correct operation of all components.Network perimeter and endpoint security tools to prevent unauthorized access to the network, prevent the entry of unwanted data types and malicious threats. Anti-malware and anti-ransomware to prevent malware and ransomware threats from entering your devices.A behavioral analysis that uses machine intelligence to identify people who do anomalous things on the network, in order to give early visibility and alert employees who start to become corrupt.',
},
);
export const gdprRequirementsFile = {
'II_5.1.f':
'Ensure the ongoing confidentiality, integrity, availability and resilience of processing systems and services, verifying its modifications, accesses, locations and guarantee the safety of them.File sharing protection and file sharing technologies that meet the requirements of data protection.',
'III_14.2.c': ' Restrict the processing of personal data temporarily.',
III_17: ' Permanently erase personal information of a subject.',
'IV_24.2':
'Be able to demonstrate compliance with the GDPR by complying with data protection policies.',
IV_28:
' Ensure data protection during processing, through technical and organizational measures.',
'IV_30.1.g':
'It is necessary to keep all processing activities documented, to carry out an inventory of data from beginning to end and an audit, in order to know all the places where personal and sensitive data are located, processed, stored or transmitted.',
'IV_32.1.c':
'Data Loss Prevention (DLP) capabilities to examine data flows and identify personal data that is not subject to adequate safeguards or authorizations. DLP tools can block or quarantine such data flows. Classify current data appropriately to determine specific categories of data that will be subject to the GDPR.',
'IV_32.2':
'Account management tools that closely monitor actions taken by standard administrators and users who use standard or privileged account credentials are required to control access to data. ',
IV_33:
' Notify the supervisory authority of a violation of the data in 72 hours and in certain cases, the injured parties.',
'IV_35.1':
'Perform a data protection impact evaluation for high risk processes. Implement appropriate technical measures to safeguard the rights and freedoms of data subjects, informed by an assessment of the risks to these rights and freedoms.',
'IV_35.7.d':
'Capabilities for identification, blocking and forensic investigation of data breaches by malicious actors, through compromised credentials, unauthorized network access, persistent threats and verification of the correct operation of all components.Network perimeter and endpoint security tools to prevent unauthorized access to the network, prevent the entry of unwanted data types and malicious threats. Anti-malware and anti-ransomware to prevent malware and ransomware threats from entering your devices.A behavioral analysis that uses machine intelligence to identify people who do anomalous things on the network, in order to give early visibility and alert employees who start to become corrupt.'
'II_5.1.f': sharingProtection,
'III_14.2.c': restrictPersonalDataSharing,
III_17: personalInfoErase,
'IV_24.2': dataProtectionPolicy,
IV_28: ensureDatProtection,
'IV_30.1.g': dataLocation,
'IV_32.1.c': dataLossPrevention,
'IV_32.2': accountManagementTools,
IV_33: supervisorAuthority,
'IV_35.1': technicalMeasures,
'IV_35.7.d': employeeAlert,
};
105 changes: 85 additions & 20 deletions common/compliance-requirements/hipaa-requirements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,94 @@
*
* Find more information about this on the LICENSE file.
*/
export const hipaaRequirementsFile = {
'164.312.a.1':
import { i18n } from '@kbn/i18n'

const technicalPolicies = i18n.translate('wazuh.complianceRequirements.hipaa.technicalPolicy', {
defaultMessage:
'Implement technical policies and procedures for electronic information systems that maintain electronic protected health information to allow access only to those persons or software programs that have access.',
'164.312.a.2.I':
});
const uniqueName = i18n.translate('wazuh.complianceRequirements.hipaa.uniqueName', {
defaultMessage:
'Assign a unique name and/or number for identifying and tracking user identity.',
'164.312.a.2.II':
});
const healthInformation = i18n.translate('wazuh.complianceRequirements.hipaa.healthInformation', {
defaultMessage:
'Establish (and implement as needed) procedures for obtaining necessary electronic protected health information during an emergency.',
'164.312.a.2.III':
'Implement electronic procedures that terminate an electronic session after a predetermined time of inactivity.',
'164.312.a.2.IV':
'Implement a mechanism to encrypt and decrypt electronic protected health information.',
'164.312.b':
'Implement hardware, software, and/or procedural mechanisms that record and examine activity in information systems that contain or use electronic protected health information.',
'164.312.c.1':
'Implement policies and procedures to protect electronic protected health information from improper alteration or destruction.',
'164.312.c.2':
'Implement electronic mechanisms to corroborate that electronic protected health information has not been altered or destroyed in an unauthorized manner.',
'164.312.d':
},
);
const electronicProcedure = i18n.translate(
'wazuh.complianceRequirements.hipaa.electronicProcedure',
{
defaultMessage:
'Implement electronic procedures that terminate an electronic session after a predetermined time of inactivity.',
},
);
const encryptAndDecryptHealthInfo = i18n.translate(
'wazuh.complianceRequirements.hipaa.encryptAndDecryptHealthInfo',
{
defaultMessage:
'Implement a mechanism to encrypt and decrypt electronic protected health information.',
},
);
const hardwareAndSoftwareMechanism = i18n.translate(
'wazuh.complianceRequirements.hipaa.hardwareAndSoftwareMechanism',
{
defaultMessage:
'Implement hardware, software, and/or procedural mechanisms that record and examine activity in information systems that contain or use electronic protected health information',
},
);
const protectFromAlterationOrDestruction = i18n.translate(
'wazuh.complianceRequirements.hipaa.protectFromAlterationOrDestruction',
{
defaultMessage:
'Implement policies and procedures to protect electronic protected health information from improper alteration or destruction.',
},
);
const electronicMechanismsToProtectFromAlteration = i18n.translate(
'wazuh.complianceRequirements.hipaa.electronicMechanismsToProtectFromAlteration',
{
defaultMessage:
'Implement electronic mechanisms to corroborate that electronic protected health information has not been altered or destroyed in an unauthorized manner.',
},
);
const seekAccess = i18n.translate('wazuh.complianceRequirements.hipaa.seekAccess', {
defaultMessage:
'Implement procedures to verify that a person or entity seeking access to electronic protected health information is the one claimed.',
'164.312.e.1':
'Implement technical security measures to guard against unauthorized access to electronic protected health information that is being transmitted over an electronic communications network.',
'164.312.e.2.I':
},
);

const technicalSecurityMeasures = i18n.translate(
'wazuh.complianceRequirements.hipaa.technicalSecurityMeasures',
{
defaultMessage:
'Implement technical security measures to guard against unauthorized access to electronic protected health information that is being transmitted over an electronic communications network.',
},
);

const securityDetection = i18n.translate('wazuh.complianceRequirements.hipaa.securityDetection', {
defaultMessage:
'Implement security measures to ensure that electronically transmitted electronic protected health information is not improperly modified without detection until disposed of.',
'164.312.e.2.II':
'Implement a mechanism to encrypt electronic protected health information whenever deemed appropriate.'
});

const deemedAppropriate = i18n.translate(
'wazuh.complianceRequirements.hipaa.deemedAppropriate',
{
defaultMessage:
'Implement a mechanism to encrypt electronic protected health information whenever deemed appropriate.',
},
);

export const hipaaRequirementsFile = {
'164.312.a.1': technicalPolicies,
'164.312.a.2.I': uniqueName,
'164.312.a.2.II': healthInformation,
'164.312.a.2.III': electronicProcedure,
'164.312.a.2.IV': encryptAndDecryptHealthInfo,
'164.312.b': hardwareAndSoftwareMechanism,
'164.312.c.1': protectFromAlterationOrDestruction,
'164.312.c.2': electronicMechanismsToProtectFromAlteration,
'164.312.d': seekAccess,
'164.312.e.1': technicalSecurityMeasures,
'164.312.e.2.I': securityDetection,
'164.312.e.2.II': deemedAppropriate,
};
Loading