Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keto version API does not work in REST API and CLI. #696

Closed
counter2015 opened this issue Sep 8, 2021 · 0 comments · Fixed by #714
Closed

Keto version API does not work in REST API and CLI. #696

counter2015 opened this issue Sep 8, 2021 · 0 comments · Fixed by #714
Assignees
Labels
bug Something is not working.
Milestone

Comments

@counter2015
Copy link

counter2015 commented Sep 8, 2021

Describe the bug

Can't get keto version from REST API and CLI.

Reproducing the bug
Following the steps here

$ brew install ory/keto/keto
brew install ory/keto/keto
==> Installing keto from ory/keto
==> Downloading https://github.com/ory/keto/releases/download/v0.6.0-alpha.3/keto_0.6.0-alpha.3-sqlite_macos_64bit.tar.gz
==> Downloading from https://github-releases.githubusercontent.com/125619154/aa7abb00-a906-11eb-81f9-6beafd7ba57c?X-Amz-Algorithm=AWS4
######################################################################## 100.0%
🍺  /usr/local/Cellar/keto/0.6.0-alpha.3: 6 files, 26.8MB, built in 8 seconds

The keto version seems not work

$ keto version
Version:			master
Build Commit:	undefined
Build Timestamp:	undefined

$ which keto
/usr/local/bin/keto

$  ll /usr/local/bin/keto
lrwxr-xr-x  1 counter  admin  37  9  7 15:05 /usr/local/bin/keto@ -> ../Cellar/keto/0.6.0-alpha.3/bin/keto

Then I start keto server in local by this config

version: v0.6.0-alpha.3

log:
  level: trace
  leak_sensitive_values: true


namespaces:
  - id: 0
    name: role
  - id: 1
    name: resume
  - id: 2
    name: user

dsn: postgresql://postgres:[email protected]:5432/postgres

serve:
  read:
    host: 0.0.0.0
    port: 4466
  write:
    host: 0.0.0.0
    port: 4467
$ keto serve -c keto.yml

$ keto migrate up --all-namespaces -y -c keto.yml

And in PostMan
image

Expected behavior

It should return correct version of keto.

Environment

  • Version: 0.6.0-alpha.3
  • Environment: Mac, PostMan

See also #692

@zepatrik zepatrik self-assigned this Sep 13, 2021
@zepatrik zepatrik added bug Something is not working. ci labels Sep 13, 2021
@zepatrik zepatrik added this to the v0.7.0 milestone Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants