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

#2530 Enable SASL for bie kafka #2624

Merged
merged 86 commits into from
Apr 17, 2024
Merged

#2530 Enable SASL for bie kafka #2624

merged 86 commits into from
Apr 17, 2024

Conversation

agile-josiah
Copy link
Contributor

@agile-josiah agile-josiah commented Feb 15, 2024

What was the problem?

The VRO Certs to access Kafka are expiring and we need to decide whether VRO will provision their own Certs and provide the Public Key to BIP Solutions to renew the ACL access or attempt to complete the RBAC migration making the Certs a non-issue.

Associated tickets or Slack threads:

How does this fix it?1

This enables SASL_SSL for bie-kafka comms

How to test this PR

  • run source ./scripts/kafka-service.sh
  • Watch the connection between mock-bie-kafka and svc-bie-kafka

Footnotes

  1. Pull-Requests guidelines. If PR is significant, update Current Software State wiki page.

Copy link
Contributor

github-actions bot commented Feb 15, 2024

Test Results

151 tests  ±0   151 ✅ ±0   46s ⏱️ -1s
 46 suites ±0     0 💤 ±0 
 46 files   ±0     0 ❌ ±0 

Results for commit d8d2eea. ± Comparison against base commit e2fcd53.

This pull request removes 10 and adds 10 tests. Note that renamed tests count towards both.
gov.va.vro.services.bie.config.ContentionEventTest ‑ [1] inputTopic=TST_CONTENTION_BIE_CONTENTION_ASSOCIATED_TO_CLAIM_V02, bieChannel=bie-events-contention-associated-to-claim
gov.va.vro.services.bie.config.ContentionEventTest ‑ [1] inputTopic=TST_CONTENTION_BIE_CONTENTION_ASSOCIATED_TO_CLAIM_V02, expectedEvent=CONTENTION_ASSOCIATED_TO_CLAIM
gov.va.vro.services.bie.config.ContentionEventTest ‑ [2] inputTopic=TST_CONTENTION_BIE_CONTENTION_UPDATED_V02, bieChannel=bie-events-contention-updated
gov.va.vro.services.bie.config.ContentionEventTest ‑ [2] inputTopic=TST_CONTENTION_BIE_CONTENTION_UPDATED_V02, expectedEvent=CONTENTION_UPDATED
gov.va.vro.services.bie.config.ContentionEventTest ‑ [3] inputTopic=TST_CONTENTION_BIE_CONTENTION_CLASSIFIED_V02, bieChannel=bie-events-contention-classified
gov.va.vro.services.bie.config.ContentionEventTest ‑ [3] inputTopic=TST_CONTENTION_BIE_CONTENTION_CLASSIFIED_V02, expectedEvent=CONTENTION_CLASSIFIED
gov.va.vro.services.bie.config.ContentionEventTest ‑ [4] inputTopic=TST_CONTENTION_BIE_CONTENTION_COMPLETED_V02, bieChannel=bie-events-contention-completed
gov.va.vro.services.bie.config.ContentionEventTest ‑ [4] inputTopic=TST_CONTENTION_BIE_CONTENTION_COMPLETED_V02, expectedEvent=CONTENTION_COMPLETED
gov.va.vro.services.bie.config.ContentionEventTest ‑ [5] inputTopic=TST_CONTENTION_BIE_CONTENTION_DELETED_V02, bieChannel=bie-events-contention-deleted
gov.va.vro.services.bie.config.ContentionEventTest ‑ [5] inputTopic=TST_CONTENTION_BIE_CONTENTION_DELETED_V02, expectedEvent=CONTENTION_DELETED
gov.va.vro.services.bie.config.ContentionEventTest ‑ [1] inputTopic=BIA_SERVICES_BIE_CATALOG_TST_CONTENTION_ASSOCIATED_TO_CLAIM_V02, bieChannel=bie-events-contention-associated-to-claim
gov.va.vro.services.bie.config.ContentionEventTest ‑ [1] inputTopic=BIA_SERVICES_BIE_CATALOG_TST_CONTENTION_ASSOCIATED_TO_CLAIM_V02, expectedEvent=CONTENTION_ASSOCIATED_TO_CLAIM
gov.va.vro.services.bie.config.ContentionEventTest ‑ [2] inputTopic=BIA_SERVICES_BIE_CATALOG_TST_CONTENTION_UPDATED_V02, bieChannel=bie-events-contention-updated
gov.va.vro.services.bie.config.ContentionEventTest ‑ [2] inputTopic=BIA_SERVICES_BIE_CATALOG_TST_CONTENTION_UPDATED_V02, expectedEvent=CONTENTION_UPDATED
gov.va.vro.services.bie.config.ContentionEventTest ‑ [3] inputTopic=BIA_SERVICES_BIE_CATALOG_TST_CONTENTION_CLASSIFIED_V02, bieChannel=bie-events-contention-classified
gov.va.vro.services.bie.config.ContentionEventTest ‑ [3] inputTopic=BIA_SERVICES_BIE_CATALOG_TST_CONTENTION_CLASSIFIED_V02, expectedEvent=CONTENTION_CLASSIFIED
gov.va.vro.services.bie.config.ContentionEventTest ‑ [4] inputTopic=BIA_SERVICES_BIE_CATALOG_TST_CONTENTION_COMPLETED_V02, bieChannel=bie-events-contention-completed
gov.va.vro.services.bie.config.ContentionEventTest ‑ [4] inputTopic=BIA_SERVICES_BIE_CATALOG_TST_CONTENTION_COMPLETED_V02, expectedEvent=CONTENTION_COMPLETED
gov.va.vro.services.bie.config.ContentionEventTest ‑ [5] inputTopic=BIA_SERVICES_BIE_CATALOG_TST_CONTENTION_DELETED_V02, bieChannel=bie-events-contention-deleted
gov.va.vro.services.bie.config.ContentionEventTest ‑ [5] inputTopic=BIA_SERVICES_BIE_CATALOG_TST_CONTENTION_DELETED_V02, expectedEvent=CONTENTION_DELETED

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Feb 15, 2024

