Skip to content

feat: allow to init remote access plugin with non-standard user/group#3131

Merged
Ruadhri17 merged 2 commits intothin-edge:mainfrom
Ruadhri17:c8y-remote-non-standard-user
Sep 30, 2024
Merged

feat: allow to init remote access plugin with non-standard user/group#3131
Ruadhri17 merged 2 commits intothin-edge:mainfrom
Ruadhri17:c8y-remote-non-standard-user

Conversation

@Ruadhri17
Copy link
Copy Markdown
Contributor

Proposed changes

This PR add two new flags to c8y-remote-access-plugin: --user and --group that can be used only with --init flag. Plugin will now create directory with custom permissions provided by user or change the permissions if file/directory already exists.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
  • Documentation Update (if none of the other choices apply)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue


Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA (in all commits with git commit -s)
  • I ran cargo fmt as mentioned in CODING_GUIDELINES
  • I used cargo clippy as mentioned in CODING_GUIDELINES
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 8.88889% with 41 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
plugins/c8y_remote_access_plugin/src/lib.rs 0.00% 41 Missing ⚠️
Additional details and impacted files

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 23, 2024

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
506 0 2 506 100 1h24m51.43794s

albinsuresh
albinsuresh previously approved these changes Sep 24, 2024
Copy link
Copy Markdown
Contributor

@albinsuresh albinsuresh left a comment

Choose a reason for hiding this comment

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

LGTM.

@albinsuresh albinsuresh dismissed their stale review September 24, 2024 06:35

Just noticed the remote plugin test failure.

Copy link
Copy Markdown
Contributor

@didier-wenzek didier-wenzek left a comment

Choose a reason for hiding this comment

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

Approved: the system test is failing for a typo.

@Ruadhri17 Ruadhri17 force-pushed the c8y-remote-non-standard-user branch from 003fef4 to 4113070 Compare September 24, 2024 10:22
…cess plugin

Signed-off-by: Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com>
@Ruadhri17 Ruadhri17 force-pushed the c8y-remote-non-standard-user branch from 4113070 to 68f0e23 Compare September 24, 2024 10:26
…/group

Signed-off-by: Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com>
Copy link
Copy Markdown
Member

@rina23q rina23q left a comment

Choose a reason for hiding this comment

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

Minor suggestion

@reubenmiller reubenmiller added the theme:troubleshooting Theme: Troubleshooting and remote control label Sep 25, 2024
@Ruadhri17 Ruadhri17 added this pull request to the merge queue Sep 30, 2024
Merged via the queue into thin-edge:main with commit 1d32da6 Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme:troubleshooting Theme: Troubleshooting and remote control

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants