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

sia: use hostname -f if os.Hostname does not return fqdn #2128

Merged
merged 1 commit into from
Apr 14, 2023
Merged

Conversation

havetisyan
Copy link
Collaborator

the instance owner has the option to enable sandns_hostname flag in SIA (e.g. AWS, GCP) to include the instance's hostname in the identity certificate. SIA uses os.Hostname() api but that sometimes does not return fqdn and golang does not provide an option to force the -f flag. So if the sandns_hostname option is enabled, sia will call os.Hostname() first and it does not get a fqdn, it tries "/bin/hostname -f" to see if it gets one.

@abvaidya abvaidya merged commit d225609 into master Apr 14, 2023
@abvaidya abvaidya deleted the fqdn branch April 14, 2023 00:28
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