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

Added username/ password verification #60

Merged
merged 3 commits into from May 8, 2014
Merged

Conversation

@varshneyjayant
Copy link
Contributor

@varshneyjayant varshneyjayant commented May 6, 2014

No description provided.

mchaudhary added a commit that referenced this pull request May 8, 2014
Added username/ password verification
@mchaudhary mchaudhary merged commit c79bba4 into loggly:master May 8, 2014
else
logMsgToConfigSysLog "WARNING" "WARNING: logs-01.loggly.com is not reachable. Please check your network and firewall settings. Continuing to configure Loggly on your system..."
fi
if [ $(curl -s -u $LOGGLY_USERNAME:$LOGGLY_PASSWORD http://$LOGGLY_ACCOUNT.loggly.com/apiv2/customer | grep "Unauthorized" | wc -l) == 1 ]; then

This comment has been minimized.

@vinhn

vinhn May 8, 2014

Ok to send password in clear text over unencrypted connection? Should this be over https instead?

This comment has been minimized.

@mchaudhary

mchaudhary May 8, 2014
Contributor

Great catch. This should be over https. I will fix it.

fi

echo "Checking if logs-01.loggly.com is reachable"
if [ $(ping -c 1 logs-01.loggly.com | grep "1 packets transmitted, 1 received, 0% packet loss" | wc -l) == 1 ]; then

This comment has been minimized.

@vinhn

vinhn May 8, 2014

Many of these urls should be defined as variables/constants at the top of the script, instead of being embedded into these functions. Users who care about security will definitely look at this script before they actually execute it. A nicely constructed script that gives clear visibility into what it is doing will automatically win over trust on a user's part. A complex script will do the exact opposite and can increase the chance of it not being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.