Skip to content
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

Feat: Add API Key security #91

Merged
merged 22 commits into from
Nov 27, 2023

Conversation

tom-rm-meyer-ISST
Copy link
Contributor

@tom-rm-meyer-ISST tom-rm-meyer-ISST commented Nov 18, 2023

Description

For minimal level of security I added an api key header ("X-API-KEY": "value from properties / environment var") for all routes in spring context except for swagger ui:

  • Security filter configuration in backend that secures ALL routes with own authentication
  • added configuration (application.properties files, local/docker-compose)
  • updated frontend stock view to use the api-key
  • Fixed configuration of EDC in local/tractus-x-edc/config for control planes: edc.receiver.http.dynamic.endpoint + property for auth key and code.
  • update of local.env + INSTALL.md
  • updates springdoc / swagger

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

@@ -167,7 +167,16 @@ public JsonNode buildTransferRequestBody(String transferId,
transferNode.set("transferType", transferTypeNode);
transferNode.put("managedResources", false);
propertiesNode = MAPPER.createObjectNode();
// TODO: reminder for EDC 0.5.x: receiverHttpEndpoint - auth key and code still not possible
Copy link
Member

Choose a reason for hiding this comment

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

Those TODOs should be extracted into the issue board of the project to keep track of it.

@mhellmeier mhellmeier merged commit 03eed0a into eclipse-tractusx:main Nov 27, 2023
8 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.

2 participants