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

fix: don't allow observer and observer+ to download software installers #19938

Merged
merged 6 commits into from
Jun 25, 2024

Conversation

jahzielv
Copy link
Contributor

Related issue: https://github.com/fleetdm/confidential/issues/6979

Checklist for submitter

If some of the following don't apply, delete the relevant line.

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.
    See Changes files for more information.
  • Added/updated tests
  • Manual QA for all new/changed functionality

@jahzielv jahzielv marked this pull request as ready for review June 21, 2024 21:19
@jahzielv jahzielv requested a review from a team as a code owner June 21, 2024 21:19
allow {
not is_null(object.team_id)
object.type == "software_installer"
team_role(subject, object.team_id) == [admin, maintainer, observer, observer_plus][_]
team_role(subject, object.team_id) == [admin, maintainer][_]
Copy link
Member

Choose a reason for hiding this comment

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

I think the problem (and the confusing part) is that they can read installers, but they can't download them, I believe this will restrict both actions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was still able to read (list and access the details page) fwiw; I think those actions are permissioned using the software titles object, which allows the access

Copy link
Member

Choose a reason for hiding this comment

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

good point, thanks! how do you see that playing out with the upcoming changes in #19561?

@jahzielv jahzielv marked this pull request as draft June 24, 2024 14:22
@jahzielv jahzielv marked this pull request as ready for review June 25, 2024 13:43
@jahzielv jahzielv requested a review from roperzh June 25, 2024 18:14
@jahzielv jahzielv merged commit fdee411 into main Jun 25, 2024
16 checks passed
@jahzielv jahzielv deleted the 6979-observer-software branch June 25, 2024 20:22
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.

None yet

2 participants