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

[MODDATAIMP-953] [Poppy] Pass user information directly into Kafka #311

Merged
merged 18 commits into from
Oct 30, 2023

Conversation

ncovercash
Copy link
Member

@ncovercash ncovercash commented Oct 27, 2023

Poppy version of #312

Purpose

Operations involving acquisition units and invoices require information about the original user to determine if they are permitted to perform actions and are members of acquisition units.

Approach

Instead of using the system user, we store and pass the originating user's tokens, permissions, and user ID to Kafka/SRM when processing jobs.

Since this was the only time we needed to use the system user, the system user is also removed.

@ncovercash ncovercash changed the title [MODDATAIMP-953] Pass user information directly into Kafka [MODDATAIMP-953] [Poppy] Pass user information directly into Kafka Oct 27, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@ncovercash ncovercash merged commit f8a00df into master Oct 30, 2023
6 checks passed
@ncovercash ncovercash deleted the moddataimp-953 branch October 30, 2023 13:15
ncovercash added a commit that referenced this pull request Oct 30, 2023
)

* [MODDATAIMP-953] Supply user permissions and ID to Kafka

* Fix test compilation

* log headers

* Pare down user permissions to only ones that are desired

* Try including all perms?

* Don't include not system user ID

* fix typo

* Re-include

* Add token to database

* Add okapi permissions property/column

* Update submodule

* Use user credentials in S3 verticle

* Remove system user

* Undo autoformat on README

* Remove permissions files

* Fix tests

* Fix permission

* Fix nit
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.

4 participants