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

[frontend] Switch steps on agent installation documentation (#1340) #1342

Merged
merged 1 commit into from
Aug 23, 2024
Merged
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
36 changes: 18 additions & 18 deletions openbas-front/src/admin/components/agents/Agents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,15 +451,7 @@ SHA512: ca07dc1d0a5297e29327e483f4f35dadb254d96a16a5c33da5ad048e6965a3863d621518
</Select>
</FormControl>
)}
<Typography variant="h2" style={{ marginTop: 30 }}>{t('Step 1 - Add antivirus exclusions')}</Typography>
<Alert variant="outlined" severity="info">
{t('The agent will never execute directly any payload.')}
</Alert>
<p>
{t('You will need to add proper antivirus exclusions for this agent (to ensure Caldera injects execution to work properly). It may not be necessary in the future but this is generally a good practice to ensure the agent will be always available.')}
</p>
<pre style={{ margin: '20px 0 10px 0' }}>{platformSelector().exclusions}</pre>
<Typography variant="h2" style={{ marginTop: 30 }}>{t('Step 2 - Install the agent')}</Typography>
<Typography variant="h2" style={{ marginTop: 30 }}>{t('Step 1 - Install the agent')}</Typography>
<Alert variant="outlined" severity="info">
{t('Installing the agent is requiring local administrator privileges.')}
</Alert>
Expand Down Expand Up @@ -490,19 +482,19 @@ SHA512: ca07dc1d0a5297e29327e483f4f35dadb254d96a16a5c33da5ad048e6965a3863d621518
</div>
</>
)}
<Typography variant="h2" style={{ marginTop: 30 }}>{t('Step 2 - Add antivirus exclusions')}</Typography>
<Alert variant="outlined" severity="info">
{t('The agent will never execute directly any payload.')}
</Alert>
<p>
{t('You will need to add proper antivirus exclusions for this agent (to ensure Caldera injects execution to work properly). It may not be necessary in the future but this is generally a good practice to ensure the agent will be always available.')}
</p>
<pre style={{ margin: '20px 0 10px 0' }}>{platformSelector().exclusions}</pre>
</div>
)}
{currentSelectedExecutor.executor_type === 'openbas_agent' && (
<div style={{ marginTop: 20 }}>
<Typography variant="h2" style={{ marginTop: 30 }}>{t('Step 1 - Add antivirus exclusions')}</Typography>
<Alert variant="outlined" severity="info">
{t('The agent will never execute directly any payload.')}
</Alert>
<p>
{t('You will need to add proper antivirus exclusions for this agent (to ensure Caldera injects execution to work properly). It may not be necessary in the future but this is generally a good practice to ensure the agent will be always available.')}
</p>
<pre style={{ margin: '20px 0 10px 0' }}>{platformAgentSelector().exclusions}</pre>
<Typography variant="h2" style={{ marginTop: 30 }}>{t('Step 2 - Install the agent')}</Typography>
<Typography variant="h2" style={{ marginTop: 30 }}>{t('Step 1 - Install the agent')}</Typography>
<Alert variant="outlined" severity="info">
{t('Installing the agent is requiring local administrator privileges.')}
</Alert>
Expand Down Expand Up @@ -530,6 +522,14 @@ SHA512: ca07dc1d0a5297e29327e483f4f35dadb254d96a16a5c33da5ad048e6965a3863d621518
</div>
</>
)}
<Typography variant="h2" style={{ marginTop: 30 }}>{t('Step 2 - Add antivirus exclusions')}</Typography>
<Alert variant="outlined" severity="info">
{t('The agent will never execute directly any payload.')}
</Alert>
<p>
{t('You will need to add proper antivirus exclusions for this agent (to ensure Caldera injects execution to work properly). It may not be necessary in the future but this is generally a good practice to ensure the agent will be always available.')}
</p>
<pre style={{ margin: '20px 0 10px 0' }}>{platformAgentSelector().exclusions}</pre>
</div>
)}
{currentSelectedExecutor.executor_type === 'openbas_tanium' && (
Expand Down
8 changes: 8 additions & 0 deletions openbas-front/src/utils/Localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,14 @@ const i18n = {
'Install Browser Agent': "Installer l'agent navigateur",
'Install a simulation agent': 'Installer un agent de simulation',
'To install the agent please follow the': "Pour installer l'agent, veuillez suivre le",
'Step 1 - Install the agent': "Étape 1 - Installer l'agent",
'Installing the agent is requiring local administrator privileges.': "L'installation de l'agent nécessite des privilèges d'administrateur local.",
'You can whether directly copy and paste the following Powershell snippet in an elevated prompt or download the .ps1 script (and execute it as an administrator).': "Vous pouvez soit copier et coller directement l'extrait PowerShell suivant dans une invite de commandes élevée, soit télécharger le script .ps1 (et l'exécuter en tant qu'administrateur).",
'You can whether directly copy and paste the following bash snippet in a root console or download the .sh script (and execute it as root).': "Vous pouvez soit copier et coller directement l'extrait bash suivant dans une console root, soit télécharger le script .sh (et l'exécuter en tant que root).",
'For the moment, the following snippet or script will not add the agent at boot. Please be sure to add it in rc.local or other files to make it persistent. We will release proper packages in the near future.': "Pour le moment, l'extrait ou le script suivant n'ajoutera pas l'agent au démarrage. Veuillez l'ajouter dans rc.local ou dans d'autres fichiers pour le rendre persistant. Nous publierons des packages appropriés dans un avenir proche.",
'The agent will never execute directly any payload.': "L'agent n'exécutera jamais directement de charge utile.",
'You will need to add proper antivirus exclusions for this agent (to ensure Caldera injects execution to work properly). It may not be necessary in the future but this is generally a good practice to ensure the agent will be always available.': "Vous devrez ajouter des exclusions antivirus appropriées pour cet agent (pour garantir que l'exécution des injections par Caldera fonctionne correctement). Cela pourrait ne pas être nécessaire à l'avenir, mais c'est généralement une bonne pratique pour s'assurer que l'agent sera toujours disponible.",
'Step 2 - Add antivirus exclusions': 'Étape 2 - Ajouter des exclusions antivirus',
Linux: 'Linux',
Windows: 'Windows',
MacOS: 'MacOS',
Expand Down