summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Migrate rest of existing agent tests to new module387-auth-mark-iiJeff Forcier2023-05-172-6/+72
| | | | | | Also make them better. Also fix AttributeError raising to not be py3.10 specific
* Test more of recent AgentKey additionsJeff Forcier2023-05-162-65/+25
|
* Implement _fields on AgentKey so __eq__ works correctlyJeff Forcier2023-05-163-1/+28
|
* Sick of the warnings about this and don't use it myselfJeff Forcier2023-05-161-2/+0
|
* Use new Invocations combo check taskJeff Forcier2023-05-162-3/+4
|
* Partial implementation of new AuthStrategy mechanism re #387Jeff Forcier2023-05-094-1/+277
|
* Made PKey.from_path cert-awareJeff Forcier2023-05-097-10/+127
| | | | | | | This was previously only done in SSHClient. It's not relevant for from_type_string which is aimed at ssh-agents, which tend to do their own cert loading where necessary
* Migrate cert related tests to newer pkey moduleJeff Forcier2023-05-0812-104/+59
| | | | | | - Merge them but also break them up. It's complicated. - Move cert files into _support - Related comments in the source as some of this is non-intuitive
* Twiddle RSA signature algorithm fallback behavior in AuthOnlyHandlerJeff Forcier2023-05-053-135/+189
| | | | Also includes more rearranging of AuthHandler related tests
* Move auth tests to be new style filename, obj namingJeff Forcier2023-05-052-12/+15
| | | | Also allow test task module selector to see new-style test modules
* Modernize auth tests to use shared server managerJeff Forcier2023-05-052-183/+65
|
* Start consolidating test server nonsenseJeff Forcier2023-05-052-179/+264
|
* Start using git-blame-ignore-revsJeff Forcier2023-05-051-0/+2
| | | | | | This file location/name is a GitHub-honored convention, and I've set up my local clone with `git config blame.ignoreRevsFile .git-blame-ignore-revs` to match.
* Allow transport tests' server to specify which class to useJeff Forcier2023-05-051-2/+7
|
* Refactor pubkey algo fallbackJeff Forcier2023-05-051-7/+15
|
* Test proving the issue driving most use of disabled_algorithmsJeff Forcier2023-05-051-0/+22
| | | | | Phrased in a it-passes-now fashion, but once fixed in main code path, will need changing of course.
* Comment updatesJeff Forcier2023-05-052-1/+3
|
* Think we need pytest.ini in the sdist now if its tests are to work when ↵Jeff Forcier2023-05-051-1/+1
| | | | distributed
* Enhance PKey.from_path and test it betterJeff Forcier2023-05-058-33/+58
|
* Migrate rest of main keys and update suite to be more pytest-relaxed compatJeff Forcier2023-05-0522-78/+199
| | | | | | | | | | | | | | Main branch as of today: 350 passed, 21 skipped, 52 deselected, 3 warnings in 11.10s This branch as of this commit: 361 passed, 21 skipped, 52 deselected, 3 warnings in 10.51s Of those 11 "new" tests, 8 are ones I wrote (tests/pkey.py). Hard to figure out what the other 3 are given pytest-relaxed's output is very different from regular verbose pytest. oops.
* Start moving key fixtures into support folderJeff Forcier2023-05-056-9/+13
|
* Opt-in overhaul to how MSG_SERVICE_REQUEST is doneJeff Forcier2023-05-055-34/+376
| | | | | | | | | | | | | | | | | | - New subclass(es) for opt-in use. Most below messages refer to them, not parent classes. - In parent classes, make handler tables instance attributes for easier subclass twiddling. - Refactor Transport-level session check - Refactor Transport-level auth handler instantiation (but keep behavior the same, for now) - Add service-request handler to Transport subclass, and remove from AuthHandler subclass - Remove manual event injection from the handful of Transport auth methods which supported it. Suspect unused, don't need the extra complexity, and wasn't consistent anyways - can add back smarter later if anyone needs it. - Not bothering with gssapi at all for now as I cannot easily test it - Primarily tested against the new AuthStrategy architecture
* Enhance AgentKey with comment, inner_key attributesJeff Forcier2023-05-053-8/+72
| | | | | | | | | | | - Comment was being read-but-not-stored from the agent reply. wat? - Use newly added PKey constructor to instantiate a key subclass for the 'inner'/proxied key, this way client code can obtain stuff like bit size, fingerprint, etc. - Proxy to inner_key with __getattr__ so clients don't have to know whether they're dealing with an AgentKey or a regular one - Add `__repr__` to PKey instead of doing it in AgentKey. (wow, how did we not have this ever?)
* Enhance PKey a bunchJeff Forcier2023-05-059-52/+153
| | | | | | | | | - add .name to eventually replace .get_name - use that in a bunch of spots to avoid some duplication - add .identifiers classmethod to extend existing idea from ECDSAKey - add from_type_string alt constructor which uses .identifiers - use that in HostKeys (includes hopefully-minor refactoring) - no longer giving outdated init kwarg to ECDSA host key loading
* Remove outdated/bad test fixtureJeff Forcier2023-05-051-3/+0
| | | | | | | | | | | This was added for #2173 but seemingly in its initial pass, before the submitter realized two spaces is _not_ a valid separator. It accidentally passed the tests due to how HostKeys.from_line was implemented at the time (two spaces -> 'key type' was misread and an empty string -> empty string not a valid key type -> returns None). An impending rewrite of that method turned this up.
* Fix inaccurate PKey.__init__ docstring: data is bytes, not strJeff Forcier2023-05-051-2/+2
| | | | | This seems likely a missed spot from the Python 3 conversion or the Python 2 drop.
* Add ed25519 and ecdsa key types to hostkeys test fixturesJeff Forcier2023-05-051-7/+9
|
* Add algorithm_name property to PKeyJeff Forcier2023-05-053-0/+24
|
* Add new PKey.fingerprint property at long lastJeff Forcier2023-05-053-1/+31
|
* Fix now-broken-on-py3 AgentKey.__str__, by deleting itJeff Forcier2023-05-053-3/+10
|
* Random comment addsJeff Forcier2023-05-052-0/+7
|
* Tinker a bit with tasks re: doc watching, doc browsingJeff Forcier2023-04-162-2/+5
| | | | Requires an inflight set of changes to invocations
* Version bump for devJeff Forcier2023-04-121-1/+1
|
* Merge branch '3.0' into 3.1HEADmain3.1Jeff Forcier2023-04-123-7/+3
|\
| * Use newer circleci orb to stop using codecov's old pypi package3.0Jeff Forcier2023-04-123-7/+3
| | | | | | | | Closes #2226
* | Cut 3.1.03.1.0Jeff Forcier2023-03-102-1/+2
| |
* | codespellJeff Forcier2023-03-101-1/+1
| |
* | Changelog re #2013, closes #2009Jeff Forcier2023-03-101-0/+5
| |
* | Merge branch 'main' into 2013-intJeff Forcier2023-03-1022-59/+138
|\ \
| * | flake8 re #2193Jeff Forcier2023-03-031-2/+2
| | |
| * | Merge pull request #2193 from AstraLuma/server-agent-docsJeff Forcier2023-03-032-0/+17
| |\ \ | | | | | | | | Expand documentation on server agent handling.
| | * | Expand documentation on server agent handling.Jamie Bliss2023-02-242-0/+17
| | | |
| * | | Use releases 2.1 to hide 1.x, 2.x unreleased bits in changelogJeff Forcier2023-02-242-1/+4
| | | |
| * | | s/os.path/pathlib/ in www sphinx confJeff Forcier2023-02-241-5/+6
| |/ /
| * | Add credit in changelog re #2173Jeff Forcier2023-02-161-1/+1
| | |
| * | spacing to pass style checkAlex Chavkin2023-02-161-0/+2
| | |
| * | Update tests for #2173Alex Chavkin2023-02-161-1/+17
| | |
| * | hostkeys: update docstring for autdodoc per #2173Alex Chavkin2023-02-161-1/+2
| | |
| * | Changelog for PR #2173Alex Chavkin2023-02-161-0/+3
| | |
| * | Double quotes to pass style checkAlex Chavkin2023-02-161-1/+1
| | |