-
Notifications
You must be signed in to change notification settings - Fork 155
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
[Unprivileged] Adjust integration tests to use unprivileged by default #3931
Merged
+614
−321
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
53f7ca0
Work on ability to move the control socket.
blakerouse 786b716
Adjust/add tests for unpriveleged.
blakerouse 955e70b
More adjustments.
blakerouse 63dc22c
Adjustments for tests.
blakerouse 0028680
More adjusments for control socket path.
blakerouse 4fb0ddc
Fix symlink oldpath.
blakerouse 3e67fa6
Merge branch 'main' into control-socket-adjust
blakerouse e3bc626
Add changelog.
blakerouse f5ea666
Fix trim prefix.
blakerouse 1fe8a3d
Add more logging.
blakerouse 23e89d5
More path adjustments.
blakerouse 40e622c
Inverse symlink create.
blakerouse 797a55b
Fix issue with creating control socket symlink.
blakerouse 91f8036
Merge branch 'main' into control-socket-adjust
blakerouse 561e233
Merge branch 'main' into control-socket-adjust
blakerouse 2140a3d
Fix installtion market issue on Windows.
blakerouse f87979f
Windows fixes.
blakerouse a4968ea
Cleanup comment.
blakerouse f485b54
More fixes.
blakerouse 486e2aa
Merge branch 'main' into control-socket-adjust
blakerouse 9f5033d
Only create the symlink when running as installed.
blakerouse 0514802
Merge branch 'control-socket-adjust' into non-root-more-testing
blakerouse 0b75d0f
Refactor unprivileged in tests to make it the default.
blakerouse 813352a
Only linux.
blakerouse 5ab29d5
Fix test.
blakerouse 05a9618
Merge branch 'main' into control-socket-adjust
blakerouse b0fcf27
Merge branch 'main' into control-socket-adjust
blakerouse 9da1b5c
Log control socket address for Windows.
blakerouse dff60d5
Use uniform log line.
blakerouse 37fa7dd
Ensure that installed marker is installed before enrollment.
blakerouse 4a7dec1
Add missing import on Windows.
blakerouse d5d010b
Fix lint.
blakerouse e533246
Update commit message.
blakerouse 28a70db
Merge remote-tracking branch 'upstream/main' into control-socket-adjust
blakerouse 97973f9
More adjustments from code review.
blakerouse 35cb5ab
Use/support npipe:/// prefix.
blakerouse 0a09af4
Merge branch 'control-socket-adjust' into non-root-more-testing
blakerouse 2776ea7
Fix dial npipe transform.
blakerouse 2ae1518
Merge branch 'control-socket-adjust' into non-root-more-testing
blakerouse 71d32e5
Merge branch 'main' into non-root-more-testing
blakerouse 382ed5c
More adjustments for testing.
blakerouse 38f3369
More adjustments.
blakerouse 85d746f
Fix IsUnprivileged.
blakerouse a0bd570
Fix imports.
blakerouse e4e6a6d
Fix cross platform issues.
blakerouse 06169a1
Merge branch 'main' into non-root-more-testing
blakerouse 5b35352
Merge branch 'main' into non-root-more-testing
blakerouse 0762562
Fix basePath for install.
blakerouse 1018fe3
Move to readable path when running in unprivileged mode.
blakerouse 312131f
Merge branch 'main' into non-root-more-testing
blakerouse a5f6f64
Merge branch 'main' into non-root-more-testing
blakerouse 7532ca2
Merge branch 'main' into non-root-more-testing
blakerouse 7ad35e7
gosimple
blakerouse 6c06dbc
Fix version constant.
blakerouse 69dff17
Merge branch 'main' into non-root-more-testing
blakerouse 6c98838
Set correct file permissions.
blakerouse 8f9eee8
Merge branch 'main' into non-root-more-testing
blakerouse 7a22a51
Update fleet tests.
blakerouse bac456f
Merge branch 'main' into non-root-more-testing
blakerouse 13b4355
Merge branch 'main' into non-root-more-testing
blakerouse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading:
Should we just invert the name so we don't have to use a pointer type here? I'd rather use
Privileged: true
as the exception and have it not exactly match the argument name then have to deal with usingNewBool
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the
InstallOpts
will conditional changeIsUnprivileged
depending on the operating system that is being tested, the code needs it to be a tristate boolean.In the case that it was never set it will we set to true on Linux and false on Windows (for now). If specifically set then that value is used instead. If we didn't use a tristate then the default of false versus setting false explicitly would be unknown so on Linux it would always be changed to true even on a test where false should be forced. Even if we flip this logic by renaming the variable
Privileged
it results in the same issue.I also really prefer it to match the command line arguments, all other fields match, don't think we should deviant now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I don't feel that strongly about it and there's a technical reason for it to be like this. I'd be in favour of removing it if it turns out we don't need it once all the platforms support unprivileged.