Skip to content

Commit

Permalink
Build fipsonly kando
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhil-suresh committed Jan 9, 2024
1 parent 293985c commit 103fce0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ builds:
- amd64
- id: kando
binary: kando
main: cmd/kando/main.go
main: ./cmd/kando
ldflags: *ldflags
env: *env
tags:
- fipsonly
goos: &goos
- linux
goarch: *goarch
Expand Down
19 changes: 19 additions & 0 deletions cmd/kando/fipsonly.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright 2019 The Kanister Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build fipsonly

package main

import _ "crypto/tls/fipsonly" // Required for enabling fips only mode

0 comments on commit 103fce0

Please sign in to comment.