Skip to content

[ENH] ✨ add information in secret link to user#110

Merged
Donatien26 merged 2 commits intomainfrom
fix-108
Jan 2, 2026
Merged

[ENH] ✨ add information in secret link to user#110
Donatien26 merged 2 commits intomainfrom
fix-108

Conversation

@Donatien26
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Collaborator

@sathieu sathieu left a comment

Choose a reason for hiding this comment

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

Thanks. I've left a few comments

)
userResource.Spec.SecretFieldNameSecretKey: []byte(secretKey),
"s3region": []byte(s3Client.GetConfig().Region),
"s3certificate": []byte(strings.Join(s3Client.GetConfig().CaCertificatesBase64, ",")),
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.

Maybe de-base64 ?

Comment on lines -47 to +49
S3Config.S3Url,
S3Config.Endpoint,
S3Config.Secure,
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.

s3 instance has Url, why this change?

Comment on lines +74 to +75
endpoint string,
isSSL bool,
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.

s3 instance has Url, why this change?

}
s3Config.Secure = isSSL
s3Config.Endpoint = endpoint
s3Logger.Info("region ici : " + s3Config.Region)
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.

please remove debugging code.

)
userResource.Spec.SecretFieldNameSecretKey: []byte(secretKey),
"s3region": []byte(s3Client.GetConfig().Region),
"s3certificate": []byte(strings.Join(s3Client.GetConfig().CaCertificatesBase64, ",")),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe rename field to s3CACertificate.

userResource.Spec.AccessKey,
secretKey,
strings.TrimPrefix(s3Client.GetConfig().Endpoint, "https://"),
)),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you add a boolean field s3PathStyleUrl to identify if it's path or virtual-hosted style URL ?
Cf: https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html#path-style-access

@Donatien26 Donatien26 force-pushed the fix-108 branch 6 times, most recently from 14b667c to 3a0ce5f Compare December 30, 2025 14:43
@Donatien26 Donatien26 merged commit ec285d5 into main Jan 2, 2026
7 of 8 checks passed
@Donatien26
Copy link
Copy Markdown
Collaborator Author

Close #108

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