Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

RHEL subscription-manager macro or documented pattern for self-service images

Open
#702 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
docker, python

Research direction

Start with config/image/build_secret.py and compare the existing apt.j2 and dnf.j2 package-manager macros. Review how container-generator handles the credential file, registration cleanup, and conditional CRB/EPEL behavior for RHEL 8 and 9. Done means a documented macro or pattern uses BuildSecret without embedding credentials and covers the required registration flow.

Written by the indexing model from the issue text.

Description

cvp:2 docker tdp:0

Problem

Self-service customers building their own images (unlike Posit's own first-party product images, which only ever target UBI — see images-shared#575) may target full subscription-gated RHEL rather than UBI. Bakery has no pattern for this today: BuildSecret (config/image/build_secret.py) is a generic mechanism for passing secrets to docker buildx build, but nothing wires it to subscription-manager register or conditional CodeReady Builder enablement.

container-generator's own approach: Red Hat credentials in a separate .pw file, copied in and deleted after registration, with conditional CRB/EPEL enablement differing between RHEL 8 and 9.

Scope

A macro (or documented pattern, if a macro is overkill for what's essentially one subscription-manager register call plus cleanup) parallel to the existing package-manager macros (apt.j2/dnf.j2), using BuildSecret for credential passing rather than embedding credentials in the Containerfile.

Non-goal

Distinct from images-shared#575's UBI work — UBI is deliberately subscription-free, so this pattern is never needed there.

Dominant language
Python
Stars
2
Forks
0
Avg merge
4d 11h
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/images-shared

All issues in posit-dev/images-shared

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.