Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Add appname / netflix default users to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sargun committed Feb 14, 2019
1 parent abcc0c0 commit c670b01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/config.go
Expand Up @@ -83,6 +83,8 @@ func NewConfig() (*Config, []cli.Flag) {
},
ContainerSSHDUsers: []string{
"root",
"nfsuper",
"nfbasic",
},
}

Expand Down
3 changes: 2 additions & 1 deletion executor/runtime/docker/docker_ssh.go
Expand Up @@ -136,7 +136,8 @@ func addContainerSSHDConfigWithData(c *runtimeTypes.Container, tw *tar.Writer, c
// The format that is used for SSH Users is:
// $(unix username):$(app name):$(aws account id):$(task id)

for _, username := range c.Config.ContainerSSHDUsers {
users := append(c.Config.ContainerSSHDUsers, c.TitusInfo.GetAppName())
for _, username := range users {
lines := []string{}
for _, accountID := range accountIDs {
lines = append(
Expand Down

0 comments on commit c670b01

Please sign in to comment.