Skip to content

Add stage encryption type changes#3011

Open
sfc-gh-svasudevan wants to merge 2 commits into
mainfrom
svasudevan-svasudevan-sse-stage-enablement-azure-1
Open

Add stage encryption type changes#3011
sfc-gh-svasudevan wants to merge 2 commits into
mainfrom
svasudevan-svasudevan-sse-stage-enablement-azure-1

Conversation

@sfc-gh-svasudevan

@sfc-gh-svasudevan sfc-gh-svasudevan commented May 11, 2026

Copy link
Copy Markdown
Contributor

Description
With snowflake-cli's build-image command, we are unable to use SNOWFLAKE_FULL stage encryption type for CSPs other than AWS.
Hence we will give an option as an argument, where the users can specify what encryption type to use for their temp stages created during this image builder flow.
If they don't specify, we use the default in the account.

Testing
Tested locally against azpreprod3 and preprod8.
Added unit tests for the same.

Sample command:
snow spcs service build-image -c azpp3 --database testsv_demo_1 --schema testsv_demo_1 --compute-pool sv_test_pool --image-repository testsv_demo_1.testsv_demo_1.test_repo --image-name helloworld1 --image-tag v0.1 --eai-name sf_image_build_eai_1 --build-context-dir /home/svasudevan/test-svasudevan-images/ --stage-encryption=SNOWFLAKE_SSE

Pre-review checklist

  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated automated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • I've confirmed that my changes are working by executing CLI's commands manually on MacOS.
  • I've confirmed that my changes are working by executing CLI's commands manually on Windows.
  • I've confirmed that my changes are up-to-date with the target branch.
  • I've described my changes in the release notes.
  • I've described my changes in the section below.
  • I've described my changes in the documentation.

Changes description

...

Description

Testing
@sfc-gh-svasudevan sfc-gh-svasudevan marked this pull request as ready for review May 12, 2026 04:47
@sfc-gh-svasudevan sfc-gh-svasudevan requested review from a team as code owners May 12, 2026 04:47

@sfc-gh-mdrach sfc-gh-mdrach 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.

Did we test that this works by default on azure (no override param such as --stage-encryption=SNOWFLAKE_SSE needed?)

Comment on lines +18439 to +18443
| --stage-encryption TEXT SNOWFLAKE_SSE or SNOWFLAKE_FULL for an |
| auto-created temporary stage; |
| ignored when --stage is set. Omit for|
| legacy CREATE STAGE (no ENCRYPTION |
| clause). |

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.

looks like the | are crooked

@sfc-gh-mdrach sfc-gh-mdrach 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.

Override is only necessary to cope with deprecated stage mount. https://docs.snowflake.com/en/developer-guide/snowpark-container-services/snowflake-stage-volume#limitations-when-using-the-deprecated-version-of-the-stage-volume-implementation.

Let's confirm that this is still active in customer accounts before proceeding.

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