file:
  # Checks basic index.html exists
  /opt/bitnami/harbor/index.html:
    exists: true
    filetype: file
    mode: "0644"
    owner: root
    group: root
  # Checks server configuration exists
  /opt/bitnami/nginx/conf/nginx.conf:
    exists: true
    filetype: file
    mode: "0644"
    owner: root
  # Checks API documentation exists
  /opt/bitnami/harbor/swagger.json:
    exists: true
    filetype: file
    mode: "0644"
    owner: root
    group: root
http:
  # Checks Harbor Portal and every subcomponent status
  http://localhost:8080/api/v2.0/health:
    method: GET
    status: 200
    body:
      - "!unhealthy"
command:
  # Checks the user running the container is non-root
  user-id-test:
    exec: id -u
    exit-status: 0
    stdout:
      - 1001
    stderr: []
