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

allow ssh-principals with service name based dns cnames #2122

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

havetisyan
Copy link
Collaborator

when sia provides an ssh host certificate request where the principal is based on dns suffix or a cname one without relying on hostname, current changes now allow that support by relying on the configured hostname resolver.

So you can have an instance with service api and domain sports with dns suffix athenz.io to include the following ssh principals:

10.11.11.11 - internal private ip of the hostname
api.sports.athenz.io - service based name
bastion.sports.athenz.cloud - this is configured as cname for api.sports.athenz.io thus allowed.

the logic for the last 2 checks is part of the HostnameResolver interface implementation.

@abvaidya abvaidya merged commit 89c6792 into master Apr 5, 2023
@abvaidya abvaidya deleted the ssh-support branch April 5, 2023 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants