Allowing external feeds into the server
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Domain
- backend-api-design, security
Research direction
Start with config.repository_allow_list in asu.toml and trace how owut's feed and keys request reaches the build container's apk add step. Review the security boundary and the external-feed scenarios described in the issue; done requires an agreed policy for non-official feeds and corresponding implementation and validation.
Written by the indexing model from the issue text.
Description
With @a-gave 's recent additions to owut (https://github.com/efahl/owut/commit/2fab581877f3c17542b1836e2df8933554063ace), we are almost in position to do transparent ASU upgrades using "foreign" feeds. The one blocker is ASU's allowlist in config.repository_allow_list, which does an extra check to only allow repos in that we deem proper.
Here's an example scenario. User wants to use AmnezaWG, so they add the entry to customfeeds.dist, download the keys, etc. Basically, go through the instructions at:
https://slava-shchipunov.github.io/awg-openwrt/25.12.5/x86/64/
They can then use apk to transparently install the packages from that feed:
$ apk update
[https://slava-shchipunov.github.io/awg-openwrt/25.12.5/x86/64/packages.adb]
...
$ apk query --format yaml --fields name --match origin '*amneziawg*'
# 4 items
- name: amneziawg-tools
- name: kmod-amneziawg
- name: luci-i18n-amneziawg-ru
- name: luci-proto-amneziawg
$ apk add luci-proto-amneziawg
... it just works ...
But, then when the user tries to upgrade, they are blocked by the server, even though they've given the server everything it needs (feed+keys) in the request, and it is apparent the user already trusts the feed.
$ owut upgrade
...
Request:
Version 25.12.5 r33051-f5dae5ece4 (kernel 6.12.94)
--
Status: Repository not allowed: https://slava-shchipunov.github.io/awg-openwrt/25.12.5/x86/64/packages.adb
Progress: 0s total = 0s in queue + 0s in build
Build failed in 0s total = 0s in queue + 0s to build:
ERROR: Build failed with status 400 (--version-to 25.12.5 --device x86/64:generic:squashfs)
So...
- What are the risks of allowing non-official feeds?
- Malicious package init scripts might run in the build container from the
apk addstep; I'm not clear on what the attack surface is here. - Are the build containers sufficiently jailed that we could just get rid of the allow list, let everything through?
- What else could go wrong?
- Do we want to let users request adding certain feeds, and after review, manually add them to the
asu.tomlin therepository_allow_list? (That seems like a lot of extra work and not particularly scalable.) - Or do we want to just say, "this is your problem, set up your own ASU server configured as you like"?
Note that this ties into https://github.com/openwrt/packages/issues/30356, if we want to start pointing people to external package feeds.
- Dominant language
- Python
- Stars
- 461
- Forks
- 116
- Avg merge
- 8d 30m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openwrt/asu
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
Similar issues
-
MarkdownDocSerializer.post_process escapes '\<' to '\<', rendering literal '<' in CommonMarkOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
docling-project/docling-core#1067 ·
Maintainers usually reply within 3 days
-
correction metadata
Difficulty 1/5 Under an hour Newbie friendliness 85/100
acl-org/acl-anthology#11101 · 1 comment ·
Maintainers usually reply within 1 day
-
[BUG] crewai tool create/install/login exit 0 when they failPossibly taken @Kiko0301 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vllm-project/compressed-tensors#1033 ·
Maintainers usually reply within 3 days
-
chore kaizen ui-rewrite
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
IBM/mcp-context-forge#7681 ·
Maintainers usually reply within 2 days