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

docs: clarify required variables for starting Kratos #352

Closed
tomascharad opened this issue Apr 17, 2020 · 6 comments · Fixed by #376
Closed

docs: clarify required variables for starting Kratos #352

tomascharad opened this issue Apr 17, 2020 · 6 comments · Fixed by #376
Labels
help wanted We are looking for help on this one.

Comments

@tomascharad
Copy link

Describe the bug

When I pull the image from Docker Hub and try to run it, it asks me to include the file

Reproducing the bug

Steps to reproduce the behavior:

Server logs

Server configuration

Expected behavior

It should run by itself, as stated in docs: https://www.ory.sh/kratos/docs/reference/configuration.
"If file $HOME/.kratos.yaml exists, it will be used as a configuration file which supports all configuration settings listed below."

By saying 'If file exists' it shouldn't be required.

Environment

  • Version: 16-04-2020 latest version
  • Environment: Docker

Additional context

I'm running the instance on heroku, do you know how could I make it run without making any modifications to the original image?

@aeneasr
Copy link
Member

aeneasr commented Apr 17, 2020

Could you please provide the server logs? I am asking because it is possible to run Kratos without a configuration file, but you still need to provide the required configuration values via env vars.

I'm running the instance on heroku, do you know how could I make it run without making any modifications to the original image?

Heroku will probably not be sufficient as it does not have (afaik) the ability to expose a port only on an internal / privileged network or alternatively with a security system in front, which is required for ORY Kratos' Admin API Port.

@tomascharad
Copy link
Author

tomascharad commented Apr 17, 2020

Ok with heroku, I''ll try another service, If i run this on my local computer I get this.

Could you please help me with setting up on my local @aeneasr?

image

These are the heroku logs

image

On my local computer I've cloned the repo and build the image with make docker and in heroku I've just sent the image from Docker Hub.

PS: I've made it work, just entered all the requried config variables as ENV variables.

@aeneasr
Copy link
Member

aeneasr commented Apr 20, 2020

Perfect! I'll be closing this then, yes?

@aeneasr aeneasr closed this as completed Apr 20, 2020
@tomascharad
Copy link
Author

tomascharad commented Apr 20, 2020

Hi @aeneasr,

I think that at least you should update the docs before closing the issue, so people understand that tweaking the .kratos.yaml is a must, or at least setting up the ENV variables, which is not very clear on the docs and how to do so.

But for me everything is ok. Thanks.

@aeneasr
Copy link
Member

aeneasr commented Apr 23, 2020

Yup, makes sense!

@aeneasr aeneasr reopened this Apr 23, 2020
@aeneasr aeneasr added this to the v0.2.0-alpha.1 milestone Apr 23, 2020
@aeneasr aeneasr added the help wanted We are looking for help on this one. label Apr 23, 2020
@aeneasr aeneasr changed the title .kratos.yaml is requried, not included in image on docker hub and not stated as needed in docs docs: clarify required variables for starting Kratos Apr 23, 2020
@tomascharad
Copy link
Author

tomascharad commented Apr 26, 2020

If it helps @aeneasr

COURIER_SMTP_CONNECTION_URI
smtps://foo:bar@my-mailserver:1234/
 
DATABASE_URL
postgres://xxx:yyy@zzz:ttt/uuu
 
HASHERS_ARGON2_MEMORY
11883317
 
IDENTITY_TRAITS_DEFAULT_SCHEMA_URL
http://WBwVKWvcJYnRFLOpuTSaootvh.bwCxwHzemclRM,p2bR9wN.avr4J5iwFryiF
 
SELFSERVICE_LOGOUT_REDIRECT_TO
http://TPNXSkIbeASVeSLyyRTbVjdkX.ygfeQk8llwnWZ+NeenrZJJHgd8BAoqaQ5iHO9BW-DeqlXBuYKVlL0ijQpJw9Q
 
HASHERS_ARGON2_ITERATIONS
21236220
 
HASHERS_ARGON2_PARALLELISM
71551855
 
HASHERS_ARGON2_SALT_LENGTH
80719037
 
HASHERS_ARGON2_KEY_LENGTH
86477135
 
URLS_PROFILE_UI
http://BMvdJD.oumrvPl+.YTtiPL6I21HYzlRsoTW-Dd1-lDUCJltAHcth.+eggbpCfQvWY.YSS3i
 
URLS_MFA_UI
http://jJAIvAwZyxLFzQjBYtcGhLGuzwudpru.dbF.OeGVZf-fC
 
URLS_LOGIN_UI
http://bC.dsmw,wLBWDeODw.jzOSI
 
URLS_REGISTRATION_UI
http://aFuZJoeUxZWbuTpHLFZvK.gxlPs3in99K,qmGgreVGQFtdAJbjtOmf4,oaXujXoOfC9
 
URLS_ERROR_UI
http://XyOnfsMVwIYMBlWKnkCPLOEjjM.czcUWzDof8Yf3EfshOx2zlNKWInKZLdpwX6P+UoqMabq6j7wR2Wpgx+zXrxhS34dr
 
URLS_VERIFY_UI
https://AFOEiEYuMWbJuHEggEbQ.pfQWlSMyPl,,pcK80YpSmfTu4+8fJfb9nsteihlmuak
 
URLS_DEFAULT_RETURN_TO
http://zkQAiAiiIYb.ccihU+5ATPZJD2Pw8g,BV1p3ttrEDUdvY1.smb0rA
 
DSN
postgres://xxx:yyy@zzz:ttt/uuu
 
URLS_SELF_PUBLIC
https://soaSpPGphWtHdGE.jnisR2qXIxFM6sRpbYF6B9pd1FBsbPIWBKPsXHYbqlRhdmG0xq.pO0IJ4m
 
URLS_SELF_ADMIN
http://AW.pbumgzDhx3hSJ+clKU7Oe,amEjmmbm1Ru2yMg0k6kV7cdSKDcPsn1QYXOVUB1071goU
 
URLS_WHITELISTED_RETURN_TO_DOMAINS
http://CTLQXiigUbkVwraZAOiDopaD.lzwMQNslH,m2aPn
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted We are looking for help on this one.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants