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

Connect MCS with Minio TLS/Custom CAs #102

Merged
merged 1 commit into from May 9, 2020
Merged

Conversation

Alevsk
Copy link
Contributor

@Alevsk Alevsk commented May 8, 2020

This PR adds support to connect MCS to minio instances running TLS with
self-signed certificates or certificates signed by custom
Certificate Authorities

export MCS_MINIO_SERVER_TLS_ROOT_CAS=file1,file2,file3

Note: TLS Skip Verification is not supported unless there's a clear need
for it

README.md Show resolved Hide resolved
@Alevsk Alevsk requested a review from aead May 8, 2020 17:43
@Alevsk Alevsk changed the title Connect MCS with Minio insecure TLS/Custom CAs Connect MCS with Minio TLS/Custom CAs May 8, 2020
dvaldivia
dvaldivia previously approved these changes May 8, 2020
bexsoft
bexsoft previously approved these changes May 8, 2020
Copy link
Collaborator

@bexsoft bexsoft left a comment

Choose a reason for hiding this comment

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

LGTM

go.sum Outdated Show resolved Hide resolved
func newMcsCredentials(accessKey, secretKey, location string) (*credentials.Credentials, error) {
return credentials.NewSTSAssumeRole(getMinIOServer(), credentials.STSAssumeRoleOptions{
stsEndpoint := getMinIOServer()
if stsEndpoint == "" {
Copy link
Collaborator

@cesnietor cesnietor May 8, 2020

Choose a reason for hiding this comment

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

Suggested change
if stsEndpoint == "" {
if strings.TrimSpace(stsEndpoint) == "" {

else " " will not enter here, same for the ones below

Copy link
Collaborator

Choose a reason for hiding this comment

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

how is this solved?

restapi/config.go Show resolved Hide resolved
restapi/config.go Show resolved Hide resolved
restapi/utils.go Outdated Show resolved Hide resolved
This PR adds support to connect MCS to minio instances running TLS with
self-signed certificates or  certificates signed by custom
Certificate Authorities

```
export MCS_MINIO_SERVER_TLS_ROOT_CAS=file1,file2,file3
```

Note: TLS Skip Verification is not supported unless there's a clear need
for it
Copy link
Collaborator

@bexsoft bexsoft left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@cesnietor cesnietor left a comment

Choose a reason for hiding this comment

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

LGTM

@Alevsk Alevsk merged commit a8c07c0 into minio:master May 9, 2020
@Alevsk Alevsk deleted the https-minio branch May 9, 2020 04:12
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

5 participants