Skip to content

refactor: update core/ scripts and add confdb support#25

Open
st3v3nmw wants to merge 2 commits into
canonical:mainfrom
st3v3nmw:update-core-scripts-to-use-modern-snap-http
Open

refactor: update core/ scripts and add confdb support#25
st3v3nmw wants to merge 2 commits into
canonical:mainfrom
st3v3nmw:update-core-scripts-to-use-modern-snap-http

Conversation

@st3v3nmw
Copy link
Copy Markdown
Member

@st3v3nmw st3v3nmw commented Apr 17, 2026

The snap_http library has gained first-class support for operations that previously required dropping down to raw snapd socket calls or calling internal methods like snap_http.http.get() directly. Things like fetching logs and connecting interfaces now have proper high level APIs.

The example scripts in core/ were written before many of these improvements landed, so this PR migrates them to use the snap_http API as it stands today. It also reorganizes core/ into subdirectories that better reflect what each script does and updates the README to match.


This PR also introduces a new core/confdb/ section covering the full confdb workflow: enabling experimental flags, acknowledging a confdb-schema assertion, getting and setting confdb view values, delegating & revoking operator access, and retrieving the resulting confdb-control assertion.

@st3v3nmw st3v3nmw changed the title refactor: update core/ scripts to use modern snap_http refactor: update core/ scripts and add confdb support Apr 21, 2026
@st3v3nmw
Copy link
Copy Markdown
Member Author

Hey @rajannpatel, @wck0, @Perfect5th, requesting a review for this.

@rajannpatel
Copy link
Copy Markdown
Collaborator

On the surface, this looks like a huge leap forward. @wck0 or @Perfect5th should weigh in

@Perfect5th
Copy link
Copy Markdown

Perfect5th commented Apr 21, 2026

This is really great and I hope I have time to test the scripts out soon, but I don't think we can merge until they are validated.

I kind of wish this repository had some kind of automated testing.

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