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 functionality and documentation for TLS certs and ACLs #9

Merged
merged 15 commits into from
Apr 15, 2021
Merged

Conversation

the-mikedavis
Copy link
Collaborator

@the-mikedavis the-mikedavis commented Apr 15, 2021

connects #7

also adds support for stream metadata

@the-mikedavis the-mikedavis self-assigned this Apr 15, 2021
@the-mikedavis the-mikedavis marked this pull request as ready for review April 15, 2021 20:38
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
Copy link
Collaborator Author

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 @@
---
Copy link
Collaborator Author

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

Comment on lines +6 to +12
connection_string: "esdb://localhost:2113?tls=true",
opts: [
transport_opts: [
cacertfile: Path.join([__DIR__ | ~w(.. certs ca ca.crt)])
]
],
credentials: {"admin", "changeit"}
Copy link
Collaborator Author

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 🚀

Comment on lines -15 to +31
# 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

Copy link
Collaborator Author

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)

@the-mikedavis the-mikedavis changed the title add basic support and documentation for TLS certs and ACLs add functionality and documentation for TLS certs and ACLs Apr 15, 2021
@the-mikedavis the-mikedavis requested a review from a team April 15, 2021 20:43
@the-mikedavis the-mikedavis merged commit d7960a3 into main Apr 15, 2021
@the-mikedavis the-mikedavis deleted the tls branch April 15, 2021 20:55
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.

1 participant