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

Adding HTTPS support for flagd #100

Merged
merged 26 commits into from
Aug 5, 2022
Merged

Adding HTTPS support for flagd #100

merged 26 commits into from
Aug 5, 2022

Conversation

AlexsJones
Copy link
Member

@AlexsJones AlexsJones commented Aug 4, 2022

This PR gives the ability to use TLS with flagD as reported #97

It introduces two new parameters on the start command

  -c, --server-cert-path string   server side tls certificate path
  -k, --server-key-path string    server side tls key path

These can be pointed to pem/crt/key files.

Example is flagd start -c server-crt.pem -k server-key.pem

@james-milligan
Copy link
Contributor

james-milligan commented Aug 4, 2022

Ive tested the grpc connection with flagd set to http/https and it works as expected - unable to connect with insecure dial credentials, but able to connect using the correct certificates 👍

Copy link
Member

@beeme1mr beeme1mr left a comment

Choose a reason for hiding this comment

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

Could you please add an example to the readme?

.gitignore Outdated Show resolved Hide resolved
cmd/start.go Outdated Show resolved Hide resolved
cmd/start.go Outdated Show resolved Hide resolved
pkg/service/grpc_service.go Outdated Show resolved Hide resolved
AlexsJones and others added 14 commits August 5, 2022 07:36
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
AlexsJones and others added 7 commits August 5, 2022 07:36
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: James-Milligan <james@omnant.co.uk>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Signed-off-by: Alex Jones <alex.jones@canonical.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Signed-off-by: Alex Jones <alex.jones@canonical.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
pkg/service/utils.go Outdated Show resolved Hide resolved
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
@AlexsJones AlexsJones merged commit 91e66a8 into main Aug 5, 2022
@AlexsJones AlexsJones deleted the feature/https branch August 5, 2022 10:25
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.

3 participants