1. 24 Sep, 2020 1 commit
  2. 15 Aug, 2020 1 commit
  3. 21 Jul, 2020 1 commit
  4. 19 Jul, 2020 1 commit
  5. 16 Jul, 2020 1 commit
  6. 02 Jul, 2020 1 commit
  7. 23 Jun, 2020 1 commit
  8. 08 Jun, 2020 1 commit
    • Wang Yan's avatar
      enable storage driver of gcs and oss (#12180) · c993103e
      Wang Yan authored
      Add go build tags for gcs and oss, otherwise these drivers cannot be registered and the error "StorageDriver is not regsited: GCS" will raise on registryctl launch under the setting of GCS storage.
      
      These build tags are designed in the distribution, just refer to https://github.com/docker/distribution/blob/release/2.7/registry/storage/driver/gcs/gcs.go#L13
      
      Pin the google cloud API to a old version is because distribution depends on it, otherwise go mode will use v0.17.0 that go-migrate is using as the dependency version, but this version will break the compile process with following error:
      harbor/pkg/mod/google.golang.org/cloud@v0.0.0-20151119220103-975617b05ea8/storage/acl.go:65:16: invalid type assertion: v.(map[string]<inter>) (non-interface type *storage.ObjectAccessControl on left)
      that's bacause another dependency google.golang.org/cloud requires the pinned version of google.golang.org/api.
      
      The pinned package should be removed once https://github.com/docker/distribution/pull/3019
      
       is merged, and distribution ships their v2.8.0
      Signed-off-by: default avatarwang yan <wangyan@vmware.com>
      c993103e
  9. 05 Jun, 2020 2 commits
  10. 08 Mar, 2020 1 commit
  11. 02 Mar, 2020 1 commit
  12. 23 Feb, 2020 1 commit
  13. 19 Feb, 2020 1 commit
  14. 17 Feb, 2020 1 commit
  15. 09 Feb, 2020 1 commit
  16. 20 Jan, 2020 1 commit
  17. 14 Jan, 2020 1 commit
  18. 18 Sep, 2019 1 commit
    • Steven Zou's avatar
      support pluggable scanner · e324a4d6
      Steven Zou authored
      
      
      - add DAO layer for scanner registration
      - add CURD manager for scanner registration
      - add API controller for plug scanner
      - add REST APIs for CURD of plug scanner
      - add migration sql:0011_1.10.0
      - add scan interface definition (no implementations)
      - add related UT cases with testify
      
      fix #8979 #8990
      Signed-off-by: default avatarSteven Zou <szou@vmware.com>
      e324a4d6
  19. 29 Jul, 2019 1 commit
  20. 24 Jul, 2019 1 commit
  21. 23 Jul, 2019 1 commit
  22. 09 Jul, 2019 1 commit
  23. 25 Jun, 2019 1 commit
  24. 10 Jun, 2019 1 commit
    • Daniel Jiang's avatar
      Bump up to go 1.12.5 enable go.mod · 737eaa39
      Daniel Jiang authored
      
      
      This commit bumps up the version of Go to compile the code to v1.12.5,
      and shifts to go.mod for managing depedency.
      Some code from "harbor/tests" to "harbor/src/testing" to avoid depedency
      loop of modules.
      
      Note that in short term we will still vendor the dependency.
      Signed-off-by: default avatarDaniel Jiang <jiangd@vmware.com>
      737eaa39
  25. 28 Apr, 2019 1 commit
  26. 22 Apr, 2019 1 commit
  27. 19 Apr, 2019 1 commit
  28. 18 Apr, 2019 1 commit
  29. 16 Apr, 2019 1 commit
  30. 28 Mar, 2019 1 commit
    • Daniel Jiang's avatar
      Add controller to handle oidc login · 9ce98f4a
      Daniel Jiang authored
      
      
      The controller will redirect user to the OIDC login page based on
      configuration.
      Additionally this commit add some basic code to wrap `oauth2` package
      and `provider` in `go-oidc`, and fixed an issue in UT to make
      InMemoryDriver for config management thread-safe.
      Signed-off-by: default avatarDaniel Jiang <jiangd@vmware.com>
      9ce98f4a
  31. 27 Mar, 2019 1 commit
  32. 20 Mar, 2019 1 commit
  33. 04 Jan, 2019 1 commit
  34. 27 Jul, 2018 1 commit
    • Wenkai Yin's avatar
      Fix cross slot issue of redis · 2a40068d
      Wenkai Yin authored
      This commit upgrdes the github.com/gocraft/work package to 0.5.1 and updates the namespace value
      to fix the redis cross slot issue mentioned in #4633
      2a40068d
  35. 23 Jul, 2018 1 commit
    • Daniel Jiang's avatar
      Clean up vendor folder · b9762afb
      Daniel Jiang authored
      Add `prune` section to Gopkg.toml to remove the unused packages from
      vendor folder.
      Update the reference of `semver` and `distribution` repo.
      b9762afb
  36. 06 Jul, 2018 1 commit
  37. 05 Jul, 2018 1 commit
  38. 02 Jul, 2018 1 commit
  39. 28 Jun, 2018 1 commit
    • Daniel Jiang's avatar
      Initialise Harbor DB schema in Harbor UI/adminserver container · c9b1962b
      Daniel Jiang authored
      This commit fixes #5040, the harbor-db image will only contain empty
      databases, and harbor ui container will use migrate tool to run initial
      SQL scripts to do initialization.  This is helpful for the case to
      configure Harbor against external DB or DBaaS like RDS for HA deployment
      However, this change will results some confusion as there are two tables
      to track schema versions have been using alembic for migration, for this
      release we'll try to use alembic to mock a `migration` table during
      upgrade so the migrator will be bypassed, in future we'll consider to
      consolidate to the golang based migrator.
      Another issue is that the UI and adminserver containers will access DB
      after start up in different congurations, can't ensure the sequence, so
      both of them will try to update the schema when started up.
      c9b1962b