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

Unable to fully install transfer plugin when target is instance that uses an untrusted (self-signed) certificate #1265

Open
acrois opened this issue Sep 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@acrois
Copy link

acrois commented Sep 16, 2024

Describe the bug

The transfer plugin install command does not support the --insecure-tls flag

Current behavior

With no flag:

19:58:57 [🔵Info] Installing 'data-transfer' plugin...
19:58:57 [🟠Warn] (Attempt 1) - Failure occurred while sending GET request to https://***/artifactory/api/system/version: Get "https://***/artifactory/api/system/version": tls: failed to verify certificate: x509: certificate signed by unknown authority
19:58:57 [🟠Warn] (Attempt 2) - Failure occurred while sending GET request to https://***/artifactory/api/system/version: Get "https://***/artifactory/api/system/version": tls: failed to verify certificate: x509: certificate signed by unknown authority
19:58:57 [🟠Warn] (Attempt 3) - Failure occurred while sending GET request to https://***/artifactory/api/system/version: Get "https://***/artifactory/api/system/version": tls: failed to verify certificate: x509: certificate signed by unknown authority
19:58:57 [🟠Warn] (Attempt 4) - Failure occurred while sending GET request to https://***/artifactory/api/system/version: Get "https://***/artifactory/api/system/version": tls: failed to verify certificate: x509: certificate signed by unknown authority
19:58:57 [🔵Info] executor timeout after 3 attempts with 0 milliseconds wait intervals
19:58:57 [🟠Warn] (Attempt 1) - Failure occurred while sending POST request to https://***/artifactory/api/plugins/reload: Post "https://***/artifactory/api/plugins/reload": tls: failed to verify certificate: x509: certificate signed by unknown authority
19:58:57 [🟠Warn] (Attempt 2) - Failure occurred while sending POST request to https://***/artifactory/api/plugins/reload: Post "https://***/artifactory/api/plugins/reload": tls: failed to verify certificate: x509: certificate signed by unknown authority
19:58:57 [🟠Warn] (Attempt 3) - Failure occurred while sending POST request to https://***/artifactory/api/plugins/reload: Post "https://***/artifactory/api/plugins/reload": tls: failed to verify certificate: x509: certificate signed by unknown authority
19:58:57 [🟠Warn] (Attempt 4) - Failure occurred while sending POST request to https://***/artifactory/api/plugins/reload: Post "https://***/artifactory/api/plugins/reload": tls: failed to verify certificate: x509: certificate signed by unknown authority
19:58:57 [🔵Info] executor timeout after 3 attempts with 0 milliseconds wait intervals
19:58:57 [🔵Info] Trace ID for JFrog Platform logs: 5b7b074ef488199e
19:58:57 [🚨Error] Post "https://***/artifactory/api/plugins/reload": tls: failed to verify certificate: x509: certificate signed by unknown authority

With flag:

20:00:22 [🚨Error] flag provided but not defined: -insecure-tls

Reproduction steps

jf rt transfer-plugin-install docker

With --insecure-tls flag:

jf rt transfer-plugin-install docker --insecure-tls

Expected behavior

  1. Ping the destination server first to ensure that it is reachable before installing plugin.
  2. When the --insecure-tls flag is passed, respect it. If it has not been passed, it will fail on an untrusted CA (same as today).
  3. If the server is setup using the --insecure-tls flag, store it on the server config and use it always.

JFrog CLI-Core version

2.55.7

JFrog CLI version (if applicable)

2.67.0

Operating system type and version

Alpine 3.20 (CLI docker image)

JFrog Artifactory version

7.90.9

JFrog Xray version

No response

@acrois acrois added the bug Something isn't working label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant