Skip to content

Add option to enable TLS for minio - #62

Merged
matej-g merged 3 commits into
efficientgo:mainfrom
saswatamcode:minio-tls
Jan 19, 2023
Merged

Add option to enable TLS for minio#62
matej-g merged 3 commits into
efficientgo:mainfrom
saswatamcode:minio-tls

Conversation

@saswatamcode

Copy link
Copy Markdown
Collaborator

This PR adds an option to enable TLS for minio by generating certs, adjusting commands and readiness probes accordingly.

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Comment threadREADME.md
),
Readiness: e2e.NewHTTPReadinessProbe("metrics", "/health", 200, 204),
},
e2e.StartOptions{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just a minor nit here. Why modify the spacing? ;)

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

This is mdox, I think we were printing an extra bracket earlier, which caused the syntax to be a bit off. 🙂

@matej-gmatej-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looking good, thanks! Minor nits, optional 🙂

Comment threaddb/db.go
200,
)
} else {
envVars = append(envVars, "ENABLE_HTTPS="+"0")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What's the default, do we need to specify this if we don't want to enable HTTPS? 🤔

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

Yeah I'll address in follow-up

Comment threaddb/db.go
)
} else {
envVars = append(envVars, "ENABLE_HTTPS="+"0")
command = command + fmt.Sprintf(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit: we could have one command var instead of two separate in each branch and just (not) include --certs-dir depending on HTTPS option

@matej-g
matej-g merged commit fa7ceb0 into efficientgo:mainJan 19, 2023
Rasek91 pushed a commit to Rasek91/efficientgo-e2e that referenced this pull request May 13, 2023
* Add option to enable TLS for minio
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
* Fix readiness probe
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
* Fix lint
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Sign up for freeto 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

@saswatamcode@danielmellado@matej-g