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

New systemd workloadattestor plugin #4058

Merged
merged 15 commits into from
May 4, 2023

Conversation

rkaippully
Copy link
Contributor

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Affected functionality
New workloadattestor plugin for systemd.

Description of change
Adds a basic workloadattestor plugin to get systemd.unit properties of the running process. It uses dbus to find the unit corresponding to the process and exposes the Id and FragmentPath properties as selectors.

Which issue this PR fixes
Fixes #2031.

@rkaippully rkaippully changed the title systemd workloadattestor plugin New systemd workloadattestor plugin Apr 8, 2023
@guilhermocc
Copy link
Contributor

Thank you for contributing @rkaippully!

Fixes spiffe#2031.

Adds a basic workloadattestor plugin to get systemd.unit properties of
the running process. It uses dbus to find the unit corresponding to
the process and exposes the `Id` and `FragmentPath` properties as
selectors.

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
@azdagron azdagron self-assigned this Apr 11, 2023
…ttestor

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Copy link
Member

@azdagron azdagron left a comment

Choose a reason for hiding this comment

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

Excellent work @rkaippully ! Thank you for this contribution. I have just a few comments.

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
@amartinezfayo amartinezfayo added this to the 1.6.4 milestone Apr 20, 2023
azdagron
azdagron previously approved these changes Apr 25, 2023
Copy link
Member

@azdagron azdagron left a comment

Choose a reason for hiding this comment

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

lgtm! thanks for the contribution, @rkaippully !

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
…ttestor

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Copy link
Member

@azdagron azdagron left a comment

Choose a reason for hiding this comment

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

\o/

Copy link
Member

@maxlambrecht maxlambrecht left a comment

Choose a reason for hiding this comment

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

Thanks @rkaippully for this contribution!

@rkaippully
Copy link
Contributor Author

@azdagron Thanks a lot for your review and approval.

I see a test failure, but I don't think it has something to do with this change. Is that right?

@MarcosDY
Copy link
Collaborator

MarcosDY commented May 4, 2023

that test is flaky, I'm rerunning it

@MarcosDY MarcosDY merged commit ae33645 into spiffe:main May 4, 2023
@rkaippully rkaippully deleted the systemd-workloadattestor branch May 5, 2023 07:14
d-goro pushed a commit to d-goro/spire that referenced this pull request May 18, 2023
* systemd workloadattestor plugin

Fixes spiffe#2031.

Adds a basic workloadattestor plugin to get systemd.unit properties of
the running process. 

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Signed-off-by: Dmitry Gorochovsky <d.goro@yahoo.com>
Neniel pushed a commit to Neniel/spire that referenced this pull request Aug 24, 2023
* systemd workloadattestor plugin

Fixes spiffe#2031.

Adds a basic workloadattestor plugin to get systemd.unit properties of
the running process.

Signed-off-by: Raghu Kaippully <rkaippully@gmail.com>
Signed-off-by: Neniel <11655196+Neniel@users.noreply.github.com>
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.

Contribute a systemd workload attestator plugin
7 participants