ostree/man
Matthew Leeds 3956fc885b Allow disabling pulling from LAN/USB/Internet
Currently libostree essentially has two modes when it's pulling refs:
the "legacy" code paths pull only from the Internet, and the code paths
that are aware of collection IDs try to pull from the Internet, the
local network, and mounted filesystems (such as USB drives). The problem
is that while we eventually want to migrate everyone to using collection
IDs, we don't want to force checking LAN and USB sources if the user
just wants to pull from the Internet, since the LAN/USB code paths can
have privacy[1], security[2], and performance[3] implications.

So this commit implements a new repo config option called "repo-finders"
which can be configured to, for example, "config;lan;mount;" to check
all three sources or "config;mount;" to disable searching the LAN. The
set of values mirror those used for the --finders option of the
find-remotes command. This configuration affects pulls in three places:
1. the ostree_repo_find_remotes_async() API, regardless of whether or
not the user of the API provided a list of OstreeRepoFinders
2. the ostree_repo_finder_resolve_async() /
ostree_repo_finder_resolve_all_async() API
3. the find-remotes command

This feature is especially important right now since we soon want to
have Flathub publish a metadata key which will have Flatpak clients
update the remote config to add a collection ID.[4]

This effectively fixes https://github.com/flatpak/flatpak/issues/1863
but I'll patch Flatpak too, so it doesn't pass finders to libostree only
to then have them be removed.

[1] https://github.com/flatpak/flatpak/issues/1863#issuecomment-404128824
[2] https://github.com/ostreedev/ostree/issues/1527
[3] Based on how long the "ostree find-remotes" command takes to
  complete, having the LAN finder enabled slows down that step of the
  pull process by about 40%. See also
  https://github.com/flatpak/flatpak/issues/1862
[4] https://github.com/flathub/flathub/issues/676

Closes: #1758
Approved by: cgwalters
2018-10-21 19:11:43 +00:00
..
ostree-admin-cleanup.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin-config-diff.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin-deploy.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin-init-fs.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin-instutil.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin-os-init.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin-pin.xml sysroot: Add concept of deployment "pinning" 📌 2018-02-26 19:06:59 +00:00
ostree-admin-set-origin.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin-status.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin-switch.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin-undeploy.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin-unlock.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin-upgrade.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-admin.xml admin: Fix list of subcommands in help and manpage 2018-06-12 14:36:24 +00:00
ostree-cat.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-checkout.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-checksum.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-commit.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-config.xml man/config: Keep cmdsynopsis for GROUP.KEY version 2018-08-21 10:36:12 +00:00
ostree-create-usb.xml man/create-usb: Don't recommend summary updates 2018-10-02 15:49:42 +00:00
ostree-diff.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-export.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-find-remotes.xml Make P2P API public (no longer experimental) 2018-06-04 19:20:10 +00:00
ostree-fsck.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-gpg-sign.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-init.xml man/ostree-init: Briefly describe various modes 2018-04-30 17:58:38 +00:00
ostree-log.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-ls.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-prune.xml docs/prune: Document that --static-deltas-only isn't that useful 2018-03-06 14:02:32 +00:00
ostree-pull-local.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-pull.xml ostree/pull: Add network-retries command line option 2018-07-05 17:59:09 +00:00
ostree-refs.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-remote.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-reset.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-rev-parse.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-show.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-static-delta.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree-summary.xml Make P2P API public (no longer experimental) 2018-06-04 19:20:10 +00:00
ostree-trivial-httpd.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree.repo-config.xml Allow disabling pulling from LAN/USB/Internet 2018-10-21 19:11:43 +00:00
ostree.repo.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
ostree.xml Make P2P API public (no longer experimental) 2018-06-04 19:20:10 +00:00
rofiles-fuse.xml Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00