Skip to content

charity-base/charity-base-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CharityBase Auth

Management of CharityBase API Keys

Development

yarn dev

Dev Environment Variables

Expected environment variables are listed in env in now.json. You may define them in a .env as follows:

# example .env file in charity-base-auth
CHARITY_BASE_DYNAMO_ACCESS_KEY_ID=example-key-id
CHARITY_BASE_DYNAMO_SECRET_ACCESS_KEY=example-secret-key
...

Note: these values will not override any environment variables already set e.g. in your .bash_profile.

Deployment

yarn deploy:production

Note: this requires Now which can be installed globally with npm: npm i -g now

Prod Environment Variables

To ensure our sensitive environment variables are only accessible by the code, we store them as Now secrets. This is achieved on the command line:

now secret add charity-base-dynamo-access-key-id example-key-id
now secret add charity-base-dynamo-secret-access-key example-secret-key
...

The environment variable names are mapped to the secret names in env in now.json. Note the @ prefixing each secret name.

About

Management of CharityBase API Keys

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published