Skip to content
Open
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2fb3f06
Fix --version-id -> --versionid in CLI
Tahoora-Tabassum Dec 23, 2025
d4bb454
Fix --version-id -> --versionid in test script
Tahoora-Tabassum Dec 23, 2025
189458e
cli: add mkdist validations, completion helper, tests and docs
Tahoora-Tabassum Dec 26, 2025
f6f67c0
chore: refactored readme
Integer-Ctrl Dec 4, 2025
49fa461
cli: delete datasets (#38)
Integer-Ctrl Dec 4, 2025
0303454
refactor: split client into deploy and download
Integer-Ctrl Dec 5, 2025
525ba75
refactor: iteration over download.py
Integer-Ctrl Dec 5, 2025
9a95550
refactor: iteration over deploy.py
Integer-Ctrl Dec 7, 2025
0cd8c5e
refactor: webdav
Integer-Ctrl Dec 7, 2025
634ffd4
feat: ruff linter & formatter
Integer-Ctrl Dec 7, 2025
c1b8430
feat: python 3.11 migration
Integer-Ctrl Dec 9, 2025
a945b27
init: issue templates
Integer-Ctrl Dec 9, 2025
2fc99d1
init: pr template
Integer-Ctrl Dec 9, 2025
8c4cfeb
fix: wrong encoding caused wrong content lenght
Integer-Ctrl Dec 11, 2025
8ff62c3
feat: batch deletions to allow cancellation before execution
Integer-Ctrl Dec 16, 2025
03964ae
Restrict Vault token exchange to specific hosts; improve auth errors;…
DhanashreePetare Dec 21, 2025
b4bbfaa
chore: README download links
Integer-Ctrl Dec 21, 2025
f8aa663
Use api_deploy.create_distribution to avoid circular import
Tahoora-Tabassum Dec 26, 2025
0437e1a
Add verbose CLI flag with redacted HTTP logging
Tahoora-Tabassum Jan 4, 2026
5b4badd
Add verbose (-v) flag using logging; redact Authorization and X-API-K…
Tahoora-Tabassum Jan 6, 2026
3cad314
Add verbose logging support and stabilize auth tests
Tahoora-Tabassum Jan 7, 2026
3de6e16
* Restrict Vault token exchange to specific hosts; improve auth error…
DhanashreePetare Jan 7, 2026
0471ecf
Merge branch 'main' into pr-verbose-clean
Tahoora-Tabassum Feb 9, 2026
cef1580
test: skip live download integration tests
Tahoora-Tabassum Feb 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: 'Bug Report Template'
about: Report a bug to help us improve
title: 'bug: <context of the bug>'
labels: bug
assignees: ''

---

# Bug Report

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
What you expected to happen.

**Screenshots (optional)**
Add screenshots if helpful.

**Additional context (optional)**
Anything else relevant.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: 'Feature Request'
about: Suggest an idea or enhancement
title: 'feature: <feature request>'
labels: enhancement
assignees: ''

---

# Feature Request

**Describe the feature you'd like**
A short description of the desired feature.

**Why is this feature important?**
Explain the benefit or use case. Is your feature request related to a problem?

**Describe alternatives you've considered**
List any alternative solutions or workarounds considered.

**Additional context**
Add any other details or mockups here.
25 changes: 25 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Pull Request

## Description

Briefly describe the changes introduced in this PR.

**Related Issues**
Link any related issues (e.g., `Issue #12`).

## Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] This change requires a documentation update
- [ ] Housekeeping

## Checklist:
- [ ] My code follows the [ruff code style](http://stellarium.org/doc/head/codingStyle.html) of this project.
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation (if applicable)
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] `poetry run pytest` - all tests passed
- [ ] `poetry run ruff check` - no linting errors
25 changes: 9 additions & 16 deletions .github/workflows/python-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"
- uses: Gr1N/setup-poetry@v8 #install poetry
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

Gr1N/setup-poetry GitHub Action maintenance status 2025

💡 Result:

In 2025, Gr1N/setup-poetry appears inactive / not actively maintained:

  • The repo is not archived, but the last code push was 2024-06-16 (no pushes during 2025). [1]
  • Commit activity shows 0 commits in the past year (as of the dataset sync in 2025), indicating no ongoing development through 2025. [2]
  • The latest published major tag is still v9 (shown as released “almost 2 years ago” on the GitHub Actions registry metadata), with no newer major versions appearing in 2025. [3]

Sources: [1] [2] [3]


Consider replacing Gr1N/setup-poetry with an actively maintained alternative.

Gr1N/setup-poetry@v8 has not been actively maintained since June 2024 with no updates in 2025. The latest major version (v9) was released nearly two years ago. Use snok/install-poetry instead, which is actively maintained and more widely adopted.

🤖 Prompt for AI Agents
In @.github/workflows/python-CI.yml at line 26, Replace the unmaintained GitHub
Action usage "Gr1N/setup-poetry@v8" in the workflow with the actively maintained
"snok/install-poetry" action: update the step that currently uses
Gr1N/setup-poetry to use snok/install-poetry (e.g., "uses:
snok/install-poetry@vX") and migrate any inputs to the new action's expected
keys (for example use "poetry-version" or "version" per snok/install-poetry
docs) so the workflow installs the desired Poetry version and behaves the same
as the previous step.

- name: Install parts of toolchain
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install requirements with poetry
run: poetry install
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with Ruff
run: poetry run ruff check --output-format=github .
- name: Test with pytest
run: |
poetry run pytest
run: poetry run pytest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# project-specific
tmp/
vault-token.dat

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Changelog

All notable changes to this project will be documented in this file.

## [0.15] - 2025-12-31

### Added
- Vault authentication improvements with host-restricted token exchange
- Comprehensive tests for Vault authentication behavior
- Enhanced docstrings across all modules for better documentation coverage
- Support for download redirect handling

### Fixed
- Vault token exchange now restricted to known hosts for improved security
- Clearer authentication error messages
- README instructions now consistent with PyPI release

### Changed
- Updated CLI usage documentation to reflect current command structure
- Improved error handling in download operations

### Notes
- Version 0.15 skips 0.13 and 0.14 as requested in issue #35
- This release updates the PyPI package to align with current repository features
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim
FROM python:3.11-slim

WORKDIR /data

Expand Down
19 changes: 19 additions & 0 deletions PR_BODY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Title: Add verbose CLI flag (-v) with redacted HTTP logging

Short description:
- Add a global `-v/--verbose` CLI flag to enable redacted HTTP request/response logging to help debug interactions with the Databus and Vault.

What changed:
- Add global `-v/--verbose` option to `databusclient` CLI and propagate it to API calls.
- Implement redacted HTTP logging helper (redacts `Authorization` and `X-API-KEY` headers).
- Instrument `download` and Vault token exchange flows to print HTTP request/response details when `-v` is enabled.
- Add unit tests ensuring verbose logs are printed and sensitive tokens are redacted.
- Update `README.md` and add a `CHANGELOG.md` entry.

Why:
- Provides safe, actionable debugging output for issues involving HTTP communication and auth problems without exposing secrets.

Security note:
- Authorization and API-key headers are redacted in verbose output. Avoid enabling verbose output in public CI logs.

Closes #27
Loading