-
Notifications
You must be signed in to change notification settings - Fork 0
feat: implement docker container manager mvp #25
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fc3a1c4
feat: implement docker container manager mvp
remcostoeten 8aecd50
feat: Integrate Tauri shell plugin for Docker management and remove s…
remcostoeten a49fa31
docs: Add todo list feature specification.
remcostoeten ec2c9c7
chore: apply oxlint and oxfmt fixes
remcostoeten e5bd3b2
Some accessibillity improvements
remcostoeten e54c3f6
feat(desktop): add unit and component tests for docker-manager
remcostoeten 9e72a1b
pr feedback
remcostoeten 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
🧩 Analysis chain
🌐 Web query:
Tauri v2 shell allow-execute args restriction allowlist syntax documentation💡 Result:
Short answer — Tauri v2 shell allow-execute args allowlist:
Example capability snippet (JSON):
{
"permissions": [
{
"identifier": "shell:allow-execute",
"allow": [
{
"name": "run-git-commit",
"cmd": "git",
"args": ["commit", "-m", { "validator": "\S+" }]
}
]
}
]
}
Notes:
Sources: Tauri v2 shell docs. [1][2]
References
[1] Tauri v2 plugin shell docs (official).
[2] Tauri v2 reference (shell) — allowlist args description.
Replace
args: truewith a whitelist of allowed docker subcommands.args: truepermits any docker argument, which is overly permissive. Use Tauri v2's array syntax to specify allowed subcommands:{ "identifier": "shell:allow-execute", "allow": [ { "name": "docker", "cmd": "docker", "args": ["run", "ps", "logs"] } ] }If dynamic arguments are needed (e.g., container IDs), use regex validators for that position:
{ "identifier": "shell:allow-execute", "allow": [ { "name": "docker-logs", "cmd": "docker", "args": ["logs", { "validator": "[a-f0-9]{12}" }] } ] }🤖 Prompt for AI Agents