Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-4161

RBAC - mock-rbac fails when initialize on local infra

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Undefined Undefined
    • None
    • None
    • Identity Management
    • None
    • HMSIDM Sprint 38, HMSIDM Sprint 39
    • 2

      Summary

      Meanwhile using local infra which launch mock-rbac service in a container, and use UI together, I realized the process fails on initialization.

       

      Steps to replay

      1. Change to branch hms-3523-test-edit-permission
      2. Run: `make compose-clean clean build compose-build compose-up`
      3. Check containers running by: `podman ps -a`

       

      Current result

      CONTAINER ID  IMAGE                                    COMMAND               CREATED         STATUS                     PORTS                   NAMES
      46d703cafc9a  docker.io/mockserver/mockserver:5.14.0   -logLevel DEBUG -...  17 seconds ago  Up 17 seconds              0.0.0.0:8010->8010/tcp  idmsvc_mock_1
      12940664485d  quay.io/cloudservices/postgresql-rds:15  run-postgresql        16 seconds ago  Up 17 seconds (healthy)    0.0.0.0:5432->5432/tcp  idmsvc_database_1
      3b323389bf29  quay.io/podengo/mock-rbac:1.0.0          /opt/bin/mock-rba...  16 seconds ago  Exited (2) 16 seconds ago  0.0.0.0:8020->8020/tcp  idmsvc_mock-rbac_1

       

      Expected result

      idmsvc_mock-rbac_1 running.

       

      Additional information

      podman logs idmsvc_mock-rbac_1
      2024/05/16 17:04:43 WARN Not using config.yaml error="Config File \"config.yaml\" Not Found in \"[/opt/src/config]\""
      2024/05/16 17:04:43 ERROR Configuration validation error namespace=Config.Application.MainSecret rule.tag=required rule.value=0x81e080 got="" type=string
      panic: Invalid configurationgoroutine 1 [running]:
      github.com/podengo-project/idmsvc-backend/internal/config.Get()
              /go/src/app/internal/config/config.go:364 +0x1c6
      main.main()
              /go/src/app/cmd/mock-rbac/main.go:32 +0x69

       

            avisiedo@redhat.com Alejandro Visiedo
            avisiedo@redhat.com Alejandro Visiedo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: