Skip to content

Commit

Permalink
🔥 Removes secrets support, now natively supported by Hassio (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Sep 17, 2019
1 parent 68fa417 commit 16e98bf
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 69 deletions.
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.

0 comments on commit 16e98bf

Please sign in to comment.