Skip to content

Devops/update keycloak#1591

Merged
MikeNeilson merged 1 commit intodevelopfrom
devops/update-keycloak
Feb 25, 2026
Merged

Devops/update keycloak#1591
MikeNeilson merged 1 commit intodevelopfrom
devops/update-keycloak

Conversation

@MikeNeilson
Copy link
Contributor

Updates keycloak to a version that continuous to run in gh actions (weird, but not gonna worry about it as we should keep that up to date.

Also partially reverts a change made in #1586 that incorrectly sets the user session to the provided office id, which is intended purely as a search constraint.

Copy link
Collaborator

@rma-bryson rma-bryson Feb 18, 2026

Choose a reason for hiding this comment

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

This gets called from getLocations(). Does this need to have the session office set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If it does we have a design issue. getLocations is quite often called by "guests", even a non-guest should be able to search the entire database regardless of what their user office permissions are. The officeId parameter to getLocation is not a session related office, like it would be for say POST, but is instead just a limiter on the locations query that is run.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps it isn't necessary here then. Makes me wonder where else the session office is being set but not needed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I did a quick search for places that set the session office id in GET type methods:
getLocation getLocations (this pr is about these)
retreiveLocationLevel
getRatingSet
retrieveLatestXML
getSpecifiedLevels
retrieveVerticalDatumInfo
getAllBasins getBasin
getStream getStreamLocations
getReachesOnStream
retrieveLockCatalog
retrieveLock
retrieveProject
catProject
retrieveStandardText

@MikeNeilson MikeNeilson force-pushed the devops/update-keycloak branch from c26be30 to e51a01a Compare February 18, 2026 21:33
@MikeNeilson
Copy link
Contributor Author

well, it appears @rma-bryson is correct, the vertical datum system requires that office id; however that is rather problematic as requiring the office id at this level breaks the basic functionality of you know, letting a user search though the data of the databases whether they're logged in or not.

@rma-rripken
Copy link
Collaborator

So its needed for vertical-datum conversion? Okay, but that only happens if the user adds the datum flag - right? Seems like we could shift the call to set the office in the session to inside just that branch and maybe add a comment on the datum flag that users need to be logged-in to use that feature or something like that.

@rma-bryson
Copy link
Collaborator

Wondering if we can replace the loc package call with a view query of the AV_VERT_DATUM_OFFSET?

@MikeNeilson
Copy link
Contributor Author

Wondering if we can replace the loc package call with a view query of the AV_VERT_DATUM_OFFSET?

that might work.

So its needed for vertical-datum conversion? Okay, but that only happens if the user adds the datum flag - right? Seems like we could shift the call to set the office in the session to inside just that branch and maybe add a comment on the datum flag that users need to be logged-in to use that feature or something like that.

Doesn't really change the situation, if the user doesn't have permissions for that specific office for the datum, the set session office will still fail. Thus breaking the search in which we allow anyone to ask for the datum.

@rma-bryson
Copy link
Collaborator

#1594 - here's a view query update that works @MikeNeilson

@MikeNeilson MikeNeilson force-pushed the devops/update-keycloak branch 2 times, most recently from 3e65dce to 88c8b0f Compare February 25, 2026 14:50
@MikeNeilson MikeNeilson force-pushed the devops/update-keycloak branch from 88c8b0f to 18e6af6 Compare February 25, 2026 14:53
@MikeNeilson MikeNeilson merged commit c0ece40 into develop Feb 25, 2026
7 of 9 checks passed
@MikeNeilson MikeNeilson deleted the devops/update-keycloak branch February 25, 2026 15:37
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.

3 participants