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

feat: add AsGoGetterURL() to connection #303

Merged
merged 7 commits into from
Oct 19, 2023
Merged

Conversation

adityathebe
Copy link
Member

No description provided.

@github-actions
Copy link

github-actions bot commented Oct 18, 2023

E2E -

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 52d0bf0.

♻️ This comment has been updated with latest results.

@adityathebe adityathebe force-pushed the feat/connection-go-getter branch from 28f13b6 to b7bfe12 Compare October 18, 2023 05:56
@adityathebe adityathebe marked this pull request as ready for review October 18, 2023 05:57
@adityathebe adityathebe requested a review from moshloop October 18, 2023 05:57
models/connections.go Outdated Show resolved Hide resolved
models/connections.go Outdated Show resolved Hide resolved
models/connections.go Outdated Show resolved Hide resolved
models/connections.go Outdated Show resolved Hide resolved
models/connections.go Outdated Show resolved Hide resolved
@adityathebe adityathebe force-pushed the feat/connection-go-getter branch from 488a62c to 946e12c Compare October 18, 2023 13:25
envPrep.Env = append(envPrep.Env, fmt.Sprintf("AWS_SECRET_ACCESS_KEY=%s", c.Password))

// credentialFilePath :="$HOME/.aws/credentials"
credentialFilePath := filepath.Join(".creds", "aws", fmt.Sprintf("cred-%d", rand.Intn(100000000)))
Copy link
Member Author

Choose a reason for hiding this comment

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

@moshloop using fs/FS wasn't possible because it seems to be read-only. Can't create new files or write to one.

@adityathebe adityathebe force-pushed the feat/connection-go-getter branch from 946e12c to a40b7ca Compare October 18, 2023 13:27

type EnvPrep struct {
// Env is the connection credentials in environment variables
Env []string
Copy link
Member

Choose a reason for hiding this comment

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

What is the difference between envs and command envs ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Env would provide you the credentials as standalone env vars. You could use either env var or the config file.

@moshloop moshloop force-pushed the feat/connection-go-getter branch from fe151f7 to 52d0bf0 Compare October 19, 2023 05:54
@moshloop moshloop merged commit 748be3f into main Oct 19, 2023
5 checks passed
@moshloop moshloop deleted the feat/connection-go-getter branch October 19, 2023 05:57
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.

2 participants