question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Credentials as ENV vars not working?

See original GitHub issue

I’m trying to use in a demo environment with easiest-possible login.

docker run -d -p 3000:3000 -e SQLPAD_ADMIN="abc@abc.com" -e SQLPAD_PASSPHRASE="abc" sqlpad/sqlpad

The env vars are getting passed in to Docker okay:

docker inspect ...
...
 "Env": [
                "SQLPAD_ADMIN=abc@abc.com",
                "SQLPAD_PASSPHRASE=abc",
...

But I cannot login with the given credentials.

Am I missing something? (Sorry if so).

How can I deliver/deploy/demo with a known set of credentials that “just work”?

Thanks. This is an awesome product.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rickbergfalkcommented, Feb 8, 2019

Apologies for the poor docker documentation… I know I need to work on that. The best thing I can point to right now is an example using mssql https://github.com/rickbergfalk/sqlpad/blob/master/docker-validation/mssql/docker-compose.yml

Today there is no way to configure connections via env vars.

What is your take on user accounts in SQLPad? If they were removed would that be beneficial for your use case?

1reaction
markscommented, Feb 16, 2018

@rickbergfalk officially +1’ing this. Would you have any guidance of where one would look to disable the authentication requirement?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting credentials through env. variable are not working #1807
I'm failing to use env. variables to set custom pypi credentials. My pyproject.toml contains private pypi's like this: [[tool.poetry.
Read more >
Using credentials from environment variables - AWS SDK for ...
To authenticate to Amazon Web Services, the SDK first checks for credentials in your environment variables. The SDK uses the getenv() function to...
Read more >
Is it secure to store passwords as environment variables ...
For an npm to look at your credentials if they are in the ENV is a simple matter of process.ENV . If on...
Read more >
How to separate your credentials, secrets, and configurations ...
This article shows how to separate your credentials and configurations from the application source code with the environment variables and ...
Read more >
Keep your code secure by using environment variables and ...
Then you just publicly present your credentials to anyone who comes across it! ... Loading env vars into the env from an env...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found