-
Notifications
You must be signed in to change notification settings - Fork 14
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 functionality and documentation for TLS certs and ACLs #9
Conversation
@@ -0,0 +1,27 @@ | |||
-----BEGIN RSA PRIVATE KEY----- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you may get an email from github complaining about this file
just a random cert so /shrug
@@ -0,0 +1,21 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventstore has a nice wizard to create these files these days
this was autogenerated by that
connection_string: "esdb://localhost:2113?tls=true", | ||
opts: [ | ||
transport_opts: [ | ||
cacertfile: Path.join([__DIR__ | ~w(.. certs ca ca.crt)]) | ||
] | ||
], | ||
credentials: {"admin", "changeit"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's as easy as it gets 🚀
# YARD run eventstore/erlang versions in a matrix? | ||
services: | ||
eventstore: | ||
# image: eventstore/eventstore:21.2.0-bionic | ||
image: docker.pkg.github.com/eventstore/eventstore/eventstore:ci | ||
credentials: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
env: | ||
EVENTSTORE_INSECURE: "true" | ||
ports: | ||
- 2113:2113 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: install EventStoreDB | ||
run: | | ||
curl -s https://packagecloud.io/install/repositories/EventStore/EventStore-OSS/script.deb.sh | sudo bash | ||
sudo apt update | ||
sudo apt install eventstore-oss | ||
sudo mkdir -p /etc/eventstore/certs | ||
sudo cp -r ./certs/ca /etc/eventstore/certs/ | ||
sudo cp ./certs/node1/* /etc/eventstore/certs/ | ||
sudo cp ./certs/eventstore.conf /etc/eventstore/ | ||
sudo chown -R eventstore /etc/eventstore | ||
sudo chgrp -R eventstore /etc/eventstore | ||
sudo systemctl restart eventstore | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we run the eventstore in CI with a custom cert (./certs/ca/ca.crt
)
connects #7
also adds support for stream metadata