Skip to content

Require that Alien::Build based aliens only fetch from an allow list of hosts

Notifications You must be signed in to change notification settings

PerlAlien/Alien-Build-Plugin-Fetch-HostAllowList

Repository files navigation

Alien::Build::Plugin::Fetch::HostAllowList static linux

Require that Alien::Build based aliens only fetch from an allow list of hosts

SYNOPSIS

Using with environment variables only:

export ALIEN_BUILD_PRELOAD=Fetch::HostAllowList
export ALIEN_BUILD_HOST_ALLOW=github.com,ftp.gnu.org

Using from ~/.alienbuild/rc.pl:

preload_plugin 'Fetch::HostAllowList', allow_hosts => [qw( github.com ftp.gnu.org )];

DESCRIPTION

This is an Alien::Build plugin that will, when enabled, reject any fetch requests made by an Alien::Build based Alien that are fetching from a remote host that is not in the provided allow list.

Aliens that bundle packages are not affected, as this plugin does not check file URLs.

If no allow list is specified (either via the property or environment variable, see below) then no remote hosts will be allowed.

PROPERTIES

allow_hosts

plugin 'Fetch::HostAllowList', allow_hosts => \@hosts;

The list of domains that are allowed. Should be provided as an array reference. If not provided, then ALIEN_BUILD_HOST_ALLOW will be used (see below).

ENVIRONMENT

  • ALIEN_BUILD_HOST_ALLOW

    Comma separated list of hosts to allow. If not specified when the plugin is applied then this list will be used.

SEE ALSO

AUTHOR

Graham Ollis [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2022-2024 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

About

Require that Alien::Build based aliens only fetch from an allow list of hosts

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages