mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
`unix://$PATH` as listen argument will bind aptly to a unix domain socket rather than TCP. This allows binding the API to a UDS rather than a port. Since aptly has no concept of authentication or any amount of high level API hardening one needs to bottle it up in some other manner. Binding to a localhost port is often a step in the right direction, ultimately is still a scary insecure setup as any user on that host getting compromised would mean that the entire archive is compromised as well. UDS on the other hand are basically files and have their access managed by regular file permission. As such, binding to a socket is in fact the least insecure way to listen as you'd have to explicitly open up the socket permissions to an access qualified group. In the most conservative scenario that means no one but the aptly user can talk to the API, in a more practical setup apache might get access as well and proxy the UDS with authentication or limited to GET operations. Using UDS allows reducing the attack surface of the API server while preserving all the flexibility.
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
sudo: false
|
|
|
|
language: go
|
|
|
|
go:
|
|
- 1.6
|
|
- 1.7
|
|
- tip
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- python-virtualenv
|
|
- graphviz
|
|
|
|
env:
|
|
global:
|
|
- secure: "YSwtFrMqh4oUvdSQTXBXMHHLWeQgyNEL23ChIZwU0nuDGIcQZ65kipu0PzefedtUbK4ieC065YCUi4UDDh6gPotB/Wu1pnYg3dyQ7rFvhaVYAAUEpajAdXZhlx+7+J8a4FZMeC/kqiahxoRgLbthF9019ouIqhGB9zHKI6/yZwc="
|
|
- secure: "V7OjWrfQ8UbktgT036jYQPb/7GJT3Ol9LObDr8FYlzsQ+F1uj2wLac6ePuxcOS4FwWOJinWGM1h+JiFkbxbyFqfRNJ0jj0O2p93QyDojxFVOn1mXqqvV66KFqAWR2Vzkny/gDvj8LTvdB1cgAIm2FNOkQc6E1BFnyWS2sN9ea5E="
|
|
- secure: "OxiVNmre2JzUszwPNNilKDgIqtfX2gnRSsVz6nuySB1uO2yQsOQmKWJ9cVYgH2IB5H8eWXKOhexcSE28kz6TPLRuEcU9fnqKY3uEkdwm7rJfz9lf+7C4bJEUdA1OIzJppjnWUiXxD7CEPL1DlnMZM24eDQYqa/4WKACAgkK53gE="
|
|
before_install:
|
|
- virtualenv env
|
|
- . env/bin/activate
|
|
- pip install six packaging appdirs
|
|
- pip install -U pip setuptools
|
|
- pip install boto requests requests-unixsocket python-swiftclient
|
|
- mkdir -p $GOPATH/src/github.com/smira
|
|
- ln -s $TRAVIS_BUILD_DIR $GOPATH/src/github.com/smira || true
|
|
- cd $GOPATH/src/github.com/smira/aptly
|
|
install:
|
|
- make prepare
|
|
|
|
script: make travis
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- go: tip
|
|
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
- "https://webhooks.gitter.im/e/c691da114a41eed6ec45"
|
|
on_success: change # options: [always|never|change] default: always
|
|
on_failure: always # options: [always|never|change] default: always
|
|
on_start: false # default: false
|