JaCoCo Test Coverage

Overall Project 76.64%
Files changed 100% 🍏

File Coverage
ContentionEvent.java 100% 🍏
BieProperties.java 100% 🍏

@agile-josiah agile-josiah marked this pull request as ready for review February 15, 2024 22:36
@agile-josiah agile-josiah requested a review from a team as a code owner February 15, 2024 22:36
@agile-josiah agile-josiah changed the title WIP #2530 Enable SASL for bie kafka #2530 Enable SASL for bie kafka Feb 15, 2024
Comment on lines 13 to 14
username: USERNAME
password: PASSWORD
Copy link
Contributor

Choose a reason for hiding this comment

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

we'll need to add the password to the Vault/kube secrets and inject it into the containers per env

Copy link
Contributor

@msnwatson msnwatson left a comment

Choose a reason for hiding this comment

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

Some comments

mocks/docker-compose.yml Outdated Show resolved Hide resolved
mocks/docker-compose.yml Outdated Show resolved Hide resolved
agile-josiah and others added 14 commits February 20, 2024 10:53
… 3.2.3 (#2659)

Bump org.springframework.boot:spring-boot-autoconfigure

Bumps [org.springframework.boot:spring-boot-autoconfigure](https://github.com/spring-projects/spring-boot) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](spring-projects/spring-boot@v3.2.2...v3.2.3)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-autoconfigure
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cheng <[email protected]>
Made special issue code an environment variable, so it can be switched without code change.
trust-store-type: "PKCS12"

bie:
kafka-topic-env: "TST"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: newline at EOF

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@nelsestu nelsestu left a comment

Choose a reason for hiding this comment

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

The BIE team is now going to be the BIA team, and as auth is now using the BIA RBAC authentication, it simplfies some of the certificate generation and handling. As Teja mentioned, we'll need to include the username and password in our reimplementation of secret automation.

@chengjie8 chengjie8 merged commit 97b535f into develop Apr 17, 2024
1 check passed
@chengjie8 chengjie8 deleted the josiah/#2530/kafka-sasl branch April 17, 2024 15:24
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.

10 participants