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

Add blog-storage-demo to Turbine Go examples #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tsinghgill
Copy link

Adding Blog Storage Demo (S3 to Postgres) to example Go apps.

Copy link
Contributor

@jayjayjpg jayjayjpg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reads great so far! I left one more suggestion on obscuring the resource urls, so this can be made available on our public repository more easily, but otherwise this should be good to go -- thank you for putting this together!

var outputStream []turbine.Record

webhookURL := "https://webhook.site/ac38ce4e-c50a-4a56-b098-8b038890d94f"
baseURL := "https://meroxas3bucket.s3.us-east-2.amazonaws.com/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the bucket and the webhook publicly available? If yes, we could maybe hide the values via secrets. This way, anyone who browses the repo wouldn't be able to use those urls to write to them themselves:

E.g.

What do you think?

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

Successfully merging this pull request may close these issues.

None yet

2 participants