Skip to content

Feature implementation from commits 572659b..03fb746#1

Open
yashuatla wants to merge 15 commits intofeature-base-1from
feature-head-1
Open

Feature implementation from commits 572659b..03fb746#1
yashuatla wants to merge 15 commits intofeature-base-1from
feature-head-1

Conversation

@yashuatla
Copy link
Owner

@yashuatla yashuatla commented Jun 25, 2025

PR Summary

Code Optimization and Version Check Enhancement

Overview

This PR includes code optimizations in the Shamir's Secret Sharing algorithm, formatting improvements in test files, and an enhancement to the version check functionality.

Change Types

Type Description
Enhancement Added additional condition for version check flag
Refactor Optimized Shamir's Secret Sharing algorithm implementation
Style Code formatting and import statement reordering

Affected Modules

Module / File Change Description
vault.go Reordered import statements
shamir.go Optimized x-coordinate calculation
sops_test.go Multiple formatting and alignment improvements
version.go Added check for "check-for-updates" flag

This isn't useful for SOPS (see removed comment), and thus only
adds unnecessary complexity. Basically un-does
hashicorp/vault@b4602fc

Signed-off-by: Felix Fontein <felix@fontein.de>
Copied from
hashicorp/vault@9510adc.
Please note that Vault at that point in history did not change the license yet,
so using that commit is fine.

Signed-off-by: Felix Fontein <felix@fontein.de>
Copied from
hashicorp/vault@ed08e45
Please note that Vault at that point in history did not change the license yet,
so using that commit is fine.

Signed-off-by: Felix Fontein <felix@fontein.de>
… is zero.

Signed-off-by: Felix Fontein <felix@fontein.de>
While writing these comments I noticed that OpenBao added similar
comments roughly a year ago:
openbao/openbao@a209a05

Signed-off-by: Felix Fontein <felix@fontein.de>
Signed-off-by: Felix Fontein <felix@fontein.de>
Improve Shamir Secret Sharing code
Signed-off-by: Felix Fontein <felix@fontein.de>
Signed-off-by: Felix Fontein <felix@fontein.de>
Signed-off-by: Felix Fontein <felix@fontein.de>
Signed-off-by: Felix Fontein <felix@fontein.de>
Run 'gofmt -w' on all .go files
…ent default of always doing that unless disabled.

Signed-off-by: Felix Fontein <felix@fontein.de>
Add option to explicitly check for the latest version; deprecate current default of always doing that unless disabled
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