Hi All, While using the helm installation in Mini...
# ory-selfhosting
w
Hi All, While using the helm installation in Minikube cluster using the following commands, it fails pod/hydra with an error:
Copy code
helm install \
    --set 'hydra.config.secrets.system={$(LC_ALL=C tr -dc 'A-Za-z0-9' < /dev/urandom | base64 | head -c 32)}' \
    --set 'hydra.config.dsn=<postgres://foo:bar@baz:1234/db>' \
    --set 'hydra.config.urls.self.issuer=<http://public.hydra.localhost/>' \
    --set 'hydra.config.urls.login=<http://example-idp.localhost/login>' \
    --set 'hydra.config.urls.consent=<http://example-idp.localhost/consent>' \
    --set 'hydra.config.urls.logout=<http://example-idp.localhost/logout>' \
    --set 'ingress.public.enabled=true' \
    --set 'ingress.admin.enabled=true' \
    --set 'hydra.dangerousForceHttp=true' \
    --name hydra-example \
    ory/hydra
The error `ime=2022-12-15T084226Z level=error msg=Scheme from configuration key
urls.self.issuer
must be
https
when
dev
is
false
. Got scheme in value
<http://public.hydra.localhost/>
is
http
. To find out more, use
hydra help serve
. audience=application service_name=Ory Hydra service_version=v2.0.1Error: issuer URL scheme must be HTTPS unless development mode is enabled` Looks like
hydra.dangerousForceHttp=true
is not applicable. Can someone help?
g
have you tried
-set '<http://hydra.dev|hydra.dev>=true'
?
🙌 1
w
Thanks @gentle-thailand-50068. It works!
✅ 1
Are the command different or is it because of version issue? Fo i.e the following command doesn’t work with helm installation
Copy code
hydra clients create \
    --endpoint <http://admin.hydra.localhost/> \
    --id my-client \
    --secret secret \
    -g client_credentials
g
I’m not very knowledgeable about hydra, but have you tried passing
--dev
?
w
Yes. This seems to be a version issue? Not sure. Directly in Hydra Pod and issued the command
w
Hi there, yeah the docs are for hydra 1.x while the latest image in the charts is 2.0.x
there was a slight change in command parameters, a few
dangerousFOO
flags were merged into
dev
mode
it seems the docs were not upgraded to match that 😕
w
Oh ok. Np.