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

Fix issue where credentials from import foreign schema were lost after restarting session. Closes #504 #505

Merged

Conversation

pskrbasu
Copy link
Contributor

@pskrbasu pskrbasu commented Sep 4, 2024

No description provided.

@pskrbasu pskrbasu added bug Something isn't working standalone Issues related to steampipe anywhere standalone FDW labels Sep 4, 2024
@pskrbasu pskrbasu self-assigned this Sep 4, 2024

log.Println("[TRACE] connection name:", connName)

serverOpts := GetForeignServerOptionsFromFTableId(types.Oid(state.foreigntableid))
Copy link
Contributor

Choose a reason for hiding this comment

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

comment - why are we loading the server options here

@@ -68,6 +68,12 @@ func (l *HubLocal) SetConnectionConfig(connectionName, configString string) erro

func (l *HubLocal) UpdateConnectionConfig(connectionName, configString string) error {
log.Printf("[INFO] HubLocal UpdateConnectionConfig: connection: %s, config: %s", connectionName, configString)

// if the connection already exists and the config is the same, do nothing
Copy link
Contributor

Choose a reason for hiding this comment

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

comment - when/why could this arise

@kaidaguerre kaidaguerre merged commit 56b94ce into v1.11.x Sep 5, 2024
2 checks passed
@kaidaguerre kaidaguerre deleted the 504-creds-are-lost-after-restarting-the-session branch September 5, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working standalone Issues related to steampipe anywhere standalone FDW
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants