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

Add proxy server for external storage on minio / aws s3 #961

Closed
MaxFBurg opened this issue Sep 16, 2021 · 0 comments · Fixed by #962
Closed

Add proxy server for external storage on minio / aws s3 #961

MaxFBurg opened this issue Sep 16, 2021 · 0 comments · Fixed by #962

Comments

@MaxFBurg
Copy link
Contributor

Feature Request

Problem

On our GPU cluster, the GPU compute nodes do not have direct access to the internet. Due to firewall constraints, we have to use a secured connection to any outside dependencies, as AWS S3. To establish such a connection, we need to use a proxy server. Currently, datajoint does not offer the possibility to use a proxyserver for minio, although that is offered by Minio's constructor.

Requirements

PR with implementation fulfilling all requirements is linked to this issue.

Justification

Without this feature, datajoint is not usable on our GPU cluster with external storage.

Alternative Considerations

Currently, I am not aware of any workaround.

Related Errors

None.

Screenshots

n/a

Additional Research and Context

Example code from the minio documentation illustrating how proxy servers can be used:

# Create client with custom HTTP client using proxy server.
import urllib3
client = Minio(
    "SERVER:PORT",
    access_key="ACCESS_KEY",
    secret_key="SECRET_KEY",
    secure=True,
    http_client=urllib3.ProxyManager(
        "https://PROXYSERVER:PROXYPORT/",
        timeout=urllib3.Timeout.DEFAULT_TIMEOUT,
        cert_reqs="CERT_REQUIRED",
        retries=urllib3.Retry(
            total=5,
            backoff_factor=0.2,
            status_forcelist=[500, 502, 503, 504],
        ),
    ),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants