Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TT-12103 Pump FIPS compliant #825

Closed
wants to merge 27 commits into from
Closed

TT-12103 Pump FIPS compliant #825

wants to merge 27 commits into from

Conversation

mativm02
Copy link
Contributor

Description

Related Issue

Motivation and Context

How This Has Been Tested

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If pulling from your own
    fork, don't request your master!
  • Make sure you are making a pull request against the master branch (left side). Also, you should start
    your branch off our latest master.
  • My change requires a change to the documentation.
    • If you've changed APIs, describe what needs to be updated in the documentation.
  • I have updated the documentation accordingly.
  • Modules and vendor dependencies have been updated; run go mod tidy && go mod vendor
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Check your code additions will not fail linting checks:
    • go fmt -s
    • go vet

@mativm02 mativm02 changed the title TT-12103 TT-12103 Pump FIPS compliant May 16, 2024
@mativm02 mativm02 marked this pull request as draft May 16, 2024 13:09
Comment on lines +60 to +62
echo "Running tests with GOEXPERIMENT=boringcrypto"
export GOEXPERIMENT=boringcrypto
show go test -tags=boringcrypto -timeout ${TEST_TIMEOUT} ${race} --coverprofile=${coveragefile}.cov -v ${pkg}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

At the moment, all the crypto-related functions are within the pumps package, but this test is running over all the packages. Should we run it only for pumps package, or leave it as it is?

mativm02 and others added 21 commits May 17, 2024 09:43
This commit updates the Dockerfile.std file by adding the GOEXPERIMENT environment variable. The variable is passed as an argument and set in the environment to enable experimental Go features. This change is made to enhance the build process and enable the use of experimental Go features in the CI environment.
This commit updates the build tag logic in the release workflow. Instead of relying solely on the `github.ref_name` variable, it now checks the value of `github.ref` to determine the appropriate build tag. If the ref starts with `refs/tags/`, it sets the build tag to the tag name. If the ref starts with `refs/pull/`, it sets the build tag to `pr-{pull_request_number}`. Otherwise, it sets the build tag to the commit SHA. This change improves the accuracy of the build tag and ensures it reflects the correct reference type.
This commit updates the build tag logic in the release workflow to improve accuracy and reflect the correct reference type. It now checks the value of `github.ref` to determine the appropriate build tag. If the ref starts with `refs/tags/`, it sets the build tag to the tag name. If the ref starts with `refs/pull/`, it sets the build tag to `pr-{pull_request_number}`. Otherwise, it sets the build tag to the commit SHA.
…gcrypto

This commit updates the build tag logic in the release workflow to include the "boringcrypto" flavor. It modifies the metadata-action step to generate tags with the pattern "v{{major}}.{{minor}}-boringcrypto" and "v{{version}}-boringcrypto" for the "tyk-pump" image. This change ensures that the correct tags are applied to the boringcrypto image during the release process.
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.

None yet

1 participant