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.

triggerUri exposes plain text Blue Iris Username and Password

See original GitHub issue

Is your feature request related to a problem? Please describe. When adding a triggerUri for a Blue Iris system that requires authentication, my user and pw are in a file in plain text.

Describe the solution you’d like Preferably this would be a secret, environment variable, or in a file of key/value pairs that get’s ignored when a user backs up their configuration (similar to home assistant: https://www.home-assistant.io/docs/configuration/secrets/).

The best solution in my mind would be to take mustache templating further. For example in the docs there is:

"http://192.168.1.100:81/admin?trigger&camera=FrontDoorHD&user=username&pw=password"

This could become:

"http://192.168.1.100:81/admin?trigger&camera=FrontDoorHD&user={blueIris.username}&pw={blueIris.password}"

This could look inside settings.json. Then alternatively settings.json could use mustache templating to look to an environment variable or secret or key/value pair file; which would be a benefit to all the other settings that have a username/password. Then the mustache templating in triggerUri could consistently look to settings.json. Something like:

{
  "blueIris": {
    "username": "{ENV.BLUE_IRIS_USERNAME}",
    "password": "{ENV.BLUE_IRIS_PASSWORD}"
  }
}

…or possibly SECRET.BLUE_IRIS_PASSWORD or something along those lines.

Describe alternatives you’ve considered I described a couple alternatives above.

Additional context I think the main problem here is the need to separate configuration from secrets. If my server dies, how do I get my configuration back to get up and running again; ideally it’s backed up, but it shouldn’t be backed up with plain text secrets. With my other docker containers I have written a shell script that grabs usernames/passwords from LastPass using their cli and then uses sed to drop them in .env files and then I reference those .env files in my docker-compose (https://docs.docker.com/compose/environment-variables/#the-env_file-configuration-option).

ALSO, I love node/typescript and can probably provide some assistance in this implementation.

ALSO ALSO, thanks to everyone that has contributed to this project. I absolutely love it!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
neilennscommented, Oct 31, 2020

@schford This isn’t specific to BlueIris username/password. The API keys and whatnot for the other notification methods are required and considered secrets as well.

1reaction
neilennscommented, Oct 11, 2020

When you do your next PR make sure you pull in my change for #380 from main.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SMTP text error - Blue Iris
My SMS has been working for a few years without issue. Suddenly, it stopped working. I am getting the following error:
Read more >
PSA: don't put your Blue Iris server directly on the Internet
Here are some of mine: Isolate the Blue Iris server in its own VLAN with access blocked to Internet and other VLANs. Disable...
Read more >
How to setup Blue Iris Notifications - YouTube
In this video I will show you the basic features you can setup in Blue Iris to trigger alerts on your phone. I...
Read more >
The Blue Iris Web Interface (UI3) - YouTube
Our browser interface (or "UI3" as it's called internally) is a very powerful client that you may use to connect to your Blue...
Read more >
Using Gmail with Blue Iris - YouTube
Demonstrates authorizing Gmail to send email alerts through Blue Iris version 5.5.7 and newer.TAKE 3. The Google app verification process ...
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