Skip to content

Commit

Permalink
chore(service): address PR findings
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Becker <[email protected]>
  • Loading branch information
sbckr committed Dec 17, 2024
1 parent 1604c39 commit 70a3f67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/ephemeral/io/feeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
type Feeder interface {
// LoadFromSecretStoreAndFeed loads input parameters from Amphora.
LoadFromSecretStoreAndFeed(act *Activation, feedPort string, ctx *CtxConfig) ([]byte, error)
// LoadFromRequestAndFeed oads input parameteters from the request body.
// LoadFromRequestAndFeed loads input parameters from the request body.
//
// Deprecated: providing secrets in the request body is not recommended and will be removed in the future.
LoadFromRequestAndFeed(act *Activation, feedPort string, ctx *CtxConfig) ([]byte, error)
Expand Down Expand Up @@ -62,7 +62,7 @@ func (f *AmphoraFeeder) LoadFromSecretStoreAndFeed(act *Activation, feedPort str
if err != nil {
return nil, err
}
policy := "_DEFAULT_POLICY_"
policy := DefaultPolicy
owner, _ := findValueForKeyInTags(osh.Tags, "owner")
policy, _ = findValueForKeyInTags(osh.Tags, "accessPolicy")
inputs = append(inputs, ActivationInput{
Expand Down
4 changes: 3 additions & 1 deletion pkg/types/consts.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 - for information on the respective copyright owner
// Copyright (c) 2021-2024 - for information on the respective copyright owner
// see the NOTICE file and/or the repository https://github.com/carbynestack/ephemeral.
//
// SPDX-License-Identifier: Apache-2.0
Expand Down Expand Up @@ -52,4 +52,6 @@ const (
EventScope = "EventScope"
EventScopeAll = "EventScopeAll"
EventScopeSelf = "EventScropeSelf"

DefaultPolicy = "carbynestack.def"
)

0 comments on commit 70a3f67

Please sign in to comment.