summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2023-05-05Test proving the issue driving most use of disabled_algorithmsJeff Forcier
Phrased in a it-passes-now fashion, but once fixed in main code path, will need changing of course.
2023-05-05Comment updatesJeff Forcier
2023-05-05Think we need pytest.ini in the sdist now if its tests are to work when ↵Jeff Forcier
distributed
2023-05-05Enhance PKey.from_path and test it betterJeff Forcier
2023-05-05Migrate rest of main keys and update suite to be more pytest-relaxed compatJeff Forcier
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.
2023-05-05Start moving key fixtures into support folderJeff Forcier
2023-05-05Opt-in overhaul to how MSG_SERVICE_REQUEST is doneJeff Forcier
- 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
2023-05-05Enhance AgentKey with comment, inner_key attributesJeff Forcier
- 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?)
2023-05-05Enhance PKey a bunchJeff Forcier
- 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
2023-05-05Remove outdated/bad test fixtureJeff Forcier
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.
2023-05-05Fix inaccurate PKey.__init__ docstring: data is bytes, not strJeff Forcier
This seems likely a missed spot from the Python 3 conversion or the Python 2 drop.
2023-05-05Add ed25519 and ecdsa key types to hostkeys test fixturesJeff Forcier
2023-05-05Add algorithm_name property to PKeyJeff Forcier
2023-05-05Add new PKey.fingerprint property at long lastJeff Forcier
2023-05-05Fix now-broken-on-py3 AgentKey.__str__, by deleting itJeff Forcier
2023-05-05Random comment addsJeff Forcier
2023-04-16Tinker a bit with tasks re: doc watching, doc browsingJeff Forcier
Requires an inflight set of changes to invocations
2023-04-12Version bump for devJeff Forcier
2023-04-12Merge branch '3.0' into 3.1Jeff Forcier
2023-04-12Use newer circleci orb to stop using codecov's old pypi packageJeff Forcier
Closes #2226
2023-03-10Cut 3.1.0Jeff Forcier
2023-03-10codespellJeff Forcier
2023-03-10Changelog re #2013, closes #2009Jeff Forcier
2023-03-10Merge branch 'main' into 2013-intJeff Forcier
2023-03-03flake8 re #2193Jeff Forcier
2023-03-03Merge pull request #2193 from AstraLuma/server-agent-docsJeff Forcier
Expand documentation on server agent handling.
2023-03-02Add missing comma to pass style checksMike Salvatore
2023-03-02Use a lambda for _mock_set_remote_channel()Mike Salvatore
2023-03-02Wrap test_channel_timeout() to 79 charactersMike Salvatore
2023-03-02Test configurable channel timeoutIlija Lazoroski
2023-03-02Add timeout for opening an SSH channelvakarisz
2023-02-24Expand documentation on server agent handling.Jamie Bliss
2023-02-24Use releases 2.1 to hide 1.x, 2.x unreleased bits in changelogJeff Forcier
2023-02-24s/os.path/pathlib/ in www sphinx confJeff Forcier
2023-02-16Add credit in changelog re #2173Jeff Forcier
2023-02-16spacing to pass style checkAlex Chavkin
2023-02-16Update tests for #2173Alex Chavkin
2023-02-16hostkeys: update docstring for autdodoc per #2173Alex Chavkin
2023-02-16Changelog for PR #2173Alex Chavkin
2023-02-16Double quotes to pass style checkAlex Chavkin
2023-02-16Split known_hosts fields on either a single space or tabAlex Chavkin
2023-02-16Split known host file entries on any whitespaceAlex Chavkin
(Not just a single space) OpenSSH is more permissive in documentation and code
2023-01-27Add codespell to dev-reqs, circleciJeff Forcier
2023-01-27Comment codespellrc again, add Messr Flage back to ignored words listJeff Forcier
Really wish codespell had inline ignores like flake/black
2023-01-27Just change a faux-misspelt surname in an example text snippetJeff Forcier
2023-01-27Twiddle File test to lack faux-misspellings in its cut-up stringsJeff Forcier
2023-01-27Twiddle ProxyCommand read test to not have faux misspellings, and to be way ↵Jeff Forcier
more understandable
2023-01-27Changelog re #2178Jeff Forcier
2023-01-27Tweak silly test constant to be a real wordJeff Forcier
2023-01-27Tidy up codespellrc, revert s/keypair/key pair/Jeff Forcier