-
Notifications
You must be signed in to change notification settings - Fork 352
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
Camel-K maven security #3956
Comments
It seems some problem with the encryption. According to the guideline in https://maven.apache.org/guides/mini/guide-encryption.html it even seems that your server password (encrypted) may be shorter. Can you double check the encryption procedure? Also, can you check that the very same configuration works locally outside Camel K? |
Yes I checked my local encrypted password works in maven |
It seems that the settings security are not taken in consideration then. I guess the configmap is in the same Integration namespace. The way it is implemented right now, it swallow any empty value, so we don't have a clear way to distinguish the reason why this is failing: camel-k/pkg/builder/project.go Line 114 in 79fefb9
I'm marking as a bug, as, at least, we need some better message when the option is configured and no configmap/secrets are found. |
Thx but It seems that the map is being loaded. I looked inside the container during the build and saw that a file called 'settings.xml' and settings-security.xml with an encrypted password was created in the '/tmp/kit-.... ' directory. |
I made some tests with cases of absence of configmap for maven-settings or maven-settings-security , the existing message looks good to me :
@milank78git : is the artifact |
(cherry picked from commit apache/camel-k@77265a038)
I have Camel 1.11.0 and I am trying to use Maven with the settings-security.xml file.
I created a configmap with the settings.xml and security-settings.xml and configured the build.
Config-map with maven-settings-security
Camel-k setting in integrationPlatform
When I run the build, I get an error with ERROR
And if I look at the file /tmp/artifacts/m2/org/apache/camel/k/camel-k-runtime-bom/1.16.0/camel-k-runtime-bom-1.16.0.pom.lastUpdated that it is trying to retrieve from Nexus, there is a 401 Unauthorized error in it
"If I use the password without encryption in settings.xml , the build will pass."
The text was updated successfully, but these errors were encountered: