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

Sre 2505 trivy #61

Merged
merged 17 commits into from
Oct 30, 2024
Merged

Sre 2505 trivy #61

merged 17 commits into from
Oct 30, 2024

Commits on Sep 26, 2024

  1. Limit scope of changes that are monitored by Trivy scan

    Do not start Trivy scan if changes not related to dependencies.
    Run Trivy on daily bases.
    Add badge to follow cycle Trivy scans
    Enable scans on request
    
    Doc-only: true
    
    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    766d9e1 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. Fix SPDX license header

    Doc-only: true
    
    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    c029a80 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. fix: restore unnecessary cache backend

    Doc-only: true
    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    3f4c483 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Merge remote-tracking branch 'origin/master' into grom72/SRE-2505-trivy

    Doc-only: true
    
    Required-githooks: true
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    f71df83 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Fix: addjust monitored files list.

    https://aquasecurity.github.io/trivy/v0.56/docs/coverage/language/#supported-languages
    provides the full list of scanned file in the 'filesystem' scan.
    
    Keep the same condition for PR and merge trigger.
    
    Doc-only: true
    
    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    7406a75 View commit details
    Browse the repository at this point in the history
  2. Fix: documentation

    Doc-only: true
    
    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    d7c35a2 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Fix: simplify triggering rules

    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    1d52932 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. SRE-2505 ci: Fix Trivy scan upload to the Security tab

    Doc-only: true
    
    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    c4fa939 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2024

  1. DAOS-16175 container: fix a case for cont_iv_hdl_fetch (daos-stack#15395

    )
    
    In reintegrate case, ever hit case that the IC_CONT_CAPA cache is valid locally
    but cont open handle invalid (not in dt_cont_hdl_hash). For this case
    invalidate local IV cache first and retry again, to avoid in-flight UPDATE's
    failure because obj_ioc_init() -> ds_cont_find_hdl() ->
    cont_iv_hdl_fetch() failure -
    DBUG src/engine/server_iv.c:409 ivc_on_fetch() FETCH: Key [1:7] entry 0x7fb31063b550 valid yes
    DBUG src/engine/server_iv.c:1042 iv_op_internal() class_id 7 opc 1 rc 0
    ERR  src/object/srv_obj.c:2174 obj_ioc_begin_lite()
    Failed to initialize object I/O context.: DER_NO_HDL(-1002): 'Invalid handle'
    
    Signed-off-by: Xuezhao Liu <[email protected]>
    liuxuezhao authored Oct 28, 2024
    Configuration menu
    Copy the full SHA
    947c76d View commit details
    Browse the repository at this point in the history
  2. SRE-2505 ci: Trivy scans tuning

    - Use GHA cache to avoid Trivy scan failure
    Trivy CVEs database downloads fails often.
    The most promissing solution is to use cache and download the
    database once a day.
    CVEs database is cached during daily build (`schedule`).
    Cache is not used if `master` branch cache is not available.
    https://github.com/aquasecurity/trivy-action?tab=readme-ov-file#updating-caches-in-the-default-branch
    
    - Avoid Trivy scanners re-initialization
    https://github.com/aquasecurity/trivy-action?tab=readme-ov-file#skipping-setup-when-calling-trivy-action-multiple-times
    The latest available version of `aquasecurity/trivy-action`
    is used to be able to use `skip-setup-trivy` parameter.
    
    Doc-only: true
    
    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    184fabd View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/master' into grom72/SRE-2505-trivy

    Doc-only: true
    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    be4449d View commit details
    Browse the repository at this point in the history
  4. SRE-2505 ci: Trivy scans optimization

    - Use GHA cache to avoid Trivy scan failure
    Trivy CVEs database downloads fails often.
    The most promissing solution is to use cache and download the
    database once a day.
    CVEs database is cached during daily build (`schedule`).
    Cache is not used if `master` branch cache is not available.
    https://github.com/aquasecurity/trivy-action?tab=readme-ov-file#updating-caches-in-the-default-branch
    
    - Avoid Trivy scanners re-initialization
    https://github.com/aquasecurity/trivy-action?tab=readme-ov-file#skipping-setup-when-calling-trivy-action-multiple-times
    The latest available version of `aquasecurity/trivy-action`
    is used to be able to use `skip-setup-trivy` parameter.
    
    Doc-only: true
    
    Required-githooks: true
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    b68ecaa View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2024

  1. common: update workflow documentation

    Doc-only: true
    
    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    827c067 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. Make the solution more reliable and more simple

    Use external caching mechanism to ensure PR scan not failing.
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    61d8e67 View commit details
    Browse the repository at this point in the history
  2. Test

    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    427fe59 View commit details
    Browse the repository at this point in the history
  3. Simple PR

    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    632450a View commit details
    Browse the repository at this point in the history
  4. Tets

    Required-githooks: true
    
    Signed-off-by: Tomasz Gromadzki <[email protected]>
    grom72 committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    af3a7ec View commit details
    Browse the repository at this point in the history