Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ssh config #838

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Add ssh config #838

wants to merge 10 commits into from

Conversation

mattiaswal
Copy link
Contributor

@mattiaswal mattiaswal commented Nov 26, 2024

Description

This fix #441
But implemented in infix-services instead (without ietf-ssh)

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

@mattiaswal mattiaswal force-pushed the add-ssh-config branch 4 times, most recently from 166d5df to 570a89b Compare November 28, 2024 07:37
@mattiaswal mattiaswal marked this pull request as draft November 28, 2024 07:52
@mattiaswal mattiaswal force-pushed the add-ssh-config branch 2 times, most recently from 13eb6db to c511ea6 Compare November 28, 2024 10:17
@mattiaswal
Copy link
Contributor Author

module: infix-services
  +--rw mdns
  |  +--rw enabled?   boolean
  +--rw ssh
  |  +--rw enabled?   boolean
  |  +--rw hostkey*   ks:asymmetric-key-ref
  |  +--rw listen* [name]
  |     +--rw name       string
  |     +--rw address?   inet:ip-address
  |     +--rw port?      inet:port-number
  +--rw web
     +--rw enabled?     boolean
     +--rw console
     |  +--rw enabled?   boolean
     +--rw netbrowse
     |  +--rw enabled?   boolean
     +--rw restconf
        +--rw enabled?   boolean

@mattiaswal mattiaswal added the feature Feature request label Dec 1, 2024
@mattiaswal mattiaswal force-pushed the add-ssh-config branch 2 times, most recently from 6289fef to b558ece Compare December 3, 2024 15:21
Copy link
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work on this, it looks really good! So happy to get this support into Infix ❤️

src/confd/src/ietf-keystore.c Outdated Show resolved Hide resolved
src/confd/src/ietf-keystore.c Outdated Show resolved Hide resolved
src/confd/src/ietf-keystore.c Outdated Show resolved Hide resolved
src/confd/src/ietf-keystore.c Show resolved Hide resolved
src/confd/src/infix-services.c Outdated Show resolved Hide resolved
src/confd/yang/infix-services.yang Outdated Show resolved Hide resolved
src/confd/yang/infix-services.yang Outdated Show resolved Hide resolved
src/confd/yang/infix-services.yang Outdated Show resolved Hide resolved
src/confd/yang/infix-services.yang Outdated Show resolved Hide resolved
test/infamy/netconf.py Outdated Show resolved Hide resolved
@mattiaswal mattiaswal force-pushed the add-ssh-config branch 4 times, most recently from 6b8d07d to 0cfff78 Compare December 9, 2024 10:57
Copy link
Contributor

@wkz wkz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! 💪

src/confd/src/infix-services.c Outdated Show resolved Hide resolved
src/confd/yang/infix-services.yang Outdated Show resolved Hide resolved
@mattiaswal mattiaswal force-pushed the add-ssh-config branch 2 times, most recently from 7d1b80f to 95dcb26 Compare December 10, 2024 14:20
@mattiaswal mattiaswal requested review from wkz and troglobit December 10, 2024 14:24
@mattiaswal mattiaswal marked this pull request as ready for review December 10, 2024 14:25
Copy link
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, only minor stuff to comment on.

I guess the implement commit should be squashed with the last commit that adds rmrf(), or split and squashed where one part is squashed with Add support for configurable SSH server?

doc/ChangeLog.md Outdated Show resolved Hide resolved
@mattiaswal mattiaswal requested a review from troglobit December 10, 2024 22:17
Copy link
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, getting there! A few comments, and some still outstanding, added/updated.

Also, as per our discord discussion. It would be great to at least get an example of how-to-add-ssh to my custom factory-config, here https://github.com/kernelkit/infix/blob/main/doc/branding.md#example-snippets

doc/ChangeLog.md Outdated Show resolved Hide resolved
src/confd/src/ietf-keystore.c Outdated Show resolved Hide resolved
src/confd/src/infix-services.c Outdated Show resolved Hide resolved
import ietf-crypto-types {
prefix ct;
reference
"RFC AAAA: YANG Data Types and Groupings for Cryptography";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RFC 9640 or pre-RFC draft?

@mattiaswal mattiaswal force-pushed the add-ssh-config branch 2 times, most recently from a171837 to b8768d5 Compare December 11, 2024 13:03
@mattiaswal mattiaswal requested a review from troglobit December 11, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for ietf-ssh-server YANG
4 participants