Outdated cf cli version in tag "latest", compared to tag "v22"
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start by inspecting the Docker image build and tag configuration, then reproduce the reported commands in fresh containers for latest and v22. Compare the bundled cf versions and verify that latest supports both cf login and cf auth with the intended current CLI version.
Written by the indexing model from the issue text.
Description
Dear colleagues,
I am not sure why, but latest seems to be a step backwards (2025 -> 2020):
>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:latest sh
$ cf -v
cf version 6.53.0+8e2b70a4a.2020-10-01
>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:v22 sh
$ cf -v
cf version 8.14.1+2bcb856.2025-06-10
This is NOT an issue (not really) while using "cf login" as it is still using CF CLI v3. But while using "cf auth" it's falling back to CF CLI v2:
>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:latest sh
$ cf login -a https://api.cf.sap.hana.ondemand.com -u andreas.meier@sap.com -p abc --skip-ssl-validation
API endpoint: https://api.cf.sap.hana.ondemand.com
[...]
API endpoint: https://api.cf.sap.hana.ondemand.com (API version: 3.203.0)
>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:latest sh
$ cf api api.cf.sap.hana.ondemand.com --skip-ssl-validation
Setting api endpoint to api.cf.sap.hana.ondemand.com...
OK
$ cf auth andreas.meier@sap.com abc
Cloud Foundry API version 2.268.0 requires CLI version 8.0.0. You are currently on version 6.53.0+8e2b70a4a.2020-10-01. To upgrade your CLI, please visit: https://github.com/cloudfoundry/cli#downloads
For testing "cf login" vs. "cf auth" please use a new docker instance! When you perform "cf login" in same instance first, "cf auth" will run on CF CLI v3 as well.
For my environment, I cannot use "cf login" as I need to build spaces etc. first (which are required for "cf login" but not for "cf auth").
Thx & BR,
Andreas
- Dominant language
- Dockerfile
- Stars
- 8
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SAP/devops-docker-cf-cli
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
SAP/devops-docker-cf-cli#75 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
SAP/devops-docker-cf-cli#59 ·
All issues in SAP/devops-docker-cf-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
alexgorbatchev/dotfiles#107 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
from:qa priority:P2 reliability tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
spec-kitty/spec-kitty#4874 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·