codenotary / immugw

Apache License 2.0
23 stars 4 forks source link

immugw as auditor - error - unknown method CurrentRoot #20

Open cezar-radan opened 1 year ago

cezar-radan commented 1 year ago

What happened I don't know if this problem is a bug but, please, I need guidance to overcome the issue.

I am using immudb (v.1.3.2) and immugw (latest) as docker containers. Immugw container is set to run as auditor (IMMUGW_AUDIT=true). Actually the environment variables are:

    environment:
      - IMMUGW_ADDRESS=0.0.0.0
      - IMMUGW_PORT=3323
      - IMMUGW_IMMUDB_ADDRESS=immudb
      - IMMUGW_IMMUDB_PORT=3322
      - IMMUGW_AUDIT=true
      - IMMUGW_AUDIT_INTERVAL=1m
      - IMMUGW_AUDIT_USERNAME=immudb
      - IMMUGW_AUDIT_PASSWORD=immudb

Unfortunately, inside immugw log I have noticed an error :

error getting current root: rpc error: code = Unimplemented desc = unknown method CurrentRoot for service immudb.schema.ImmuService

I don't understand what I am doing wrong. Should I perform additional configuration ?

What you expected to happen immugw to run in audit mode without errors

How to reproduce it (as minimally and precisely as possible)

Environment

Additional info (any other context about the problem)

jeroiraz commented 1 year ago

What happened I don't know if this problem is a bug but, please, I need guidance to overcome the issue.

I am using immudb (v.1.3.2) and immugw (latest) as docker containers. Immugw container is set to run as auditor (IMMUGW_AUDIT=true). Actually the environment variables are:

    environment:
      - IMMUGW_ADDRESS=0.0.0.0
      - IMMUGW_PORT=3323
      - IMMUGW_IMMUDB_ADDRESS=immudb
      - IMMUGW_IMMUDB_PORT=3322
      - IMMUGW_AUDIT=true
      - IMMUGW_AUDIT_INTERVAL=1m
      - IMMUGW_AUDIT_USERNAME=immudb
      - IMMUGW_AUDIT_PASSWORD=immudb

Unfortunately, inside immugw log I have noticed an error :

error getting current root: rpc error: code = Unimplemented desc = unknown method CurrentRoot for service immudb.schema.ImmuService

I don't understand what I am doing wrong. Should I perform additional configuration ?

What you expected to happen immugw to run in audit mode without errors

How to reproduce it (as minimally and precisely as possible)

Environment

Additional info (any other context about the problem)

Hi @cezar-radan, thanks for reaching out. We're about to release a new version of immugw that will be compatible with 1.3.2+. Meanwhile, it should be possible to build from current master, see section Build the container images yourself in the readme (or just the binary with make)

cezar-radan commented 1 year ago

@jeroiraz Thank you for your fast answer and for guidance.