Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mottersheadt authored Apr 11, 2022
2 parents dbedc83 + 98f10bc commit 890deb3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion content-by-language/bash/outbound-integration.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
curl {VGS_SAMPLE_ECHO_SERVER}/post {IGNORE_SSL_FLAG} \\
-x {ACCESS_CREDENTIALS}@{VAULT_HOST}:{SECURE_PORT} \\
-x {SECURE_PROTOCOL}://{ACCESS_CREDENTIALS}@{VAULT_HOST}:{SECURE_PORT} \\
-H "Content-type: application/json" \\
-d '{"account_number": "{ALIAS}"}'
2 changes: 1 addition & 1 deletion content-by-language/go/outbound-integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Payload struct {

func main() {
// You can set the proxy as an HTTPS env variable proxyUrl and go will use by default:
os.Setenv("HTTPS_PROXY", "{ACCESS_CREDENTIALS}@{VAULT_HOST}:{PORT}")
os.Setenv("HTTPS_PROXY", "{SECURE_PROTOCOL}://{ACCESS_CREDENTIALS}@{VAULT_HOST}:{SECURE_PORT}")

data := Payload{
Account: "{ALIAS}",
Expand Down
2 changes: 1 addition & 1 deletion content-by-language/java/outbound-integration.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class OutboundIntegration {
public static void main(String[] args) throws IOException, InterruptedException, GeneralSecurityException {
System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");
final String proxyHost = "{VAULT_HOST}";
final var proxyPort = {PORT};
final var proxyPort = {SECURE_PORT};
final String proxyUser = "{USERNAME}";
final String proxyPassword = "{PASSWORD}";

Expand Down
2 changes: 1 addition & 1 deletion content-by-language/node/outbound-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function getData() {
ca: [ fs.readFileSync('{CERT_LOCATION}')],
proxy: {
host: '{VAULT_HOST}',
port: '{PORT}',
port: '{SECURE_PORT}',
proxyAuth: '{ACCESS_CREDENTIALS}'
}
});
Expand Down
2 changes: 1 addition & 1 deletion content-by-language/php/outbound-integration.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
$url = '{VGS_SAMPLE_ECHO_SERVER}/post';
$data = json_encode(array('account_number' => '{ALIAS}'));
$proxy = '{VAULT_PROXY_URL}:{PORT}';
$proxy = '{SECURE_PROTOCOL}://{VAULT_PROXY_URL}:{SECURE_PORT}';
$proxyauth = '{ACCESS_CREDENTIALS}';
$certpath = '{CERT_LOCATION}';

Expand Down
2 changes: 1 addition & 1 deletion content-by-language/python/outbound-integration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import requests

os.environ['HTTPS_PROXY'] = 'https://{ACCESS_CREDENTIALS}@{VAULT_HOST}:{SECURE_PORT}'
os.environ['HTTPS_PROXY'] = '{SECURE_PROTOCOL}://{ACCESS_CREDENTIALS}@{VAULT_HOST}:{SECURE_PORT}'
response = requests.post('{VGS_SAMPLE_ECHO_SERVER}/post',
json={'account_number': '{ALIAS}'},
verify='{CERT_LOCATION}')
Expand Down

0 comments on commit 890deb3

Please sign in to comment.