- We have a lot of logging-gems. log4r, logging, lograge, log4r-gelf, graylog2_exceptions. I thought that I'd moved things from logging -> log4r, but it turns out that some of the logging was still going through the logging gem, meaning my configuration was imperfect.
- Additionally, virtually every gem requires some compatible configuration
- The mechanism we were using to inject tracing data was forcing all logging traffic to be sent at the same 'level' (INFO)
- Passing loggers in was a haphazard business of basically passing Procs around, if we wanted to get tracing added. It wasn't very flexible.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://www.sungard.com/bsil/acctmgmt/v1-0" xmlns:v11="http://www.sungard.com/ws/v1-0"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<v1:retrieveInvoiceRequest> | |
<v11:client> | |
<!--Optional:--> | |
<v11:systemId>?</v11:systemId> | |
<!--Optional:--> | |
<v11:userRole>?</v11:userRole> | |
<v11:userId>?</v11:userId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Models | |
class Inventory | |
def self.all | |
[Object.new] | |
end | |
def self.find(inventory_id) | |
Object.new | |
end | |
end | |
end |
Tasks:
- Create a proxy ala sorcery that will:
- map calls from a made up endpoint to the sso endpoint
- set the referrer to sungard.dev
- SOXPROX
- rewrite redirects https://sungard.dev => http://localhost:3000
- Omniauth config:
- point to the made-up-endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
developer_provider = ENV["SSO_SIMULATOR"] == "true" | |
ENV['DEFAULT_OMNIAUTH_PROVIDER'] = developer_provider ? 'developer' : 'openid_connect' | |
Rails.application.config.middleware.use OmniAuth::Builder do | |
provider :openid_connect, ENV['OPEN_ID_IDENTIFIER'], | |
"e127441e7ae57a15ff5417f3b6dc5374", | |
"5b7c4ba0f2a116ba823329cd1ceb08998efbf9e5fb279f7ae759e708272f9d89", | |
{ | |
name: :osstools, | |
client_options: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://www.sungard.com/bsil/appuser/v1-0" xmlns:v11="http://www.sungard.com/ws/v1-0" xmlns:v12="http://www.sungard.com/common/v1-0"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<v1:createApplicationUserRequest> | |
<v11:client> | |
<v11:userId>?</v11:userId> | |
<v11:userApplicationDN>?</v11:userApplicationDN> | |
</v11:client> | |
<v1:acountNumber>e3358403-d56a-4721-bac0-25bb0ca7529f</v1:acountNumber> | |
<v1:productLineDesignator>CLOUD</v1:productLineDesignator> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreateWorkplaceWorkflow | |
include Workflow::Driver | |
include Workflow::Notifiable | |
attr_accessor :state, :cs_project, :bsil_workplace, :account_id | |
def initialize() | |
initialize_steps(step_arr) | |
end | |
def prepare(account_id, project_params, cs_project_service, bsil_workplace_service, bsil_workplace_notification_service) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://www.sungard.com/bsil/cloud/v1-0" xmlns:v11="http://www.sungard.com/ws/v1-0" xmlns:v12="http://www.sungard.com/cloud/v1-0"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<v1:setCloudAccountDomainRequest> | |
<v1:accountNumber>a436e845-6bec-4bb9-b100-4e3e586ec84f</v1:accountNumber> | |
<v1:version>10</v1:version> | |
<v1:domain> | |
<v12:csId>a436e845-6bec-4bb9-b100-4e3e586ec84f</v12:csId> | |
</v1:domain> | |
</v1:setCloudAccountDomainRequest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module UCP | |
class AccountService | |
attr_writer :cs_acct_service, :bsil_acct_service | |
def initialize(cs_acct_service, bsil_acct_service) | |
@cs_acct_service = cs_acct_service | |
@bsil_acct_service = bsil_acct_service | |
end | |
# This is where 'workflows' can live. If they aren't sync, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://www.sungard.com/bsil/acctmgmt/v1-0" xmlns:v11="http://www.sungard.com/ws/v1-0" xmlns:v12="http://www.sungard.com/common/v1-0"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<v1:updateAccountRequest> | |
<v11:client> | |
<v11:userId>?</v11:userId> | |
<v11:userApplicationDN>?</v11:userApplicationDN> | |
</v11:client> | |
<v1:accountNumber>3ad1d8fc-ad84-41e4-ad43-4dc9b673ca49</v1:accountNumber> | |
<v1:version>1854</v1:version> |