Skip to content

feat: update column with and change api hash - #11

Merged
hali-coding merged 1 commit into
mainfrom
feat/headers
Jul 25, 2026
Merged

feat: update column with and change api hash#11
hali-coding merged 1 commit into
mainfrom
feat/headers

Conversation

@hali-coding

Copy link
Copy Markdown
Owner

Changes

  • fix: update API key hashing in dashboard
  • feat: change column header sizing

Copilot AI review requested due to automatic review settings July 25, 2026 07:26
@hali-coding
hali-coding merged commit 39a266f into main Jul 25, 2026
6 checks passed
@hali-coding
hali-coding deleted the feat/headers branch July 25, 2026 07:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the TUI certificate table’s SANs column sizing logic and improves dashboard session key derivation by separating the Flask secret_key from the API token via HMAC.

Changes:

  • Adjust DataTable column handling to keep header sizing stable and explicitly size the SANs column.
  • Derive Flask session signing key with HMAC(key-separation) instead of hashing the token directly.
  • Add a startup check for openssl availability and include a VS Code task for running the app.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ssltui/tui.py Adjusts toolbar labels and adds explicit SANs column sizing logic in the cert DataTable.
ssltui/api.py Changes Flask secret_key derivation to HMAC-based key separation from the API token.
ssltui/main.py Adds an openssl presence check before running commands.
.vscode/tasks.json Adds a VS Code task to run ssltui via uv run.
.gitignore Updates ignore rules to allow committing .vscode/ content.
.gitattributes Reorders * text=auto rule placement.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ssltui/tui.py
Comment on lines +1023 to +1026
sans_col = table.columns[self._sans_col_key]
sans_col.auto_width = False
sans_col.width = max(header_w, round(natural * 0.8))
table._require_update_dimensions = True
Comment thread ssltui/tui.py
Comment on lines 1182 to 1186
def _on_init_done(self, result: bool) -> None:
self._update_ca_status()
self._build_table()
self.refresh_bindings()
if result:
token_path = config.api_token_path(_root())
if token_path.exists():
self.app.push_screen(
TokenScreen(token_path.read_text().strip()),
lambda _: self.query_one("#cert-table", DataTable).focus(),
)
return
self.query_one("#cert-table", DataTable).focus()
Comment thread ssltui/__main__.py
Comment on lines +115 to +121
if shutil.which("openssl") is None:
print(
"Error: 'openssl' was not found on PATH. "
"Please install OpenSSL and ensure it is available in your PATH.",
file=sys.stderr,
)
sys.exit(1)
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