Brian May
9df7a0a053
Bump version: 1.1.0 → 1.1.1
2022-09-06 08:17:47 +10:00
Brian May
a28c8ae10b
Include version in setup.py too
2022-09-06 08:17:36 +10:00
Brian May
4f4d6d9f4d
Add ASDF .tool-versions file
2022-09-06 08:06:34 +10:00
Brian May
a1c7e64b0e
Add .coverage to .gitignore
2022-09-06 08:04:28 +10:00
dependabot[bot]
88139ed2e5
Bump pytest from 7.1.2 to 7.1.3
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.1.2 to 7.1.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.1.2...7.1.3 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-06 07:53:59 +10:00
Bastian Venthur
810b4a3170
added bump2version
2022-09-05 08:24:31 +10:00
Bastian Venthur
98233530a0
remove setuptools-scm
2022-09-05 08:24:31 +10:00
Bastian Venthur
77eb8167c4
all elements are strings
2022-08-29 19:52:50 +10:00
Bastian Venthur
a6efc6b653
This test broke in Python3.11
...
Fixed the test and only check for instance: str for families that are
not explicitly covered in `family_to_str`
closes : #784
2022-08-29 19:52:10 +10:00
Brian May
f8086dfa59
Update flake8 and pyflakes
2022-08-05 08:00:56 +10:00
dependabot[bot]
58d72a93d2
Bump sphinx from 5.1.0 to 5.1.1
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.1.0...v5.1.1 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-27 21:02:54 +10:00
dependabot[bot]
6929b79274
Bump sphinx from 5.0.2 to 5.1.0
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.0.2 to 5.1.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.0.2...v5.1.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-26 08:20:09 +10:00
dependabot[bot]
bf4fa6cacc
Bump setuptools-scm from 7.0.4 to 7.0.5
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/pypa/setuptools_scm/releases )
- [Changelog](https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pypa/setuptools_scm/compare/v7.0.4...v7.0.5 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-13 07:47:27 +10:00
dependabot[bot]
2462d6d204
Bump setuptools-scm from 7.0.3 to 7.0.4
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 7.0.3 to 7.0.4.
- [Release notes](https://github.com/pypa/setuptools_scm/releases )
- [Changelog](https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pypa/setuptools_scm/compare/v7.0.3...v7.0.4 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 20:30:26 +10:00
dependabot[bot]
86c69dda48
Bump setuptools-scm from 7.0.2 to 7.0.3
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 7.0.2 to 7.0.3.
- [Release notes](https://github.com/pypa/setuptools_scm/releases )
- [Changelog](https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pypa/setuptools_scm/compare/v7.0.2...v7.0.3 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-30 20:31:48 +10:00
Scott Kuhl
df98790206
Fix incorrect permissions for /etc/hosts
...
If we modify /etc/hosts, we read/copy the ownership and permissions
from the existing /etc/hosts before we make our new temporary file
which will eventually overwrite /etc/hosts. If we fail to retrieve the
permissions of the existing /etc/hosts file, we made the temporary
file owned by root 0o600 permissions. It should have 0o644 permissions
so that /etc/hosts has the correct permissions once we rename it.
It is unlikely many encoutered this bug since most machines have
/etc/hosts prior to sshuttle running and we should be able to read the
permission/ownership of that existing file.
2022-06-26 09:36:13 +10:00
dependabot[bot]
f9a9dad9ff
Bump setuptools-scm from 7.0.1 to 7.0.2
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/pypa/setuptools_scm/releases )
- [Changelog](https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pypa/setuptools_scm/compare/v7.0.1...v7.0.2 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-24 08:21:27 +10:00
dependabot[bot]
1fa47bf8e1
Bump setuptools-scm from 6.4.2 to 7.0.1
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 6.4.2 to 7.0.1.
- [Release notes](https://github.com/pypa/setuptools_scm/releases )
- [Changelog](https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pypa/setuptools_scm/compare/v6.4.2...v7.0.1 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-23 08:24:03 +10:00
dependabot[bot]
7525f8d4c5
Bump sphinx from 5.0.1 to 5.0.2
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.0.1...v5.0.2 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-19 09:28:58 +10:00
Bastian Venthur
a33a4829e2
fixed some spelling mistakes
2022-06-15 07:43:25 +10:00
dependabot[bot]
90ec0a9cb6
Bump actions/setup-python from 3 to 4
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 20:23:49 +10:00
dependabot[bot]
0914bef9a2
Bump sphinx from 5.0.0 to 5.0.1
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.0.0...v5.0.1 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-05 09:41:39 +10:00
Nikos Atlas
93200f7095
add comment and warning
2022-06-03 07:48:44 +10:00
Nikos Atlas
1def53e085
fallback to file editing in case file is locked
2022-06-03 07:48:44 +10:00
dependabot[bot]
553bc2b70c
Bump sphinx from 4.5.0 to 5.0.0
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 4.5.0 to 5.0.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.5.0...v5.0.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 20:31:28 +10:00
dependabot[bot]
bf4cb64f25
Bump pytest from 7.1.1 to 7.1.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.1.1 to 7.1.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.1.1...7.1.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-25 20:44:11 +10:00
Brian May
004365f5c7
Delete stresstest.py
...
This file has not been touched in years. And looks like it is broken,
e.g. listener.accept() is called after infinite loop.
2022-04-24 18:38:51 +10:00
Brian May
d6fa0c1462
Replace BaseException with Exception
...
BaseException includes exceptions like SystemExit, KeyboardInterrupt
and GeneratorExit that we should not be catching.
2022-04-24 17:50:05 +10:00
Brian May
9e3209e931
Remove unused flags assignment
2022-04-24 17:40:43 +10:00
Brian May
7d67231faf
Update style issues
2022-04-24 17:37:10 +10:00
Brian May
0b267cdeff
Create codeql.yml
2022-04-24 17:00:57 +10:00
Brian May
30cdc5e74b
Fix LGTM reported issues
2022-04-24 16:43:07 +10:00
Brian May
181bf648a7
Remove useless assignment
2022-04-24 16:11:14 +10:00
Brian May
10341f3ad6
Add missing raise keyword for UDP not supported error
2022-04-24 16:09:55 +10:00
dependabot[bot]
6f92bd8ccf
Bump sphinx from 4.3.2 to 4.5.0
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 4.3.2 to 4.5.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.3.2...v4.5.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 11:51:12 +11:00
dependabot[bot]
a7ca6d47a6
Bump pytest from 7.0.1 to 7.1.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.0.1 to 7.1.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.0.1...7.1.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 11:50:51 +11:00
Brian May
6d36916f48
Remove support for Python 3.6 and 3.7
...
Fixes #716
2022-03-29 11:47:05 +11:00
Scott Kuhl
5719d424de
Remove --sudoers, improve --sudoers-no-modify
...
Allowing sshuttle to add/overwrite sudoers configuration file at
locations of the users' choosing adds complexity to the code compared
to asking users to install the sudo configuration themselves. It
requires sshuttle to make decisions about how much effort we put into
ensuring that the file is written to a proper location. The current
method relies on the 'realpath' program which is not installed on
MacOS by default.
There are serious problems when the sudo configuration is used to
allow a user to *only* run sshuttle as root (with or without a
password). First, that user could then use the --sudoers option to
give other users sudo privileges. Second, the user can run any command
as root because sshuttle accepts a --ssh-cmd parameter which allows a
user to specify a program that sshuttle should run. There may also be
additional issues that we have not identified.
By removing the --sudoers option (and the associated sudoers-add
script), this reduces the problems above. This code keeps the
--sudoers-no-modify feature which prints a configuration to stdout for
the user to install. It includes a clear warning about how --ssh-cmd
could potentially be abused to run other programs.
A warning about some of these issues has been in sshuttle since
version 1.1.0. This commit also adds that warning to more locations in
the documentation.
2022-03-13 09:29:56 +11:00
lbausch
9431bb7a2f
Fix typo
2022-03-03 07:28:46 +11:00
Brian May
8c94b55d30
Merge pull request #743 from sshuttle/dependabot/github_actions/actions/checkout-3
...
Bump actions/checkout from 2.4.0 to 3
2022-03-03 07:28:13 +11:00
dependabot[bot]
1ed09fbe72
Bump actions/checkout from 2.4.0 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2.4.0 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 10:10:13 +00:00
Brian May
ce7b4f83b2
Merge pull request #741 from sshuttle/dependabot/github_actions/actions/setup-python-3
...
Bump actions/setup-python from 2.3.2 to 3
2022-03-02 09:30:19 +11:00
dependabot[bot]
d9d3533b82
Bump actions/setup-python from 2.3.2 to 3
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2.3.2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2.3.2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-01 10:10:14 +00:00
Brian May
0932bdd231
Merge pull request #737 from sshuttle/dependabot/pip/pytest-7.0.1
...
Bump pytest from 7.0.0 to 7.0.1
2022-02-15 07:34:15 +11:00
dependabot[bot]
f4150b7283
Bump pytest from 7.0.0 to 7.0.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.0.0...7.0.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 10:13:35 +00:00
Brian May
bfd6f5d088
Merge pull request #735 from mangano-ito/allows-wildcard-hosts
...
Allows wildcard host names as subnets
2022-02-11 08:10:46 +11:00
mangano-ito
016919cf95
accept a wildcarded host
2022-02-10 23:32:43 +09:00
mangano-ito
48ab82b81e
test a wildcarded host acceptable
2022-02-10 23:32:43 +09:00
Brian May
d8a07a5244
Merge pull request #734 from mangano-ito/add-tests-for-hostname-resolution
...
Add tests for host name resolution
2022-02-10 20:12:56 +11:00
mangano-ito
2f5c946b48
define flake8 max line length longer (79 to 128)
2022-02-10 08:41:22 +09:00