-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If a user implements the user-auth-service trigger in a plugin and that plugin does not echo the passed in app(s) on stdout, the app is assumed to not exist. This mirrors the functionality for applications in regards to auth filtering. This may still need auditing to ensure it covers everything and doesn't cause issues, but local testing implies that everything is working as expected.
- Loading branch information
1 parent
a7e615c
commit a1fa0dd
Showing
9 changed files
with
94 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,13 @@ | ||
#!/usr/bin/env bash | ||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions" | ||
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/config" | ||
source "$PLUGIN_BASE_PATH/common/functions" | ||
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/functions" | ||
set -eo pipefail | ||
[[ $DOKKU_TRACE ]] && set -x | ||
|
||
PLUGIN_BASE_PATH="$PLUGIN_PATH" | ||
if [[ -n $DOKKU_API_VERSION ]]; then | ||
PLUGIN_BASE_PATH="$PLUGIN_ENABLED_PATH" | ||
fi | ||
source "$PLUGIN_BASE_PATH/common/functions" | ||
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/functions" | ||
|
||
APP="$1" | ||
pushd "$PLUGIN_DATA_ROOT" >/dev/null | ||
for SERVICE in *; do | ||
for SERVICE in $(fn-services-list false); do | ||
[[ -n "$SERVICE" ]] || continue | ||
dokku_log_verbose_quiet "Unlinking from $SERVICE" | ||
remove_from_links_file "$(basename "$SERVICE")" "$APP" | ||
done | ||
popd >/dev/null 2>&1 || pushd "/tmp" >/dev/null | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters