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

Story #11854 Clean code: deploy design system #1839

Merged
merged 1 commit into from
May 29, 2024
Merged

Conversation

marob
Copy link
Contributor

@marob marob commented May 2, 2024

Description

  • renommage de l'application starter-kit en design-system
  • déploiement du design-system (si un host est défini dans le groupe hosts_ui_design_system)

Type de changement:

  • Build

  • Ansiblerie

Documentation:

Indiquer la documentation mise à jour

[ ] Quels sont les nouvelles documentations ?

[ ] Quels sont les modifications existantes ?

[ ] Quels sont les documentations ou sections de documentations supprimés ?

Tests:

Indiquer comment le code à été testé (manuel, environnement, TU, etc)

manuel

environnement

TU

Migration:

Indiquer si les modifications apportées impliquent une migration sur l'existant et comment la faire

Checklist:

Sélectionner les éléments de la checklist

[ ] Mon code suit le style de code de ce projet.

[ ] J'ai commenté mon code, en particulier dans les classes et les méthodes difficile à comprendre.

[ ] J'ai fait les changements correspondant dans la documentation RAML.

[ ] J'ai fait les changements correspondant dans la documentation Métier.

[ ] J'ai fait les changements correspondant dans la documentation Technique.

[ ] J'ai rajouté les tests unitaires vérifiant mes fonctionnalités.

[ ] J'ai rajouté les tests de non régression vérifiant mes fonctionnalités.

[ ] Les tests unitaires nouveaux et existants passent avec succès localement.

[ ] Toutes les dépendances ont été mergées en priorité

Contributeur

VAS (Vitam Accessible en Service)

@vitam-devops
Copy link
Collaborator

vitam-devops commented May 2, 2024

Logo
Checkmarx One – Scan Summary & Details199fce9c-d477-41c3-ad66-9b47337e96a7

New Issues

Severity Issue Source File / Package Checkmarx Insight
HIGH CVE-2019-15599 Npm-tree-kill-1.2.1 Vulnerable Package
HIGH CVE-2020-28502 Npm-xmlhttprequest-ssl-1.5.5 Vulnerable Package
HIGH CVE-2020-36048 Npm-engine.io-3.2.1 Vulnerable Package
HIGH CVE-2020-36049 Npm-socket.io-parser-3.2.0 Vulnerable Package
HIGH CVE-2020-7660 Npm-serialize-javascript-1.9.1 Vulnerable Package
HIGH CVE-2020-7788 Npm-ini-1.3.5 Vulnerable Package
HIGH CVE-2021-31597 Npm-xmlhttprequest-ssl-1.5.5 Vulnerable Package
HIGH CVE-2022-2421 Npm-socket.io-parser-3.2.0 Vulnerable Package
MEDIUM CVE-2019-16769 Npm-serialize-javascript-1.9.1 Vulnerable Package
MEDIUM CVE-2020-15366 Npm-ajv-6.10.0 Vulnerable Package
MEDIUM CVE-2020-15366 Npm-ajv-5.5.2 Vulnerable Package
MEDIUM CVE-2020-28481 Npm-socket.io-2.1.1 Vulnerable Package
MEDIUM CVE-2020-7693 Npm-sockjs-0.3.19 Vulnerable Package
MEDIUM CVE-2021-23364 Npm-browserslist-4.5.5 Vulnerable Package
MEDIUM CVE-2022-21704 Npm-log4js-4.5.1 Vulnerable Package
MEDIUM CVE-2022-41940 Npm-engine.io-3.2.1 Vulnerable Package
LOW Logging of Sensitive Data /ansible.cfg: [2](https://github.com/ProgrammeVitam/vitam-ui/blob/deploy-starter-kit//tools/docker/mongo/ansible.cfg# L2) To keep sensitive values out of logs, tasks that expose them need to be marked defining 'no_log' and setting to True
LOW Logging of Sensitive Data /ansible.cfg: [1](https://github.com/ProgrammeVitam/vitam-ui/blob/deploy-starter-kit//deployment/ansible.cfg# L1) To keep sensitive values out of logs, tasks that expose them need to be marked defining 'no_log' and setting to True
LOW Logging of Sensitive Data /ansible.cfg: [2](https://github.com/ProgrammeVitam/vitam-ui/blob/deploy-starter-kit//deployment/pki/scripts/lib/ansible.cfg# L2) To keep sensitive values out of logs, tasks that expose them need to be marked defining 'no_log' and setting to True

Fixed Issues

Severity Issue Source File / Package
MEDIUM Unpinned Actions Full Length Commit SHA /build-and-test.yml: [55](https://github.com/ProgrammeVitam/vitam-ui/blob/deploy-starter-kit//.github/workflows/build-and-test.yml# L55)
MEDIUM Unpinned Actions Full Length Commit SHA /build-and-test.yml: [146](https://github.com/ProgrammeVitam/vitam-ui/blob/deploy-starter-kit//.github/workflows/build-and-test.yml# L146)
MEDIUM Unpinned Actions Full Length Commit SHA /build-and-test.yml: [97](https://github.com/ProgrammeVitam/vitam-ui/blob/deploy-starter-kit//.github/workflows/build-and-test.yml# L97)
MEDIUM Unpinned Actions Full Length Commit SHA /build-and-test.yml: [79](https://github.com/ProgrammeVitam/vitam-ui/blob/deploy-starter-kit//.github/workflows/build-and-test.yml# L79)
MEDIUM Unpinned Actions Full Length Commit SHA /build-and-test.yml: [141](https://github.com/ProgrammeVitam/vitam-ui/blob/deploy-starter-kit//.github/workflows/build-and-test.yml# L141)

@marob marob force-pushed the deploy-starter-kit branch 3 times, most recently from 3dd9b9c to dbf4b3c Compare May 2, 2024 17:49
@marob marob marked this pull request as ready for review May 2, 2024 17:50
@ebernard ebernard added the OPS REVIEW Mandatory if deployment/ directory is modified. label May 2, 2024
@ebernard ebernard added this to the IT 135 milestone May 2, 2024
Copy link
Contributor

@ebernard ebernard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le déploiement du module n'est pas désactivable, mais je ne sais pas si c'est une possibilité pour les autres modules, donc ok pour moi. Je me suis permis de pinguer les ops.

@marob
Copy link
Contributor Author

marob commented May 3, 2024

Le déploiement du module n'est pas désactivable, mais je ne sais pas si c'est une possibilité pour les autres modules, donc ok pour moi. Je me suis permis de pinguer les ops.

Je pense effectivement qu'il faudrait pouvoir rendre le déploiement optionnel.
Mais il y a peut-être aussi quelques autres sujets à creuser :

  • ne pas ajouter de host + port 8004 + ProxyPass + certificats => servir direct depuis le nginx ?
  • renommer starter-kit par un nom plus clair, genre design-system

@ebernard
Copy link
Contributor

ebernard commented May 3, 2024

  • ne pas ajouter de host + port 8004 + ProxyPass + certificats => servir direct depuis le nginx ?

Je pense que les ops ne voudront pas forcément gérer un cas particulier. Ça sera de toute façon un service à faible traffic, donc pourquoi se donner cette peine ?

  • renommer starter-kit par un nom plus clair, genre design-system

Je plussoie.

@marob marob changed the title Deploy starter kit Story #11854 Clean code: deploy starter kit May 6, 2024
@marob marob force-pushed the deploy-starter-kit branch 2 times, most recently from f4b8f77 to a3cee9a Compare May 6, 2024 13:32
@marob
Copy link
Contributor Author

marob commented May 6, 2024

Déployé sur ga et zo.
Seul ga possède un hosts_ui_design_system, ce qui fait que le design system n'a été déployé que sur celui-ci.
image

Par défaut, le design system n'est donc pas déployé (sauf si on ajoute un host group hosts_ui_design_system), ce qu'on devrait faire sur l'ensemble de nos envs bac à sable mais pas sur les environnements clients.

L'app starter-kit a été renommée design-system.

@marob marob force-pushed the deploy-starter-kit branch from a954186 to 575f0c6 Compare May 6, 2024 15:46
@marob marob changed the title Story #11854 Clean code: deploy starter kit Story #11854 Clean code: deploy design system May 6, 2024
deployment/ansible-vitamui/frontend_apps.yml Show resolved Hide resolved
deployment/environments/hosts-ui.example Outdated Show resolved Hide resolved
@marob marob force-pushed the deploy-starter-kit branch 3 times, most recently from 9e82580 to 7321efa Compare May 6, 2024 18:08
@GiooDev GiooDev modified the milestones: IT 135, IT 136 May 17, 2024
@marob marob requested a review from GiooDev May 27, 2024 12:26
@marob marob force-pushed the deploy-starter-kit branch from 7321efa to 1dfc506 Compare May 28, 2024 09:26
ui/ui-design-system/pom.xml Outdated Show resolved Hide resolved
@marob marob force-pushed the deploy-starter-kit branch 2 times, most recently from b6c2972 to 722d5f1 Compare May 28, 2024 12:25
Copy link
Contributor

@GiooDev GiooDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

À voir pour se synchroniser avec la PR #1874 car il semble y avoir des modifications qui risquent de venir en conflit.

@marob marob force-pushed the deploy-starter-kit branch 2 times, most recently from 8840b81 to f2cbe39 Compare May 29, 2024 12:35
@marob marob force-pushed the deploy-starter-kit branch from f2cbe39 to 6e2e661 Compare May 29, 2024 14:00
@marob marob merged commit 2ace10b into develop May 29, 2024
3 of 4 checks passed
@marob marob deleted the deploy-starter-kit branch May 29, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OPS REVIEW Mandatory if deployment/ directory is modified.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants