Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.

speed up not controlled user authentication #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
7 changes: 7 additions & 0 deletions authorized_keys_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ fi
# instance you use this script runs in another.
: ${ASSUMEROLE:=""}

# Special group to mark users as being synced by our script
: ${LOCAL_MARKER_GROUP:="iam-synced-users"}

if ! getent group "${LOCAL_MARKER_GROUP}" | grep &>/dev/null "\b$1\b"; then
exit 1
fi

if [[ ! -z "${ASSUMEROLE}" ]]
then
STSCredentials=$(aws sts assume-role \
Expand Down