Revision 7f4e472cc131f5a687ec44524ff106a80cadff3f authored by Lorenz Bauer on 13 February 2024, 10:24:58 UTC, committed by Lorenz Bauer on 14 February 2024, 09:56:48 UTC
Watcher.loop will never exit if Watcher.Close is called while an event
or error is being written to w.Errors or w.Events. Fix this by checking
for w.stop.

This allows running TestWatcher a couple thousand times without running
into "too many open files".

Fixes: 1cab8f375a ("certloader: Add fswatcher package")
Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
1 parent b973589
Raw File
SECURITY-INSIGHTS.yml
header:
  schema-version: '1.0.0'
  expiration-date: '2025-01-26T01:00:00.000Z'
  last-updated: '2024-01-26'
  last-reviewed: '2024-01-26'
  project-url: https://github.com/cilium/cilium
  license: https://github.com/cilium/cilium/blob/main/LICENSE
project-lifecycle:
  status: active
  bug-fixes-only: false
  core-maintainers:
    - https://github.com/cilium/cilium/blob/main/MAINTAINERS.md
  roadmap: https://docs.cilium.io/en/stable/community/roadmap
contribution-policy:
  accepts-pull-requests: true
  accepts-automated-pull-requests: true
dependencies:
  third-party-packages: true
  dependencies-lists:
    - https://github.com/cilium/cilium/blob/main/go.mod
  sbom:
    - sbom-format: SPDX
      sbom-url: https://docs.cilium.io/en/stable/configuration/sbom
distribution-points:
  - https://github.com/cilium/cilium
  - https://hub.docker.com/u/cilium
  - https://quay.io/organization/cilium
documentation:
  - https://docs.cilium.io/en/stable/
security-assessments:
  - auditor-name: ADA Logics
    auditor-url: https://adalogics.com
    auditor-report: https://github.com/cilium/cilium.io/blob/main/Security-Reports/CiliumSecurityAudit2022.pdf
    report-year: 2022
  - auditor-name: ADA Logics
    auditor-url: https://adalogics.com
    auditor-report: https://github.com/cilium/cilium.io/blob/main/Security-Reports/CiliumFuzzingAudit2022.pdf
    report-year: 2022
security-contacts:
  - type: email
    value: security@cilium.io
security-testing:
- tool-type: sca
  tool-name: Mend Renovate
  tool-url: https://www.mend.io/renovate
  tool-version: latest
  integration:
    ad-hoc: false
    ci: true
    before-release: true
- tool-type: fuzzer
  tool-name: OSS-Fuzz
  tool-url: https://github.com/google/oss-fuzz
  tool-version: latest
  integration:
    ad-hoc: false
    ci: true
    before-release: true
- tool-type: sast
  tool-name: Grype
  tool-url: https://github.com/anchore/grype
  tool-version: latest
  integration:
    ad-hoc: false
    ci: true
    before-release: true
vulnerability-reporting:
  accepts-vulnerability-reports: true
  security-policy: https://github.com/cilium/cilium/security
back to top