feat: implement com.redhat.rhsm.content Varlink interface - #562
Merged
Conversation
DuckBoss
force-pushed
the
jajerome/cct-1716-content-varlink-interface
branch
2 times, most recently
from
August 24, 2026 17:19
2504f13 to
8ddf048
Compare
Add the Refresh(force, metadata) method to a new com.redhat.rhsm.testing.content Varlink interface. It refreshes the installed SCA entitlement certificate (optionally forcing a fresh fetch) and regenerates redhat.repo accordingly, per the rhsm-varlink design doc. Business logic lives in rhsm2's UpdateEntitlementCertificate and GenerateRepoFileFromInstalledEntitlementCerts; this wires it into the same Backend/Handler pattern already used by the override and release interfaces. This patch also bumps rhsm2 to 6e9f30c. Resolves: CCT-1716 Assisted-by: Claude/Sonnet-5 Signed-off-by: Jason Jerome <jajerome@redhat.com>
DuckBoss
force-pushed
the
jajerome/cct-1716-content-varlink-interface
branch
from
August 24, 2026 17:36
8ddf048 to
a469b81
Compare
DuckBoss
marked this pull request as ready for review
August 24, 2026 17:58
cnsnyder
self-requested a review
August 25, 2026 15:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the Refresh(force, metadata) method to a new com.redhat.rhsm.testing.content Varlink interface. It refreshes the installed SCA entitlement certificate (optionally forcing a fresh fetch) and regenerates redhat.repo accordingly, per the rhsm-varlink design doc. Business logic lives in rhsm2's UpdateEntitlementCertificate and GenerateRepoFileFromInstalledEntitlementCerts; this wires it into the same Backend/Handler pattern already used by the override and release interfaces.
Blocked by:
Resolves: CCT-1716
$ ./rhc-server &Look for com.redhat.rhsm.testing.content in the interface list.
Run the refresh method: entitlement cert serial/mtime unchanged (conditional If-Modified-Since GET → 304).
Both return {"success": true}, no crash, no duplicate files left in /etc/pki/entitlement/.