Skip to content

docs: add the Enterprise Portal security-settings RBAC resources - #4407

Draft
Bishibop wants to merge 1 commit into
mainfrom
nick/rbac-reference-security-settings
Draft

docs: add the Enterprise Portal security-settings RBAC resources#4407
Bishibop wants to merge 1 commit into
mainfrom
nick/rbac-reference-security-settings

Conversation

@Bishibop

Copy link
Copy Markdown
Contributor

Adds two missing entries to the RBAC resource names reference:

Resource Grants
kots/app/[:appid]/enterprise-portal/security-settings/read View the Enterprise Portal Security Center display settings
kots/app/[:appid]/enterprise-portal/security-settings/update Update them

Both are enforced today — handlers/vendor-api/replv3/enterprise_portal/security_settings.go:122 and :193 call policy.CheckAccessOrAbort with them, and pkg/policy/resources.go:777-782 defines the strings. Neither appeared on this page, so a vendor reading it could not write a policy granting either one.

Placed alphabetically between instances/read and service-accounts/read. Descriptions follow the page's existing "Grants the holder permission to … for the specified application" voice.

Vale: 0 errors, warnings 141 -> 143. The two added warnings are the sentence-case alert that every one of this page's 158 resource headings already trips.

Why this matters beyond tidiness

Raised in review on #4391, which documents the Portal Features settings. Those settings split across two permissions, and #4391 now carries a table naming the resource strings directly because linking readers to this page for the security-settings permission was a dead end. Once this lands, that table has a reference behind it.

Draft, because it is the small half of a bigger problem

While measuring this I compared pkg/policy/resources.go against this page. 10 of the 39 Enterprise Portal resources are undocumented, not 2:

Missing Enforced today?
enterprise-portal/security-settings/read, /update yes — this PR
enterprise-portal/custom-instructions/read, /create, /update, /delete yes
enterprise-portal/email-history/read yes
enterprise-portal/update-attempts/read yes
enterprise-portal/build no — defined, referenced nowhere
enterprise-portal/publish no — same

Nothing is stale in the other direction: every documented entry still exists in code. The drift is entirely one-directional, which is what you would expect from a hand-maintained index — it does not accumulate dead links, it just never hears about new resources.

Two things worth deciding separately from this PR:

  1. The page claims to be exhaustive. Its first line reads "This a list of all available resource names for the Replicated vendor RBAC policy." That is a completeness claim the page does not currently meet. (That sentence is also missing its verb — "This a list".)
  2. This is probably not EP-specific. Roughly 158 resources are documented against ~227 string definitions in code. The EP figure is exact; treat the 227 as approximate, since that grep may catch non-resource strings. But a 26% shortfall on the family I measured properly suggests the page is behind generally.

Left as a draft so the narrow fix does not imply the broader gap is closed. The remaining 6 live resources each need a handler traced for an accurate description, and build/publish are arguably a vandoor cleanup rather than a docs addition — documenting permissions that gate nothing would be worse than omitting them.

Adds kots/app/[:appid]/enterprise-portal/security-settings/read and
/update, which gate the Security Center display settings in the Enterprise
Portal Portal Features section. Both are enforced today in
handlers/vendor-api/replv3/enterprise_portal/security_settings.go:122,193
and defined in pkg/policy/resources.go:777-782, but neither appeared on
this page, so a vendor could not write a policy granting them.

Placed alphabetically between instances/read and service-accounts/read.
Descriptions follow the page's existing voice.
@netlify

netlify Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deploy Preview for replicated-docs ready!

Name Link
🔨 Latest commit 6dd1751
🔍 Latest deploy log https://app.netlify.com/projects/replicated-docs/deploys/6a88c825bdbf1a0008c600d3
😎 Deploy Preview https://deploy-preview-4407--replicated-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@netlify

netlify Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deploy Preview for replicated-docs-upgrade ready!

Name Link
🔨 Latest commit 6dd1751
🔍 Latest deploy log https://app.netlify.com/projects/replicated-docs-upgrade/deploys/6a88c82559976100086341cb
😎 Deploy Preview https://deploy-preview-4407--replicated-docs-upgrade.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@replicated-ci replicated-ci added type::docs Improvements or additions to documentation type::feature labels Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type::docs Improvements or additions to documentation type::feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants