Skip to content

feat: add certs plugin namespace for certs:add - #17

Open
valbertovc wants to merge 9 commits into
fenrrir:masterfrom
valbertovc:feat/certs-add
Open

feat: add certs plugin namespace for certs:add#17
valbertovc wants to merge 9 commits into
fenrrir:masterfrom
valbertovc:feat/certs-add

Conversation

@valbertovc

Copy link
Copy Markdown
Contributor

Summary

  • Add Certs namespace on App with add(), generate(), remove(), and has_cert
  • Integrate certs.add and certs.generate deploy JSON config keys
  • Keep legacy generate_cert / cert config and deprecated App.generate_certs aliases
  • Bump version to 0.10.0

Stacked on feat/deployment-image (registry, builder, git image deploy, pyproject migration, Python 3.10+, SSH port, CI).

API example

dokku = dokkupy.Dokku('[email protected]')
app = dokku['myapp']
app.certs.add('/path/on/dokku-host/server.crt', '/path/on/dokku-host/server.key')

Deploy config example

{
  "certs": {
    "add": {
      "crt": "/path/on/dokku-host/server.crt",
      "key": "/path/on/dokku-host/server.key"
    }
  }
}

Test plan

  • python -m unittest discover -s tests -v (48 tests pass)
  • Verify certs:add against a real Dokku host

Made with Cursor

valbertovc and others added 9 commits July 18, 2026 12:33
Replace setup.py and the standalone dokkupycli script with PEP 621
metadata and a console entry point. Align license and README metadata
with PyPI guidance.

Bump version to 0.4.1.

Co-authored-by: Rodrigo Pinheiro Marques de Araújo <[email protected]>
Co-authored-by: Cursor <[email protected]>
Drop EOL Python support metadata, add OS/Topic classifiers, simplify
subprocess handling, and add CI to validate builds across supported
runtimes.

Bump version to 0.5.0.

BREAKING CHANGE: Python 3.7–3.9 and Python 2 are no longer supported.
Requires Python >= 3.10.

Co-authored-by: Rodrigo Pinheiro Marques de Araújo <[email protected]>
Co-authored-by: Cursor <[email protected]>
Add ssh_port to Dokku, --ssh-port CLI flag, and ssh:// git remote URLs
for non-default ports. Add unittest coverage in tests/test_core.py and
tests/test_cli.py.

Bump version to 0.6.0.

Closes fenrrir#10

Co-authored-by: Rodrigo Pinheiro Marques de Araújo <[email protected]>
Co-authored-by: Cursor <[email protected]>
Introduce dokku.registry.login() and dokku.registry.set() mirroring
registry:login and registry:set CLI commands, with deploy JSON support
under the registry key and env-based secret resolution.

Co-authored-by: Cursor <[email protected]>
Extract Registry.apply_config into plugins/registry.py and organize
tests under tests/plugins/ to mirror the production package structure.

Co-authored-by: Cursor <[email protected]>
Introduce app.builder.set() and builder.set deploy JSON config key,
mirroring dokku builder:set for properties like selected and build-dir.

Co-authored-by: Cursor <[email protected]>
Introduce app.git.from_image() mirroring git:from-image and deployment
JSON config with method image to skip git push deploy.

Co-authored-by: Cursor <[email protected]>
Introduce app.certs.add() and consolidate cert methods under the
Certs namespace with certs.add and certs.generate deploy JSON keys.
Legacy generate_cert config remains supported.

Co-authored-by: Cursor <[email protected]>
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