WebFaction
Community site: login faq

Hello to everyone,

I want to write a Python script in order to communicate with the handful Webfaction API and call that script through the cron.

server = xmlrpclib.ServerProxy('https://api.webfaction.com/')

ses, acc = server.login('username', 'password', 'Webxxx', 2)

# rest code here

My question is: Should the script (which will live somewhere in my server's home folder) contain my username and password as plain text? Is this secure as secure is to compromise Webfaction servers?

asked 13 Dec '16, 12:08

nik's gravatar image

nik
907
accept rate: 16%

edited 13 Dec '16, 14:21


As long as you maintain secure permissions on your home directory and its contents, keep all of your applications secure, use strong passwords everywhere, etc, then your credentials should be safe. The only exception to this would be if the server itself was severely compromised (ie if somebody got root), which is very unlikely.

permanent link

answered 13 Dec '16, 17:48

seanf's gravatar image

seanf ♦♦
11.4k21132
accept rate: 37%

Yeap! That's what I thought after posting the question. Thanks for verifying my thoughts!

(13 Dec '16, 19:29) nik nik's gravatar image

"As long as you maintain secure permissions on your home directory and its contents"

Could you confirm that this is switched on by default?

(01 Feb, 18:02) JustAnotherW... JustAnotherWebFactionUser's gravatar image

Yes, we create customer home directories with permissions sufficient to keep other users out. However, it's entirely up to you to keep them that way.

Our recommended permissions for sensitive configuration files are 600.

(01 Feb, 18:39) seanf ♦♦ seanf's gravatar image

Great. Thanks!

(01 Feb, 19:42) JustAnotherW... JustAnotherWebFactionUser's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×69

question asked: 13 Dec '16, 12:08

question was seen: 560 times

last updated: 01 Feb, 19:42

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM