membersound
membersound

Reputation: 86847

How to best store credentials in a GAE app?

How could one easily store some data in a simple GAE Google App Engine Application? Like username or some Address information, that should be available again if the application is either restarted or redeployed due to an update.

Is Datastore the way to go? Or what should I have a look at?

Upvotes: 1

Views: 67

Answers (2)

Lipis
Lipis

Reputation: 21835

You can either use Datastore or Cloud SQL. The Getting Started Tutorial is actually demonstrating how to use the Datastore in case you haven't play with it at all.

Upvotes: 2

Tim Hoffman
Tim Hoffman

Reputation: 12986

From your question I am assuming the credentials are required for connecting to other services, rather than individual credentials for lots of different users.

So on that basis if you need to change them frequently then consider the datastore.

If infrequently and you don't mind updating you code base, then leave them in the filesystem.

Other things to consider how senstive are they, who can see them.

You may have more people that have access to the datastore than can deploy/download code base (assuming you left that capability turned on) which may also be a deciding factor.

Upvotes: 1

Related Questions