Skip to content

Commit

Permalink
Merge branch 'main' of github.com:sgrove/secrets-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Grove authored and Sean Grove committed Jul 31, 2021
2 parents 4a93cab + 7e1e69c commit 67b9348
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
Deploy this repo to Netlify, then go to https://authlify-dev.netlify.app/ to enable the addon
1. Deploy this repo to Netlify using
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/sgrove/secrets-test)

2. Go to https://authlify-dev.netlify.app/ to enable the addon

3. After enabling Authlify for a site, be sure to force a new deploy with `clear cache and deploy site` (this will be done automatically with an update on Sunday)

After it's deployed, you can hit three endpoints:

1. "/.netlify/functions/secret" - see all enabled auths + secrets
1. "/.netlify/functions/conditionalSecrets?skipSecrets=true" - see and endpoint that can optionally retrieve secrets, useful to see the overhead of the current implementation
1. "/.netlify/functions/secrets" - see all enabled auths + secrets (sanitized so they're not exposed)
1. "/.netlify/functions/conditionalSecrets?skipSecrets=true" - an endpoint that can optionally retrieve secrets, useful to see the overhead of the current implementation
1. "/.netlify/functions/addIssueComment?comment=Hello there!" - an endpoint that requires GitHub to be authenticated with sufficient scopes (default should be fine). Will leave a comment on https://github.com/sgrove/blog/issues/66

Be sure to destroy the app after you finish testing so there are no leaked secrets.
Be sure to destroy the app after you finish testing so there are no leaked secrets.

0 comments on commit 67b9348

Please sign in to comment.