Skip to content

Publish labkey.aws.ssm.enabled for explicit SSM opt-in - #1468

Merged
labkey-jeckels merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_ssmOptIn
Aug 21, 2026
Merged

Publish labkey.aws.ssm.enabled for explicit SSM opt-in#1468
labkey-jeckels merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_ssmOptIn

Conversation

@labkey-jeckels

@labkey-jeckels labkey-jeckels commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Rationale

A customer reported ERROR-level SSM logging on an on-premise server that never intended to use AWS SSM, because SsmSecretProvider treated any resolvable AWS credentials as a signal to activate. See the linked premiumModules PR for the full symptom.

This post-processor already computes the right answer — hasExplicitConfig — and returns before touching the AWS SDK on-premise. It just never told the module. Publishing that decision lets CloudServices stop inferring intent from whatever credentials happen to resolve.

No configuration change is needed in cloud deployments: the flag is published automatically whenever context.awsParameterStore.prefix or context.awsParameterStore.secretsPrefix is set, which cloud already does.

Related Pull Requests

  • LabKey/premiumModules#688

Changes

  • Publish labkey.aws.ssm.enabled=true alongside the region and secrets prefix

The post-processor already decides whether the operator opted into AWS config, but never told the CloudServices module, which re-derived intent from whatever AWS credentials happened to resolve. Publishing that decision alongside the region and secrets prefix lets SsmSecretProvider gate on it instead.

Cloud deployments are unaffected: the flag is published whenever context.awsParameterStore.prefix or context.awsParameterStore.secretsPrefix is configured.
@labkey-jeckels labkey-jeckels self-assigned this Aug 11, 2026
@labkey-jeckels labkey-jeckels added this to the 26.07 milestone Aug 11, 2026
// SsmClient for on-demand SecretProperty lookups via SecretService at runtime.
// SsmClient for on-demand SecretProperty lookups via SecretService at runtime. The enabled
// flag carries the hasExplicitConfig decision above for use in SsmSecretProvider
System.setProperty("labkey.aws.ssm.enabled", "true");

@labkey-gokhano labkey-gokhano Aug 17, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Minor comment update: This flag is set to True whenever we didn't take the early return above: either explicit config or at least one SSM reference

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I revised to reference the class-level docs that already explain in more detail

@labkey-jeckels
labkey-jeckels merged commit 1fa7cf9 into release26.7-SNAPSHOT Aug 21, 2026
6 of 8 checks passed
@labkey-jeckels
labkey-jeckels deleted the 26.7_fb_ssmOptIn branch August 21, 2026 00:23
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