1. 15 Jul, 2021 1 commit
  2. 13 Jul, 2021 3 commits
  3. 02 Jul, 2021 1 commit
  4. 29 Jun, 2021 1 commit
  5. 23 Jun, 2021 1 commit
  6. 21 Jun, 2021 1 commit
    • femiadeyemi's avatar
      redesign of cerebrum · 748ea6ff
      femiadeyemi authored
      Modification:
      
      - introduce an anotation called ForeignKey. This can be use to ensure
          that the uuid reference in another entity is valid and cascading
          effect are maintained.
      - modify some entities and added some new entities like Image, Person
          and Software. Also, corresponding repositories and services.
      - redesign the base service and create a kind of base repository
      
      Target: master
      748ea6ff
  7. 26 May, 2021 1 commit
    • femiadeyemi's avatar
      replace the neo4j with mongo db · 71b35f59
      femiadeyemi authored
      Motivation:
      
      We need to store media data for some of the entities and neo4j is
      not design to store images, video, etc.. Hence, to avoid using
      multiple dbs, we sort for a solution that can store the metadata
      and the media data.
      
      Modification:
      
      - remove neo4j dependency and add mongo
      - change the entities details and re-design it to suit the new db
      - adjust the api design
      - delete all neo4j relationship pojos
      - adjust the tests according to the new definitions
      
      Result:
      
      Cerebrum now uses mongo db.
      
      Target: master
      71b35f59
  8. 19 May, 2021 3 commits
    • femiadeyemi's avatar
      rename package entities to entity · 9c3de0bf
      femiadeyemi authored
      9c3de0bf
    • femiadeyemi's avatar
      adjust market-user and organisation entity · a3d5a946
      femiadeyemi authored
      Motivation:
      
      Meeting up with the new API design requires that the market-user
      and organisation entity are realign.
      
      Modification:
      
      - factor out some part of market-user and create a new class (person)
      - make organisation enity to extend audit-metadata and some properties
          were added.
      - use the lombok project to reduce the boilerplate code in both
          the market-user and organisation entities.
      - add 'person' to the list of PrefixEnum in the CerebrumEntityUuidGenerator
      
      Result:
      
      Market-user and Organisation entity are now re-worked
      
      Target: master
      a3d5a946
    • femiadeyemi's avatar
      update list of OWASP checks and upgrade spring boot · 90b6d9ff
      femiadeyemi authored
      Motivation:
      
      Some reported vulnerabilities of the dependencies by OWASP make
      the pipeline broken.
      
      Modification:
      
      - upgrade spring boot starter parent version from 2.3.5.RELEASE
          to 2.3.10.RELEASE
      - upgrade hibernate-validator from 6.0.19.Final to 6.2.0.Final
      - updgrade neo4j-java-driver-spring-boot-starter from 4.1.1.0
          to 4.2.4.0
      - update list of OWASP check and supress some false positive
          alarms
      
      Result:
      
      Build pipeline succeeds.
      
      Target: master
      90b6d9ff
  9. 18 May, 2021 1 commit
    • femiadeyemi's avatar
      make available the metrics of cerebrum · 92e4e164
      femiadeyemi authored
      Motivation:
      
      To gain insight on cerebrum-app, the spring framework provide
      the facility to expose the application metrics to monitoring
      service like Prometheus on Kubernetes.
      
      Modification:
      
      - enable graceful shutdown
      - add spring boot actuator and prometheus registry micrometer
          dependencies
      - expose the actuator endpoint that will provides: health,
         info, metric etc.
      - avoid 404 error on request to /favicon.ico
      
      Result:
      
      Cerebrum now makes it metrics available and can be shutdown
      gracefully.
      
      Target: master
      92e4e164
  10. 17 May, 2021 1 commit
    • femiadeyemi's avatar
      add new properties to market-service enity · 8614f6e7
      femiadeyemi authored
      Motivation:
      
      To fullfill the service metadata description defined by the
      cloud management board, new properties need to be added to
      the market-service entity.
      
      Modification:
      
      - add lombok dependency to the cerebrum project to avoid some
          boilterplate codes
      - add some few new properties to the market-service entity
      - enable database auditing to keep track of when an entity was
          created and when it was last modified.
      - adjust the MarketServiceRepository to fit the new market-service
          properties definition
      
      Result:
      
      Market-service entity contain some new properties and some few name
      change.
      
      Target: master
      8614f6e7
  11. 15 Mar, 2021 1 commit
  12. 21 Feb, 2021 2 commits
  13. 20 Feb, 2021 3 commits
  14. 03 Dec, 2020 2 commits
    • femiadeyemi's avatar
      add a new stage · 25fbf53b
      femiadeyemi authored
      Motivation:
      
      Automated ci/cd is desirable process we will like to adhere to in 
      our pipeline. Since we already have a local kubernetes cluster running 
      on the production machine, we need to ensure that when a new tag
      is release, the cluster is notified.
      
      Modification:
      
      - add a new pipeline stage called `docker`. This will be use for 
      the building and deploy the image into the docker hub.
      - deploy stage will now be responsible for trigger automated update 
      of the image in the cluster.
      
      Result:
      
      Getting closer to fully automated ci/cd
      
      Target: master
      25fbf53b
    • femiadeyemi's avatar
      rollback to not checking the host key · 6ce94326
      femiadeyemi authored
      6ce94326
  15. 02 Dec, 2020 7 commits
  16. 10 Nov, 2020 4 commits
    • femiadeyemi's avatar
      rollback commit #5b989230 · b42fd5ec
      femiadeyemi authored
      b42fd5ec
    • femiadeyemi's avatar
      fix uuid generation · 4392c544
      femiadeyemi authored
      Motivation:
      
      A new uuid is generated for an entity that will be save on the db..
      This is use as a primary way of uniquely identify a particular node.
      To ensure the uniqueness of the uuid, two factor were considered
      which are:
      - uuid version 1
      - secure random number
      However the secured random number is currently generated causing the
      thread to block in a VM (for details explaination see
      https://tersesystems.com/blog/2015/12/17/the-right-way-to-use-securerandom/).
      Hence the behaviour of the system become unpredicate and most likely
      will fail if the request will required the uuid to be generated.
      
      Modification:
      
      - change how the secured random number is generated
      - minor typo fix inside the MarketUserRepository
      
      Result:
      
      The generation of cerebrum custom uuid now work seemly on both local
      machine and VMs. Hence, all requests are now process as expected.
      
      Target: master
      4392c544
    • femiadeyemi's avatar
      update dependency-check-suppressions.xml · 31fee152
      femiadeyemi authored
      31fee152
    • femiadeyemi's avatar
      upgrade to spring-boot version 2.3.5 · 0167257c
      femiadeyemi authored
      Motivation:
      
      Keep cerebrum up-to-date.
      
      Modification:
      
      - change the spring-boot version to 2.3.5
      - upgrade the springdoc-openapi-ui to version 1.4.8 to
          avoid the classpath problem
      - use the latest spring boot version of the neo4j driver
      - unity aai jwt header token is at+jwt however, the latest
          springframework security does not support this. Hence.
          exclude the current version of nimbus-jose-jwt and
          add version 7.9 that support at+jwt header.
      - inside the application.yml and application-dev.yml use the
          properties setting for the neo4j instead of the spring
          neo4j properties
      - enable more neo4j logs info
      - use the proper variable name for the sceret value inside
          the docker file.
      
      Result:
      
      No visible changes to the end user
      0167257c
  17. 16 Oct, 2020 4 commits
  18. 15 Oct, 2020 3 commits
    • femiadeyemi's avatar
      fix minor typo · b015c7c6
      femiadeyemi authored
      `tar` -> `jar`
      b015c7c6
    • femiadeyemi's avatar
      create a `target` cache path · 79096995
      femiadeyemi authored
      79096995
    • femiadeyemi's avatar
      skip tests · 5b989230
      femiadeyemi authored
      Motivation:
      
      When the test stage of the ci/cd is trigger, it currently fail. 
      The main reason is that it took more than the stipulated time of 
      one hour to run.
      
      Modification:
      
      skip unit/integration tests
      
      Result:
      
      no testing
      5b989230