Skip to content

Commit

Permalink
UnencryptedEndpointsNotAllowed update
Browse files Browse the repository at this point in the history
The UnencryptedEndpointsNotAllowed rule was updated with support for the
following new receiver adapters: Anaplan, HubSpot, AzureCosmosDB and
Jira.

Please note that the endpoints in question are API and authentication
endpoints for the respective services, so channels likely cannot be
configured correctly with unencrypted endpoints. Nevertheless, the rule
now checks channels using these new receiver adapters as well.
  • Loading branch information
mwittrock committed Jan 5, 2025
1 parent c84f9ee commit a987362
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/dk/mwittrock/cpilint/model/DefaultXmlModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ final class DefaultXmlModel implements XmlModel {
httpEndpointPropertyKeyNames.put(ReceiverAdapter.SOAP, List.of("address"));
httpEndpointPropertyKeyNames.put(ReceiverAdapter.XI, List.of("Address"));
httpEndpointPropertyKeyNames.put(ReceiverAdapter.AS2, List.of("receipientURL")); // Removed mdnTargetURL since it's not called from CPI.
httpEndpointPropertyKeyNames.put(ReceiverAdapter.ANAPLAN, List.of("authHost", "anaplanHost"));
httpEndpointPropertyKeyNames.put(ReceiverAdapter.HUBSPOT, List.of("addressURL"));
httpEndpointPropertyKeyNames.put(ReceiverAdapter.AZURECOSMOSDB, List.of("hostUrl"));
httpEndpointPropertyKeyNames.put(ReceiverAdapter.JIRA, List.of("address"));
// Initialize the mappingTypePropertyKeys map.
mappingTypePropertyKeys = new HashMap<>();
mappingTypePropertyKeys.put(MappingType.MESSAGE_MAPPING, "mappingType");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ final class UnencryptedEndpointsNotAllowedRule extends RuleBase {
ReceiverAdapter.IDOC,
ReceiverAdapter.SOAP,
ReceiverAdapter.XI,
ReceiverAdapter.AS2

ReceiverAdapter.AS2,
ReceiverAdapter.ANAPLAN,
ReceiverAdapter.HUBSPOT,
ReceiverAdapter.AZURECOSMOSDB,
ReceiverAdapter.JIRA
);

@Override
Expand Down

0 comments on commit a987362

Please sign in to comment.