Skip to content

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

@Alevsk Alevsk self-assigned this May 8, 2020
@Alevsk Alevsk requested a review from nitisht May 8, 2020 04:26
@Alevsk Alevsk force-pushed the https-minio branch 2 times, most recently from e16760c to 5181e1b Compare May 8, 2020 06:20
@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

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?

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
@Alevsk Alevsk dismissed stale reviews from bexsoft and dvaldivia via a1d5e59 May 8, 2020 23:43
@Alevsk Alevsk requested review from bexsoft, cesnietor and dvaldivia May 8, 2020 23:43
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.

5 participants