Skip to content

Add CredentialProvider to standalone console#10343

Merged
nielsm5 merged 5 commits intomasterfrom
task/add-credential-provider-to-standalone-console
Feb 2, 2026
Merged

Add CredentialProvider to standalone console#10343
nielsm5 merged 5 commits intomasterfrom
task/add-credential-provider-to-standalone-console

Conversation

@nielsm5
Copy link
Member

@nielsm5 nielsm5 commented Jan 28, 2026

No description provided.

@nielsm5 nielsm5 requested a review from a team as a code owner January 28, 2026 15:51
@evandongen evandongen linked an issue Jan 28, 2026 that may be closed by this pull request
@evandongen
Copy link
Contributor

Don't forget the backport to 9.4.1

@mancave
Copy link

mancave commented Jan 30, 2026

Be aware that the fatjar version of the credentialprovider need to be added as a dependancy together with the fatjar version of the frankframework-kubernetes. So that the container image of the standalone frank-console(frankframework-docker-embedded) in K8s is able to use the K8s secret manager to fetch there authAliases

@nielsm5 nielsm5 force-pushed the task/add-credential-provider-to-standalone-console branch from 60d9085 to 5780fc2 Compare January 30, 2026 13:54
@philipsens philipsens force-pushed the task/add-credential-provider-to-standalone-console branch from 6356b04 to e5cd29b Compare January 30, 2026 14:03
* Implementations of this class should use {@link DirectoryClassLoader#getLocalResource(String)}
*/
@Override
public final URL getResource(String name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to start adding Nullable / NonNull annotations wherever applicable, and perhaps see if a class can be @NullMarked.

Suggested change
public final URL getResource(String name) {
@Nullable
public final URL getResource(@Nullable String name) {


private CredentialConstants() {
super(CredentialConstants.class.getClassLoader(), APP_CONSTANTS_PROPERTIES_FILE);
super(Thread.currentThread().getContextClassLoader(), APP_CONSTANTS_PROPERTIES_FILE);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know any better way :(

Comment on lines +96 to +102
client = new KubernetesClientBuilder()
.editOrNewConfig()
.withConnectionTimeout(3_000)
.withRequestTimeout(3_000)
.withRequestRetryBackoffLimit(0)
.endConfig()
.build();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll have to backport this, the default timeout is > 60 seconds...

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 1, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
59.2% Coverage on New Code (required ≥ 65%)
22.0% Duplication on New Code (required ≤ 3%)
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

app.setSources(Set.of("SpringBootContext.xml"));
app.addPrimarySources(List.of(WsSciWrapper.class));

// Custom ClassLoader to ensure we can read from the classpath as well as the far-jar.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Custom ClassLoader to ensure we can read from the classpath as well as the far-jar.
// Custom ClassLoader to ensure we can read from the classpath as well as files next to the fat-jar.

@nielsm5 nielsm5 merged commit 7cae47a into master Feb 2, 2026
12 of 14 checks passed
@nielsm5 nielsm5 deleted the task/add-credential-provider-to-standalone-console branch February 2, 2026 12:48
nielsm5 added a commit that referenced this pull request Feb 3, 2026
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.

Credential provider in losse console

4 participants