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

📖 Add provided ServiceAccount documentation to drafts #1232

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

trgeiger
Copy link
Contributor

@trgeiger trgeiger commented Sep 6, 2024

Description

Closes #977

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@trgeiger trgeiger requested a review from a team as a code owner September 6, 2024 20:11
Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit d921582
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/66e053eb6111c80008421f48
😎 Deploy Preview https://deploy-preview-1232--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@trgeiger trgeiger force-pushed the serviceaccount-docs branch from 1862242 to b59e7f8 Compare September 6, 2024 20:12
@trgeiger
Copy link
Contributor Author

trgeiger commented Sep 6, 2024

There are some locations where it would make sense to add hyperlinks to this doc, but I'm not sure how we want to handle that while it's in the drafts directory so I didn't add any.

Copy link

codecov bot commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.37%. Comparing base (c4470cc) to head (d921582).
Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1232      +/-   ##
==========================================
- Coverage   76.53%   76.37%   -0.17%     
==========================================
  Files          40       40              
  Lines        2340     2341       +1     
==========================================
- Hits         1791     1788       -3     
- Misses        392      394       +2     
- Partials      157      159       +2     
Flag Coverage Δ
e2e 57.58% <ø> (-0.07%) ⬇️
unit 52.41% <ø> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 3 to 7
While OLMv0 provides many mechanisms for permission configuration via OperatorGroups,
or by manipulating CatalogSources, cluster administrators must be aware of these options
and actually implement them. If no ServiceAccount is explicitly specified for installing
and upgrading operators, then cluster-admin is used by default. This can pose security risks
by providing more permissions than are actually required for the management of any specific bundle.
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure we really need to mention OLMv0 here - what do others think?

Copy link
Member

Choose a reason for hiding this comment

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

I definitely see an argument for certain OLMv0 callouts on specific notable changes. And this is certainly one of those.

But maybe we should just have a separate doc that highlights all of those things in one place?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That sounds like a good idea. So do you think I should remove that mention here and open a ticket to create a different page outlining the differences between OLMv0/v1?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm +1 for a separate "changes from OLMv0" type documentation item

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with this, we can have a separate document for changes from OLMv0 and not mention OLMv0 in this doc.

Copy link
Contributor

@rashmi43 rashmi43 Sep 9, 2024

Choose a reason for hiding this comment

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

Maybe we can rephrase as below:

OLMv1 differs from its predecessor and requires you to specify the permissions required to install cluster extensions upfront. It does not provider cluster admin privileges by default. It gives the control to the cluster administrator to specify the exact permissions required for the management of any specific bundle.A ServiceAccount needs to be explicitly specified for installing and upgrading operators else will face errors deploying your cluster extension.

Copy link
Contributor

Choose a reason for hiding this comment

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

I added the following to my doc:

OLMv1 does not provide cluster admin privileges by default for installing cluster extensions. It depends on the cluster extension developer to specify the permissions required for the management of any specific bundle. A ServiceAccount needs to be explicitly specified for installing and upgrading operators else will face errors when deploying your cluster extension.

@trgeiger
Copy link
Contributor Author

trgeiger commented Sep 9, 2024

I have reworked most of the doc, integrating everyone's feedback. Ready for another look.

@trgeiger trgeiger force-pushed the serviceaccount-docs branch from 1deb4fe to a5c198a Compare September 9, 2024 19:08
Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

One minor nit, but other than that it LGTM!

Copy link
Contributor

@tmshort tmshort left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 10, 2024
@tmshort tmshort added this pull request to the merge queue Sep 10, 2024
Merged via the queue into operator-framework:main with commit d09f325 Sep 10, 2024
17 of 18 checks passed
@skattoju skattoju mentioned this pull request Sep 25, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write Provided ServiceAccount Documentation
6 participants