Skip to content

smart_proxy lifecycle environment scoping - #1984

Open
tyderian1978 wants to merge 4 commits into
theforeman:developfrom
tyderian1978:smart_proxy_lifecycle_environment
Open

smart_proxy lifecycle environment scoping#1984
tyderian1978 wants to merge 4 commits into
theforeman:developfrom
tyderian1978:smart_proxy_lifecycle_environment

Conversation

@tyderian1978

@tyderian1978 tyderian1978 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Relates to: #1463

Lifecycle Environment names are only unique within an organization. smart_proxy's lifecycle_environments lookup didn't scope by organization at all, so if two orgs each had an LCE with the same name (e.g. library), the lookup could match the wrong one (or fail as ambiguous) depending on which org's LCE happened to resolve first.

This mirrors a bug already fixed for content_view #1980, which added scope=['organization'] to that module's declarative foreman_spec.

smart_proxy can't use the same declarative approach because it pops lifecycle_environments out of foreman_params and applies it via a separate PUT .../capsules/:id/content/lifecycle_environments call rather than through the entity's own create/update payload.

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.

1 participant