Repository navigation
Conversation
maximthomas
left a comment
There was a problem hiding this comment.
praise: The troubleshooting guide gives concrete allowlist examples for the application root, a protected path, and a query string.
issue (blocking): An absolute goto on the OpenAM origin still needs a realm allowlist entry if it points outside OpenAM's deployment context.
Location at HEAD. Configuration Reference, line 4631, Web Policy Agent troubleshooting, line 74.
The base describes an empty list as accepting any goto. Both new hunks replace that claim with a rule that permits “absolute URLs on a recognized OpenAM origin,” which gives administrators an incomplete test for deciding whether an entry is needed. With OpenAM at https://openam.example.com/openam, the agent's absolute return URL https://openam.example.com/reports has the same origin and still falls back after successful login when the list is empty. The shared validator requires both conditions before bypassing the realm list. The validator blob is identical at tag 16.1.4, the base, and HEAD. Base wording, validator at HEAD, authentication fallback.
if (isSameOrigin(request, uri, configInfos) && isWithinDeploymentUri(request, uri)) {
return true;
}A focused check compiled from HEAD used a servlet request with context /openam. The same absolute application URL was rejected with the empty list and accepted after adding that exact URL to the list.
Empty list https://openam.example.com/openam/XUI/ true
Empty list https://openam.example.com/reports false
With exact entry https://openam.example.com/reports true
The existing empty-list test also asserts rejection for a same-origin URL under /otherapp. An independent read confirmed the source behavior, the test coverage, and the finding's scope. Existing regression test.
Closure criterion State in both pages that an absolute URL must also be within the OpenAM deployment context to qualify under the empty-list default. In troubleshooting, tell administrators to add a matching realm entry for an absolute return URL to a co-hosted application outside that context.
|
@maximthomas, addressed in b84ee46. The Configuration Reference and Web Policy Agent troubleshooting guide now state both conditions for accepting an absolute URL without a realm entry. The troubleshooting example shows why I verified the example in the rendered troubleshooting page and checked that both links reach the updated Administration Guide section. |
maximthomas
left a comment
There was a problem hiding this comment.
praise: The troubleshooting example tells an administrator running OpenAM under /openam exactly which return URL needs a realm entry. Troubleshooting at HEAD.
maximthomas
left a comment
There was a problem hiding this comment.
praise: The new examples distinguish an absent query from an empty query and preserve both wildcard forms as literal code in the rendered pages. Authentication Services, Authorization Policies.
issue (blocking): The default-port rule needs an exception for a wildcard scheme.
Authentication Services at HEAD, line 5448.
The previous wording illustrated omitted ports with literal HTTP and HTTPS URLs. The new sentence explicitly extends the default-port rule to any URL or pattern and immediately follows it with an http* example. The redirect matcher normalizes an omitted port to 80 or 443 for a literal scheme and to a port wildcard for a wildcard scheme. An administrator who relies on the new wording can allow applications on alternate ports while intending to allow only the standard HTTP and HTTPS ports. Previous wording, redirect matcher at HEAD, port normalization at HEAD.
A focused check compiled the matching code from HEAD and compared each pattern with https://app.example.com:8443/reports.
Configured pattern Canonical pattern Matches
http*://app.example.com/reports http*://app.example.com:*/reports true
https://app.example.com/reports https://app.example.com:443/reports false
An independent check confirmed the same difference with the guide's own wildcard scheme and host example at a custom HTTPS port. The configured-list path calls the same matcher, and the port normalization code is identical at both reviewed revisions. Configured-list validation at HEAD.
Closure criterion Limit the omitted-port default to literal http and https schemes. State that omitting the port with a wildcard scheme matches any port. For a configuration that permits only the scheme defaults, document using separate patterns with literal HTTP and HTTPS schemes.
|
@maximthomas, I addressed the omitted-port finding in 43a6f738ad. Authentication Services now specifies that an omitted port defaults to I checked both sections in Antora and verified the patterns against the OpenAM 16.1.4 matcher. The |
maximthomas
left a comment
There was a problem hiding this comment.
praise: The two literal-scheme patterns give administrators a concrete way to restrict return URLs to the HTTP and HTTPS default ports. Authentication Services at HEAD.
issue (blocking): Limit implicit wildcard ports to HTTP(S) scheme patterns.
Authentication Services at HEAD, line 5450, Authorization Policies at HEAD, line 602.
The previous revision described omitted ports as scheme defaults. The new lines promise that omitting a port with a wildcard scheme matches any port, and Authorization Policies makes that promise immediately after a bare *:// example. Following the new guidance for a fixed application host can cause a policy to miss requests on that host. Copying that policy syntax into Valid goto URL Resources can also cause the application redirect to fall back. Previous Authentication Services wording, previous Authorization Policies wording, authentication fallback at HEAD.
The port insertion logic runs for the HTTP(S) scheme family. A bare *:// skips it in the policy comparator, and the redirect matcher treats that pattern as relative. The shared matcher and policy comparator have identical source at both reviewed revisions. Accepted scheme patterns, normalization guard, implicit port logic, redirect matching.
HEAD matcher output for https://app.example.com:8443/reports with three administrator-configured patterns:
Pattern Policy wildcard pass Configured goto match
http*://app.example.com/reports wildcard_match true
*://app.example.com/reports sub_resource_match false
*://app.example.com:*/reports wildcard_match false
The independent check repeated both comparison passes of nonrecursive entitlement evaluation. The second row returned no_match for the exact pass and sub_resource_match for the wildcard pass, so the policy excluded that resource pattern. The configured redirect list calls the matcher exercised by the probe. Nonrecursive entitlement evaluation, configured allowlist path.
Closure criterion State in both sections that an omitted port becomes a wildcard for HTTP(S) scheme patterns such as http* and https*. In the policy guide, retain explicit :* in the bare-scheme example and explain that a bare-scheme pattern with a fixed host needs a port wildcard to cover all ports. In Authentication Services, clarify that absolute goto patterns use the supported HTTP(S) schemes and wildcard forms.
|
@maximthomas, I addressed the wildcard scheme finding in a7dadacab8. Both sections now limit the implicit port wildcard to I checked both comparators on HTTPS port |
maximthomas
left a comment
There was a problem hiding this comment.
praise: The fixed-host example shows administrators where to put the explicit port wildcard in a *:// policy pattern. Authorization Policies at HEAD.
Starting with OpenAM 16.1.4, the default empty list of Valid goto URL Resources allows relative URLs. An absolute URL qualifies without a list entry only when it has a recognized OpenAM origin and its path is within the OpenAM deployment context. If OpenAM runs at
https://am.example.com/openam, a user can sign in successfully and still miss the redirect tohttps://am.example.com/reportsunless the authentication realm allows that destination.The Configuration Reference and Administration Guide explain this rule, including how the realm uses the service defaults. The Web Policy Agent troubleshooting guide shows where to add destinations for co-hosted applications and sibling subdomains, with examples for the application root, a protected path, and a query string. This answers the login question in discussion #1006. The related logout change is tracked in PR #1279.
The Administration Guide also explains how the Validation Service handles an omitted port. A literal
httporhttpsscheme uses port80or443, respectively. Thehttp*andhttps*scheme patterns match any port when the port is omitted. The guide lists the supported HTTP(S) scheme forms for absolutegotopatterns and shows separate HTTP and HTTPS patterns for deployments that allow only the standard ports. Authorization Policies also shows how to use an explicit:*with a*://scheme and a fixed host.Antora rendered all four updated pages. I checked the cross-references and verified that the wildcard examples rendered as literal code. A focused check of the OpenAM 16.1.4 comparators confirmed that
http*andhttps*patterns without a port match HTTPS on8443. For the same URL, a fixed-host*://pattern matched the nonrecursive policy comparison with an explicit:*. The two literal-scheme patterns restrict HTTP to80and HTTPS to443. All seven Antora page title tests and all eight documentation checker tests passed, with no errors in 145 How-To references across 56 pages.