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

Removes secrets support, now natively supported by Hassio #14

Merged
merged 1 commit into from
Sep 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions lib/bashio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ declare __BASHIO_LOG_FORMAT=${LOG_FORMAT:-${__BASHIO_DEFAULT_LOG_FORMAT}}
declare __BASHIO_LOG_TIMESTAMP=${LOG_TIMESTAMP:-${__BASHIO_DEFAULT_LOG_TIMESTAMP}}
declare __BASHIO_HIBP_ENDPOINT=${HIBP_ENDPOINT:-${__BASHIO_DEFAULT_HIBP_ENDPOINT}}
declare __BASHIO_CACHE_DIR=${CACHE_DIR:-${__BASHIO_DEFAULT_CACHE_DIR}}
declare __BASHIO_HA_SECRETS=${HA_SECRETS:-${__BASHIO_DEFAULT_SECRETS}}

# ==============================================================================
# MODULES
Expand Down Expand Up @@ -80,8 +79,6 @@ source "${__BASHIO_LIB_DIR}/net.sh"
source "${__BASHIO_LIB_DIR}/pwned.sh"
# shellcheck source=lib/repositories.sh
source "${__BASHIO_LIB_DIR}/repositories.sh"
# shellcheck source=lib/secrets.sh
source "${__BASHIO_LIB_DIR}/secrets.sh"
# shellcheck source=lib/services.sh
source "${__BASHIO_LIB_DIR}/services.sh"
# shellcheck source=lib/string.sh
Expand Down
4 changes: 0 additions & 4 deletions lib/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ QUERY

result=$(bashio::jq "${__BASHIO_ADDON_CONFIG}" "${query}")

if [[ "${result}" == '!secret '* ]]; then
result=$(bashio::secret "${result}")
fi

printf "%s" "${result}"
return "${__BASHIO_EXIT_OK}"
}
Expand Down
1 change: 0 additions & 1 deletion lib/const.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ readonly __BASHIO_DEFAULT_HASSIO_TOKEN=""
readonly __BASHIO_DEFAULT_ADDON_CONFIG="/data/options.json"
readonly __BASHIO_DEFAULT_HIBP_ENDPOINT="https://api.pwnedpasswords.com/range"
readonly __BASHIO_DEFAULT_CACHE_DIR="/dev/shm/bashio"
readonly __BASHIO_DEFAULT_SECRETS="/config/secrets.yaml"

# Exit codes
readonly __BASHIO_EXIT_OK=0 # Successful termination
Expand Down
61 changes: 0 additions & 61 deletions lib/secrets.sh

This file was deleted.