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

feat(windows-agent): Hide unnecessarily exposed fields in the registry #369

Merged
merged 23 commits into from
Oct 30, 2023

Conversation

EduardGomezEscandell
Copy link
Contributor

@EduardGomezEscandell EduardGomezEscandell commented Oct 26, 2023

The registry exposes a lot of fields that should not be exposed to the user. It should really only show:

  • Organization-provided pro token
  • Organization-provided landscape config

The rest should be moved to a file. A side benefit is that the registry becomes (almost) read-only to us, meaning we can rethink our disabled virtualization.


UDENG-1685

@EduardGomezEscandell EduardGomezEscandell changed the base branch from main to hostagent-url-in-file October 26, 2023 14:51
@EduardGomezEscandell EduardGomezEscandell marked this pull request as draft October 26, 2023 14:51
@EduardGomezEscandell EduardGomezEscandell self-assigned this Oct 26, 2023
@EduardGomezEscandell EduardGomezEscandell force-pushed the config-disk-storage branch 2 times, most recently from 47a3fca to 1209f1e Compare October 26, 2023 16:23
Base automatically changed from hostagent-url-in-file to main October 27, 2023 08:26
@EduardGomezEscandell EduardGomezEscandell marked this pull request as ready for review October 27, 2023 08:44
@EduardGomezEscandell EduardGomezEscandell force-pushed the config-disk-storage branch 4 times, most recently from 1fb9d48 to 91bc677 Compare October 27, 2023 09:57
Copy link
Contributor

@CarlosNihelton CarlosNihelton left a comment

Choose a reason for hiding this comment

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

Nothing big catches my eyes, but I saw some interesting corner cases and a few nitpicks.

windows-agent/internal/config/config_layering.go Outdated Show resolved Hide resolved
windows-agent/internal/config/config_layering.go Outdated Show resolved Hide resolved
windows-agent/internal/config/config_layering.go Outdated Show resolved Hide resolved
windows-agent/internal/config/config_layering.go Outdated Show resolved Hide resolved
windows-agent/internal/config/config_layering.go Outdated Show resolved Hide resolved
windows-agent/internal/config/config_marshal.go Outdated Show resolved Hide resolved
windows-agent/internal/config/config_marshal.go Outdated Show resolved Hide resolved
windows-agent/internal/config/config_marshal.go Outdated Show resolved Hide resolved
windows-agent/internal/config/config.go Show resolved Hide resolved
windows-agent/internal/config/config.go Show resolved Hide resolved
@EduardGomezEscandell
Copy link
Contributor Author

Rebased main accidentally. Real changes start at Rename GUI-sourced config to User-sourced

Copy link
Contributor

@CarlosNihelton CarlosNihelton left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏽

@EduardGomezEscandell EduardGomezEscandell merged commit 79acfc8 into main Oct 30, 2023
33 of 34 checks passed
@EduardGomezEscandell EduardGomezEscandell deleted the config-disk-storage branch October 30, 2023 07:42
EduardGomezEscandell added a commit that referenced this pull request Nov 14, 2023
This regression was introduced in PR #369
EduardGomezEscandell added a commit that referenced this pull request Nov 14, 2023
…400)

The key value in which the Ubuntu Pro token is stored was changed in PR
#369 from `ProTokenOrg` to `UbuntuProToken`.

This error went unnoticed because the E2E tests were not working until
#397.
EduardGomezEscandell added a commit that referenced this pull request Nov 20, 2023
…lization exception (#374)

With the recent changes in #369, we no longer need to write to the
registry.

There is one behavior change here: setting the registry as read-only no
longer has any effect on the program. Until now, it was an implicit
message from the administrator to UP4W to block attempts to modify the
config.


----

UDENG-1696
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.

2 participants