Skip to content

Commit

Permalink
use service user / hardcode idp
Browse files Browse the repository at this point in the history
Signed-off-by: jkoberg <[email protected]>
  • Loading branch information
kobergj committed Mar 15, 2022
1 parent edf8452 commit b7c934b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion accounts/pkg/config/defaults/defaultconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func DefaultConfig() *config.Config {
},
ServiceUser: config.ServiceUser{
UUID: "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad",
Username: "",
Username: "service user",
UID: 0,
GID: 0,
},
Expand Down
2 changes: 1 addition & 1 deletion settings/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ type Metadata struct {
StorageAddress string `ocisConfig:"storage_addr" env:"STORAGE_GRPC_ADDR"`

ServiceUserID string `ocisConfig:"service_user_id" env:"METADATA_SERVICE_USER_UUID"`
ServiceUserIDP string `ocisConfig:"service_user_idp" env:"METADATA_SERVICE_USER_IDP"`
ServiceUserIDP string `ocisConfig:"service_user_idp" env:"OCIS_URL;METADATA_SERVICE_USER_IDP"`
MachineAuthAPIKey string `ocisConfig:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY"`
}
5 changes: 2 additions & 3 deletions settings/pkg/config/defaults/defaultconfig.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package defaults

import (
"os"
"path"
"strings"

Expand Down Expand Up @@ -58,8 +57,8 @@ func DefaultConfig() *config.Config {
Metadata: config.Metadata{
GatewayAddress: "127.0.0.1:9142",
StorageAddress: "127.0.0.1:9215",
ServiceUserID: "ddc2004c-0977-11eb-9d3f-a793888cd0f8",
ServiceUserIDP: os.Getenv("OCIS_URL"),
ServiceUserID: "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad",
ServiceUserIDP: "https://localhost:9200",
MachineAuthAPIKey: "change-me-please",
},
}
Expand Down

0 comments on commit b7c934b

Please sign in to comment.