brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grkvlt <>
Subject [GitHub] incubator-brooklyn pull request: Miscellaneous 20141007
Date Wed, 08 Oct 2014 01:00:07 GMT
Github user grkvlt commented on a diff in the pull request:
    --- Diff: ---
    @@ -237,20 +237,19 @@ if ! ssh ${SSH_OPTS} ${USER}@${HOST} "test -f .brooklyn/";
         log -n "Configuring Brooklyn properties..."
         ssh ${SSH_OPTS} ${USER}@${HOST} "mkdir -p .brooklyn"
         ssh ${SSH_OPTS} ${USER}@${HOST} "curl -L -s -o .brooklyn/"
    -    ssh ${SSH_OPTS} ${USER}@${HOST} "curl -L -s -o .brooklyn/catalog.xml"
         # Generate Brooklyn admin password
         if ${GENERATE_PASSWORD}; then
    -        GENERATED=$(dd if=/dev/random bs=1 count=8 2> /dev/null | uuencode -m - |
sed -n 2p | tr -dc "A-Za-z0-9")
    +        GENERATED=$(dd if=/dev/random bs=1 count=32 2> /dev/null | uuencode -m - |
sed -n 2p | tr -dc "A-Za-z0-9")
             SALT=$(echo ${GENERATED} | cut -c1-4)
             PASSWORD=$(echo ${GENERATED} | cut -c5-12)
             which shasum && SHA256="shasum -a 256"
             which sha256sum && SHA256="sha256sum"
    -        HASH=$(echo -n ${SALT}${PASSWORD} | ${SHA256} | cut -d\  -f1)
    +        HASH=$(printf '${SALT}${PASSWORD}\\00' | ${SHA256} | cut -d\  -f1)
             ssh ${SSH_OPTS} ${USER}@${HOST} "tee -a .brooklyn/" > /dev/null
2>&1 <<EOF${USER}${USER}=${SALT}${USER}=${HASH} = ${USER}${USER}.salt = ${SALT}${USER}.sha256 = ${HASH}
    --- End diff --
    Note that they won't actually work with the M1 release in the script; but if you change
version to 0.7.0-SNAPSHOT I think it's all good.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message