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

Latest jf docker image doesn't work with CA certificates #2832

Open
nipuna-perera opened this issue Jan 15, 2025 · 1 comment
Open

Latest jf docker image doesn't work with CA certificates #2832

nipuna-perera opened this issue Jan 15, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@nipuna-perera
Copy link

Describe the bug

Running jf CLI via docker image throws certificate errors.

Current behavior

When I run any artifactory command (even jf rt ping) inside the latest docker image, I get

Get "https://myartifactory.company.com/api/system/ping": tls: failed to verify certificate: x509: certificate signed by unknown authority

If I exec into the container, and do apk update && apk upgrade, the error goes away.

Adding the cacert to ~/.jfrog/security/certs/ did not change anything

Reproduction steps

docker run -it --entrypoint="" docker run releases-docker.jfrog.io/jfrog/jfrog-cli-v2-jf jf rt -- ping --url=https://myartifactory.company.com

Expected behavior

No certificate errors as I have the correct cacerts installed in the container.

JFrog CLI version

2.73.0

Operating system type and version

MacOS Sequoia 15.2

JFrog Artifactory version

No response

JFrog Xray version

No response

@nipuna-perera nipuna-perera added the bug Something isn't working label Jan 15, 2025
@EyalDelarea
Copy link
Contributor

Hi @nipuna-perera

Thank you for reporting this issue. I tried to reproduce the problem using the following command:

docker run -it releases-docker.jfrog.io/jfrog/jfrog-cli-v2-jf jf rt ping --url=https://platform.jfrog.io/artifactory/

However, the command executed successfully without any certificate errors in my environment. Below is a screenshot of the output:

Image

To help debug further, could you please try the following steps:

  1. Verify Docker Image Version:
    Ensure you are using the latest jfrog-cli-v2-jf Docker image. Run the following commands to update and use the latest version:

    docker pull releases-docker.jfrog.io/jfrog/jfrog-cli-v2-jf
    docker run -it releases-docker.jfrog.io/jfrog/jfrog-cli-v2-jf jf rt ping --url=https://<your-url>
  2. Detailed Logs:
    Run the same command with debug mode enabled to gather more details:

    docker run -it -e JFROG_CLI_LOG_LEVEL=DEBUG  releases-docker.jfrog.io/jfrog-cli-v2-jf jf rt ping --url=https://<your-url>
  3. Provide docker version and runtime

docker --version && docker info | grep "Runtime"
  1. Provide which artifactory version are you using

Providing as much details as possible will help us solve this issue.

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

2 participants