Skip to content

Conversation

@GiooDev
Copy link
Contributor

@GiooDev GiooDev commented Jan 30, 2026

Description

Fix following #3445

Ansible

  • Disabling HTTPS by default for UI components.
  • Providing proper client certificates for UI components.
  • Providing correct reverse cert since updating PKI.
  • Updating truststores for vitamui-services to the proper one.
  • Disabling upstream for cas and api-gateway because https call need dns resolution (Certificates are generated with SAN without ipaddress).

Architecture

Here is the current network architecture:

graph TD

    %% Service Definitions
    RP[Reverse Proxy]

    subgraph SERVICES_UI[VitamUI-UI Services]
        direction TB
        UPO[ui-portal]
        UID[ui-identity]
        UIA[ui-identity-admin]
        UAS[ui-archive-search]
        URE[ui-referential]
        UCO[ui-collect]
        UPA[ui-pastis]
        UIN[ui-ingest]
    end

    API_GW[api-gateway]
    CAS[cas-server]

    subgraph VITAM_UI_SERVICES[VitamUI Services]
        direction TB
        subgraph VUI_SERVICES[ ]
            direction TB
            R[referential]
            P[pastis]
            I[ingest]
            C[collect]
            AS[archive_search]
        end
 
        IAM[iam]
        SEC[security]
    end

    %% Communications
    EXTERNAL -->|https| RP
    RP -->|http| SERVICES_UI
    RP -->|https| CAS
    SERVICES_UI -->|mTLS| API_GW
    API_GW -->|https + x-ssl-cert| VITAM_UI_SERVICES
    VUI_SERVICES -->|mTLS| IAM
    VUI_SERVICES -->|https| SEC
    
    IAM <-->|mTLS| CAS
    IAM -->|https| SEC
Loading

Type de changement

  • PKI
  • Ansiblerie
  • Correction

Contributeur

  • Programme Vitam

@GiooDev GiooDev added this to the IT 165 milestone Jan 30, 2026
@GiooDev GiooDev added bug Something isn't working OPS REVIEW Mandatory if deployment/ directory is modified. labels Jan 30, 2026
@GiooDev GiooDev self-assigned this Jan 30, 2026
@vitam-prg
Copy link
Collaborator

vitam-prg commented Jan 30, 2026

Logo
Checkmarx One – Scan Summary & Detailse886ed08-6c9b-4282-8602-3241eacb6b2f

New Issues (1)

Checkmarx found the following issues in this Pull Request

# Severity Issue Source File / Package Checkmarx Insight
1 HIGH Passwords And Secrets - Generic Password /vitamui_vars.yml: 219
detailsQuery to find passwords and secrets in infrastructure code.
Fixed Issues (14)

Great job! The following issues were fixed in this Pull Request

Severity Issue Source File / Package
HIGH Passwords And Secrets - Generic Password /vitamui_vars.yml: 210
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 80
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 106
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 65
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 80
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 105
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 105
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 106
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 80
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 80
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 81
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 105
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 106
LOW Log_Forging /api/api-referential/referential/src/main/java/fr/gouv/vitamui/referential/server/rest/LogbookManagementOperationController.java: 65

Use @Checkmarx to interact with Checkmarx PR Assistant.
Examples:
@Checkmarx how are you able to help me?
@Checkmarx rescan this PR

@GiooDev GiooDev force-pushed the story_15211_quick_fix branch 3 times, most recently from 538c30b to a3e384f Compare January 31, 2026 19:29
@GiooDev GiooDev changed the title Story #15211: Quick fix to unlock deployments. Story #15211: Fixing deployment since separated certificates. Jan 31, 2026
@GiooDev GiooDev force-pushed the story_15211_quick_fix branch from a3e384f to e442a9b Compare January 31, 2026 22:24
owner: "{{ vitamui_defaults.users.vitamui }}"
group: "{{ vitamui_defaults.users.group }}"
mode: "{{ vitamui_defaults.folder.conf_permission }}"
when: vitamui_struct.secure | default(secure) | bool
Copy link
Contributor Author

@GiooDev GiooDev Jan 31, 2026

Choose a reason for hiding this comment

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

À revoir à l'occasion car ce n'est pas bon.

En effet, si on désactive le secure sur le composant en cours de déploiement, il peut avoir besoin du truststore_vitamui pour les appels suivants si les composants qu'il appelle sont configuré en https (secure: true).

@GiooDev GiooDev requested a review from mkhediri January 31, 2026 22:55
@GiooDev GiooDev force-pushed the story_15211_quick_fix branch from e442a9b to 8b67888 Compare January 31, 2026 23:17
@GiooDev GiooDev added the Security Modules update label Jan 31, 2026
trust-store-password: {{ password_truststore }}
trust-store: {{ vitamui_folder_conf }}/truststore_vitamui.jks
trust-store-password: {{ truststores_vitamui }}
client-auth: want
Copy link
Contributor Author

Choose a reason for hiding this comment

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

On pourrait configurer en client-auth: need puisque tous les appels effectués à iam semblent être fait en mTLS.

@GiooDev
Copy link
Contributor Author

GiooDev commented Feb 1, 2026

Toujours une erreur 502 Bad Gateway lors de l'authentification qui redirige vers /portal-api/security

@GiooDev GiooDev force-pushed the story_15211_quick_fix branch 2 times, most recently from 60e7f0c to 8725335 Compare February 1, 2026 16:18
@GiooDev GiooDev force-pushed the story_15211_quick_fix branch 2 times, most recently from 57bd26e to 7e3ff4d Compare February 1, 2026 18:02
@GiooDev GiooDev force-pushed the story_15211_quick_fix branch from 7e3ff4d to 6211bc3 Compare February 1, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working OPS REVIEW Mandatory if deployment/ directory is modified. Security Modules update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants