There is a security vulnerability in SSH key-generation using GitKraken < v8.0.1. If you used this tool to create SSH keys, please update GitKraken and regenerate. If you need help with this, contact forum-support@opengroup.org

Commit 1ac1c87e authored by Aman Verma's avatar Aman Verma
Browse files

removing required scripts

parent 09631973
Pipeline #3977 passed with stage
in 3 minutes and 3 seconds
##
# Needed to run the service
##
export LOG_PREFIX=
export AUTHORIZE_API=
export AUTHORIZE_API_KEY=
export azure.application-insights.instrumentation-key=
export azure.activedirectory.client-id=
export azure.activedirectory.AppIdUri=
export azure.activedirectory.session-stateless=
export cosmosdb_account=
export cosmosdb_key=
export cosmosdb_database=
export azure.storage.account-name=
export azure.storage.enable-https=
export servicebus_topic_name=
export servicebus_namespace_name=
export KEYVAULT_URI=
export AZURE_CLIENT_ID=
export AZURE_TENANT_ID=
export AZURE_CLIENT_SECRET=
export search_service_endpoint=
##
# Needed to run the integration tests
##
export AZURE_AD_APP_RESOURCE_ID=
export AZURE_AD_TENANT_ID=
export DEPLOY_ENV=
export DOMAIN=
export INTEGRATION_TESTER=
export LEGAL_URL=
export NO_DATA_ACCESS_TESTER=
export NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET=
export PUBSUB_TOKEN=
export STORAGE_URL=
export TENANT_NAME=
export TESTER_SERVICEPRINCIPAL_SECRET=
$runInstall = $false;
if ($args.Count -gt 0 -And $args[0] -eq "build") {
$runInstall = $true;
}
if ($runInstall) {
mvn clean -Dmaven.test.skip=true package
}
${env:LOG_PREFIX} = "schema"
${env:AZURE_TENANT_ID} = "58975fd3-4977-44d0-bea8-37af0baac100"
${env:AZURE_CLIENT_ID} = "c4167fb6-c724-40e8-be11-2e20d1b7a92c"
${env:AZURE_CLIENT_SECRET} = "muwCHobjuKlVzQwdUgMcta4w7mfQzAiW"
${env:KEYVAULT_URI} = "https://ado-test-fqo-fqosn0o4-kv.vault.azure.net/"
${env:aad_client_id} = "dbf53e4d-f088-4379-87c3-d9b1496e77f8"
${env:appinsights_key} = "c93d19d0-a5dc-4ea4-a564-88af4319a99b"
${env:cosmosdb_account} = "https://ado-test-fqo-fqosn0o4-cosmosdb.documents.azure.com:443/"
${env:cosmosdb_database} = "dev-osdu-r2-db"
${env:cosmosdb_key} = "ZpyNBarqeXfgaev6v2m2INmWhz9ODeJSIaCYvthDeYeIxti9ZabN29yjOHvGfEXEHGsx8cQ3s2gEYypUdlfMbA=="
${env:entitlements_app_key} = "00df85f1b08563059ea1f3fa080dd9001403"
${env:entitlements_service_api_key} = "00df85f1b08563059ea1f3fa080dd9001403"
${env:entitlements_service_endpoint} = "https://ado-test-fqo-fqosn0o4-au-entitlements.azurewebsites.net/entitlements/v1/"
${env:servicebus_namespace_name} = "ado-test-fqo-fqosn0o4sb"
${env:servicebus_connection_string} = "Endpoint=sb://ado-test-fqo-fqosn0o4sb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=zxchDE2vC9iDZD6NmIU028UWcNI2QTYjCvorMAYftzg="
${env:servicebus_topic_name} = "recordstopic"
${env:storage_account} = "adotestfqofqosn0o4sa"
${env:storage_account_key} = "LrDTXsETkvkxV3v0kR3T83hoTpoF2eBF309uvmWyrwDU2oPE/IqhM2NWD6EygXZ6RQq9pWQj0YTiVX3Pkw2Ghg=="
${env:storage_service_endpoint} = "https://ado-test-fqo-fqosn0o4-au-storage.azurewebsites.net/api/storage/v2/"
${env:server_port} = "8082"
${AZURE_AD_TENANT_ID} = "58975fd3-4977-44d0-bea8-37af0baac100"
${INTEGRATION_TESTER} = "c4167fb6-c724-40e8-be11-2e20d1b7a92c"
${AZURE_AD_APP_RESOURCE_ID} = "dbf53e4d-f088-4379-87c3-d9b1496e77f8"
${TESTER_SERVICEPRINCIPAL_SECRET} = "muwCHobjuKlVzQwdUgMcta4w7mfQzAiW"
$jarLocation = "target\os-schema-azure-0.0.1-spring-boot.jar"
java -jar $jarLocation
\ No newline at end of file
import os
import msal
def get_id_token():
tenant_id = "58975fd3-4977-44d0-bea8-37af0baac100"
resource_id = "dbf53e4d-f088-4379-87c3-d9b1496e77f8"
client_id = "c4167fb6-c724-40e8-be11-2e20d1b7a92c"
client_secret = "muwCHobjuKlVzQwdUgMcta4w7mfQzAiW"
authority_host_uri = 'https://login.microsoftonline.com'
authority_uri = authority_host_uri + "/" + tenant_id
scopes = [resource_id + '/.default']
try:
app = msal.ConfidentialClientApplication(client_id=client_id, authority=authority_uri, client_credential=client_secret)
result = app.acquire_token_for_client(scopes=scopes)
return result.get('access_token')
except Exception as e:
print(e)
def get_invalid_token():
'''
This is dummy jwt
{
"sub": "dummy@dummy.com",
"iss": "dummy@dummy.com",
"aud": "dummy.dummy.com",
"iat": 1556137273,
"exp": 1556223673,
"provider": "dummy.com",
"client": "dummy.com",
"userid": "dummytester.com",
"email": "dummytester.com",
"authz": "",
"lastname": "dummy",
"firstname": "dummy",
"country": "",
"company": "",
"jobtitle": "",
"subid": "dummyid",
"idp": "dummy",
"hd": "dummy.com",
"desid": "dummyid",
"contact_email": "dummy@dummy.com"
}
'''
return "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkdW1teUBkdW1teS5jb20iLCJpc3MiOiJkdW1teUBkdW1teS5jb20iLCJhdWQiOiJkdW1teS5kdW1teS5jb20iLCJpYXQiOjE1NTYxMzcyNzMsImV4cCI6MTU1NjIzMDk3OSwicHJvdmlkZXIiOiJkdW1teS5jb20iLCJjbGllbnQiOiJkdW1teS5jb20iLCJ1c2VyaWQiOiJkdW1teXRlc3Rlci5jb20iLCJlbWFpbCI6ImR1bW15dGVzdGVyLmNvbSIsImF1dGh6IjoiIiwibGFzdG5hbWUiOiJkdW1teSIsImZpcnN0bmFtZSI6ImR1bW15IiwiY291bnRyeSI6IiIsImNvbXBhbnkiOiIiLCJqb2J0aXRsZSI6IiIsInN1YmlkIjoiZHVtbXlpZCIsImlkcCI6ImR1bW15IiwiaGQiOiJkdW1teS5jb20iLCJkZXNpZCI6ImR1bW15aWQiLCJjb250YWN0X2VtYWlsIjoiZHVtbXlAZHVtbXkuY29tIiwianRpIjoiNGEyMWYyYzItZjU5Yy00NWZhLTk0MTAtNDNkNDdhMTg4ODgwIn0.nkiyKtfXXxAlC60iDjXuB2EAGDfZiVglP-CyU1T4etc"
print(get_id_token())
AZURE_TENANT_ID: "58975fd3-4977-44d0-bea8-37af0baac100"
AZURE_CLIENT_ID: "e6ac6dfe-8198-4f9c-b2e8-b974c0f9ef5b"
AZURE_CLIENT_SECRET: "Nyra8jJkf5cxHIpmQume1JvbRawN8HyS"
KEYVAULT_URI: "https://ado-dev-3353-335343xe-kv.vault.azure.net/"
aad_client_id: "c30cd58d-77fb-4e44-ab54-5df23ca98dbf"
appinsights_key: "02ac45fd-cbdc-4565-944f-5c0363f27c49"
cosmosdb_account: "https://ado-dev-3353-335343xe-cosmosdb.documents.azure.com:443/"
cosmosdb_database: "dev-osdu-r2-db"
cosmosdb_key: "bbaBwpz2YUgXsFnU1oHmXaxGh3O5Y32Bio0E5VEbKwvCHLOBkB4iK3ZgkSm9UljvtEZm8UolzdIfKaSRKr2SkQ=="
entitlements_app_key: "7ff1139e88d1b171ff02217affe183c8cda9"
entitlements_service_api_key: "7ff1139e88d1b171ff02217affe183c8cda9"
entitlements_service_endpoint: "https://ado-dev-3353-335343xe-au-entitlements.azurewebsites.net/"
legal_service_endpoint: "https://ado-dev-3353-335343xe-au-legal.azurewebsites.net/"
legal_service_region: "southcentralus"
search_service_endpoint: "https://ado-dev-3353-335343xe-au-search.azurewebsites.net/api/search/v2/query"
servicebus_namespace_name: "ado-dev-3353-335343xesb"
servicebus_connection_string: "Endpoint=sb://ado-dev-3353-335343xesb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=3Bh/9xI9g5IcaYMps3NptWDIoMRHAy4WMGpidV8SGo4="
servicebus_topic_name: "recordstopic"
storage_account: "adodev3353335343xesa"
storage_account_key: "cl958urs5S1yj9dauuyTnD1WAHYL7tlYUNX8unF0RGSYi6vPj/utEQgZyr07VeTnXo1wuv9ivKmD3vKSIM903Q=="
storage_service_endpoint: "https://ado-dev-3353-335343xe-au-storage.azurewebsites.net/"
server_port: "8082"
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment