-
Notifications
You must be signed in to change notification settings - Fork 202
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 fields for TLS material to destination config #2249
Draft
meln5674
wants to merge
2
commits into
containers:main
Choose a base branch
from
meln5674:feature/remote-tls
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -907,11 +907,24 @@ URI to access the Podman service | |
- **rootless remote** - ssh://[email protected]/run/user/1000/podman/podman.sock | ||
- **rootful local** - unix:///run/podman/podman.sock | ||
- **rootful remote** - ssh://[email protected]:22/run/podman/podman.sock | ||
- **tcp/tls remote** - tcp://10.10.1.136:9443 | ||
|
||
**identity="~/.ssh/id_rsa** | ||
|
||
Path to file containing ssh identity key | ||
|
||
**tls_cert_file="~/certs/podman/tls.crt"** | ||
|
||
Path to PEM file containing TLS client certificate | ||
|
||
**tls_key_file="~/certs/podman/tls.key"** | ||
|
||
Path to PEM file containing TLS client certificate private key | ||
|
||
**tls_ca_file="~/certs/podman/ca.crt"** | ||
|
||
Path to PEM file containing TLS certificate authority (CA) bundle | ||
|
||
**[engine.volume_plugins]** | ||
|
||
A table of all the enabled volume plugins on the system. Volume plugins can be | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -766,10 +766,18 @@ default_sysctls = [ | |
# rootful "unix:///run/podman/podman.sock (Default) | ||
# remote rootless ssh://engineering.lab.company.com/run/user/1000/podman/podman.sock | ||
# remote rootful ssh://[email protected]:22/run/podman/podman.sock | ||
# tcp/tls remote tcp://10.10.1.136:9443 | ||
# | ||
# uri = "ssh://[email protected]/run/user/1001/podman/podman.sock" | ||
# Path to file containing ssh identity key | ||
# identity = "~/.ssh/id_rsa" | ||
# Path to PEM file containing TLS client certificate | ||
# tls_cert_file = "~/certs/podman/tls.crt" | ||
# Path to PEM file containing TLS client certificate private key | ||
# tls_key_file = "~/certs/podman/tls.key" | ||
# Path to PEM file containing TLS certificate authority (CA) bundle | ||
# tls_ca_file = "~/certs/podman/ca.crt" | ||
|
||
|
||
# Directory for temporary files. Must be tmpfs (wiped after reboot) | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -587,10 +587,17 @@ default_sysctls = [ | |
# rootful "unix:///run/podman/podman.sock (Default) | ||
# remote rootless ssh://engineering.lab.company.com/run/user/1000/podman/podman.sock | ||
# remote rootful ssh://[email protected]:22/run/podman/podman.sock | ||
# tcp/tls remote tcp://10.10.1.136:9443 | ||
# | ||
# uri = "ssh://[email protected]/run/user/1001/podman/podman.sock" | ||
# Path to file containing ssh identity key | ||
# identity = "~/.ssh/id_rsa" | ||
# Path to PEM file containing TLS client certificate | ||
# tls_cert_file = "~/certs/podman/tls.crt" | ||
# Path to PEM file containing TLS client certificate private key | ||
# tls_key_file = "~/certs/podman/tls.key" | ||
# Path to PEM file containing TLS certificate authority (CA) bundle | ||
# tls_ca_file = "~/certs/podman/ca.crt" | ||
|
||
# Directory for temporary files. Must be tmpfs (wiped after reboot) | ||
# | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see
identity
sets the same example with~
but AFAIK our code will never expand this as we just pass it to the open syscall and normally the shell will expand~
so this will most likely not work.So this example might mislead some people to thinking it works, I would recommend using full paths in the example same for all the other cases here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I think you're right. Do you think it'd be a good idea to require consumers (e.g. podman) to expand the tilde to be consistent with the identity field? Or does the identity example also need to be updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just update the docs here, so far nobody has asked for it. And if you create the connections with
podman system connection add --identity ~/...
the shell already did it for us and we just see the full path anyway so I don't think it matters to users.It only matters for users that manually write the connections in the config file but I am not aware of anyone doing this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Done.