Skip to content

Conversation

@nouseforaname
Copy link

currently the UI fails establishing an ssh connection to apps that rely on cc v3 functionality. Some basic apps ( e.g. cf push test -b staticfile_buildpack seems to produce an app that the UI can still ssh into ) still work but anything that relies on v3 functionality ( e.g. multi process apps or cf push --strategy rolling ) will fail.

The default type for a process of a pushed app is web. This commit enables using the UI to ssh to the default web process of V3 apps. It left out adding support for all other process types since the UI misses the feature to select nested processes. It only displays the instances that an app has running but none of the nested elements of V3 apps.

@nouseforaname nouseforaname force-pushed the feature_v3_rolling_app_ssh branch from 23c50c4 to 67f872f Compare August 28, 2025 11:21
@nouseforaname nouseforaname force-pushed the feature_v3_rolling_app_ssh branch from 5eadc1a to 37743a4 Compare August 29, 2025 10:40
@stackit-cloudfoundry stackit-cloudfoundry force-pushed the feature_v3_rolling_app_ssh branch from b2b6921 to 94733de Compare August 29, 2025 11:18
currently the UI fails establishing an ssh connection to apps that rely on cc v3
functionality. Some basic apps ( e.g. `cf push test -b staticfile_buildpack` seems
to produce an app that the UI can still ssh into ) still work but anything that
relies on v3 functionality ( e.g. multi process apps or `cf push --strategy rolling` )
will fail.

The default type for a process of a pushed app is `web`. This commit enables using the UI
to ssh to the default web process of V3 apps. It left out adding support for all other process
types since the UI misses the feature to select nested processes. It only displays the `instances`
that an app has running but none of the nested elements of V3 apps.

we only want to ignore 404 errors when checking for v3 availability. other errors may still provide
relevant information.

some auth related code was extracted from getSSHCode so it's reusable in CheckForV3... in the same
reasoning requesting the token and refreshing it was moved up.
- remove unneeded struct
- remove newline
- go fmt
@nouseforaname nouseforaname force-pushed the feature_v3_rolling_app_ssh branch from 94733de to f20d427 Compare August 29, 2025 11:52
camel case is not expected here
it should improve readability
if something goes wrong, that will at least leave a hint in the logs
@nouseforaname nouseforaname merged commit 8ae3ca6 into stackit-stratos-release Sep 8, 2025
1 of 2 checks passed
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.

4 participants