Hi, is there any cerbos sample example where Basic...
# help
s
Hi, is there any cerbos sample example where Basic Auth is Enabled in Cerbos config, so this my
conf.yaml
, but
Copy code
server:
  #grpcListenAddr: "unix:/tmp/sock/cerbos.grpc"
  #httpListenAddr: "unix:/tmp/sock/cerbos.http"
  adminAPI:
    enabled: true
    adminCredentials:
      username: admin
      passwordHash: JDJ5JDEwJEU2V2ExLmVCSFdMUXhQZWtxVnJPeGVWNDFjMEhBR1JBd3d0SXNjbDlwZ2k2UWhOVlM4cXkuCgo=
  grpcListenAddr: ':3593'
  httpListenAddr: ':3592'

storage:
  disk:
    directory: /policies
    watchForChanges: true
  driver: disk
• i've added the configuration, but it's not enabling the basic auth, i'm not sure what is the issue
d
Hi Siddhant, This configuration enables basic auth for the Admin API only. Are you having problems accessing the Admin API?
s
ok i understood, but how do you enable basic auth or something to cerbos dashboard ?
d
Sorry, what are you referring to by cerbos dashboard?
Swagger definitions?
s
Yeah, basic auth to cerbos swagger definitions
d
I think there’s a way to disable the swagger definitions page. Let me try to find it.
a
Set this in your config to disable the swagger UI
Copy code
server:
  apiExplorerEnabled: false