You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this project is built with the prod maven profile, the development java truststore isn't used, instead using the default ubuntu truststore. Downstream clients (i.e. core-client) should pin the version of a prod build.
This hasn't caused errors running core-client against dev dcc-ops/redwood (serving the self-signed certificate trusted only by the dev truststore) because redwood-client:1.1.1 must have been released from a build that didn't use -P prod. There's still a problem - the two mistakes don't cancel.
Redwood-client could listen to an env var like REDWOOD_PROFILE and somehow change it's ssl validation accordingly. Probably the best thing to do is to make note of the no_ssl_validation spring config profile on the storage clients (I think both have something like that). This might not even require a code change (just docs) if the profile is set via the SPRING_PROFILES_ACTIVE env var.
It could also use one or the other truststore accordingly (note: this would require modifying the icgc-storage-client and dcc-metadata-client bash code, even if we try to be clever with JAVA_OPTS). Otherwise, all downstreams clients will have to implement dev/prod mode distinctions to avoid their requests failing ssl validation on seeing the self-signed certificate not in their truststore.
This will get rid of the different maven build profiles, which will also solve the issue of having to remember to use -P prod when building releases.
The text was updated successfully, but these errors were encountered:
If this project is built with the prod maven profile, the development java truststore isn't used, instead using the default ubuntu truststore. Downstream clients (i.e. core-client) should pin the version of a prod build.
This hasn't caused errors running core-client against dev dcc-ops/redwood (serving the self-signed certificate trusted only by the dev truststore) because redwood-client:1.1.1 must have been released from a build that didn't use
-P prod
. There's still a problem - the two mistakes don't cancel.Redwood-client could listen to an env var like REDWOOD_PROFILE and somehow change it's ssl validation accordingly. Probably the best thing to do is to make note of the no_ssl_validation spring config profile on the storage clients (I think both have something like that). This might not even require a code change (just docs) if the profile is set via the SPRING_PROFILES_ACTIVE env var.
It could also use one or the other truststore accordingly (note: this would require modifying the icgc-storage-client and dcc-metadata-client bash code, even if we try to be clever with JAVA_OPTS). Otherwise, all downstreams clients will have to implement dev/prod mode distinctions to avoid their requests failing ssl validation on seeing the self-signed certificate not in their truststore.
This will get rid of the different maven build profiles, which will also solve the issue of having to remember to use -P prod when building releases.
The text was updated successfully, but these errors were encountered: