Skip to content

Server-side config for GCS token expiration - #9

Merged
fcollman merged 2 commits into
copilot/address-pr-reviewsfrom
copilot/update-skeleton-service
Mar 18, 2026
Merged

Server-side config for GCS token expiration#9
fcollman merged 2 commits into
copilot/address-pr-reviewsfrom
copilot/update-skeleton-service

Conversation

Copilot AI commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

expiration_minutes was removed from the token endpoint in PR #8, but the reviewer wants expiry controlled server-side via config rather than omitted entirely.

Changes

  • config.py: Added SKELETON_TOKEN_EXPIRATION_MINUTES = 60 to BaseConfig; overridable via config.cfg or env-based config
  • service.py: Re-added expiration_minutes: int = 60 param to get_skeleton_token_by_datastack_and_rids(); caps reported expiry to min(credential_expiry, now + expiration_minutes) with timezone-aware comparison (google-auth returns naive UTC datetimes)
  • api.py: post() reads SKELETON_TOKEN_EXPIRATION_MINUTES from Flask app config and threads it through process() → service; no client-supplied expiry
Original prompt

Pull Request: #8


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

- Add SKELETON_TOKEN_EXPIRATION_MINUTES=60 to BaseConfig in config.py
- Re-add expiration_minutes param to get_skeleton_token_by_datastack_and_rids()
  sourced from server config (not client request body)
- Cap reported token expiry to min(credential_expiry, now + expiration_minutes)
  with proper timezone-aware datetime comparison
- api.py reads SKELETON_TOKEN_EXPIRATION_MINUTES from Flask app config and
  passes it down to the service layer

Co-authored-by: fcollman <782341+fcollman@users.noreply.github.com>
Copilot AI changed the title [WIP] Update skeleton service for enhanced performance Server-side config for GCS token expiration Mar 14, 2026
Copilot AI requested a review from fcollman March 14, 2026 14:12
@fcollman
fcollman marked this pull request as ready for review March 18, 2026 09:31
@fcollman
fcollman merged commit a3f894a into copilot/address-pr-reviews Mar 18, 2026
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