Skip to content

Conversation

@UserNotFound
Copy link
Member

@UserNotFound UserNotFound commented Nov 10, 2025

Deploy using Operation.settings and Operation.sensitive_settings

This can go out after release of https://github.com/aptible/sweetness/pull/2024 (already relased)

It works seemlessly in all phases of migrating to settings.
It is not required for customers to us this update until phase 3.
The user experience/interface for the deploy command is not changed at all.

It's implicitly tested in integration (given we have aptible deploy --docker-image tested), but also explicitly tested extensively in the API-based deployment specs, which are the same types of Operation parameters this CLI command could/would create.

Copy link
Contributor

Copilot AI left a comment

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 migrates deployment functionality from using overloaded environment variables to using dedicated settings and sensitive_settings parameters for the Operation API. This supports a cleaner separation between user environment variables and deployment configuration.

Key Changes:

  • Deprecated passing deployment configuration as environment variables (e.g., APTIBLE_DOCKER_IMAGE=value)
  • Migrated to use settings for non-sensitive deployment configuration and sensitive_settings for credentials
  • Updated CLI options to explicitly define each parameter instead of programmatically generating them

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
lib/aptible/cli/subcommands/deploy.rb Refactored to use settings and sensitive_settings parameters instead of environment variables; deprecated old environment variable pattern
spec/aptible/cli/subcommands/deploy_spec.rb Updated tests to expect settings and sensitive_settings parameters; changed expectations for deprecated environment variable usage
lib/aptible/cli/version.rb Bumped version to 0.25.2

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

UserNotFound and others added 2 commits November 19, 2025 10:59
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@UserNotFound UserNotFound requested review from almathew and madhuravius and removed request for almathew November 19, 2025 18:10
@UserNotFound UserNotFound marked this pull request as ready for review November 21, 2025 21:46
@UserNotFound UserNotFound requested review from aguilinger and removed request for madhuravius December 12, 2025 23:26
m = 'ERROR: The environment variables ' \
"#{DEPRECATED_ENV.join(', ')} are deprecated. " \
"Use the options #{option_names}, instead"
raise Thor::Error, m
Copy link
Member

Choose a reason for hiding this comment

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

are we going straight to error and not doing a warning first?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can change to a warning for now.

module Aptible
module CLI
VERSION = '0.25.1'.freeze
VERSION = '0.25.2'.freeze
Copy link
Member

Choose a reason for hiding this comment

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

if we are hard erroring on previously fine inputs, probably deserves more than a patch bump

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.

3 participants