Set the url with ?XDEBUG_SESSION_START=PHPSTORM and set a header Cookie: XDEBUG_SESSION=PHPSTORM
| { | |
| "AuthParameters" : { | |
| "USERNAME" : "alice@example.com", | |
| "PASSWORD" : "mysecret" | |
| }, | |
| "AuthFlow" : "USER_PASSWORD_AUTH", | |
| "ClientId" : "9..............." | |
| } |
| .PHONY: * | |
| docker := $(shell if [ `pwd` != "/app" ]; then echo 'docker-compose exec php'; fi;) | |
| fix-cs: | |
| ${docker} ./vendor/bin/php-cs-fixer fix | |
| analyse: | |
| ${docker} ./vendor/bin/php-cs-fixer fix --diff --dry-run | |
| ${docker} ./vendor/bin/phpstan analyse |
| resources: | |
| Description: Demo Site | |
| Conditions: | |
| isProd: {"Fn::Equals" : ["${self:custom.stageFlag}", "prod"]} | |
| isRC: {"Fn::Equals" : ["${self:custom.stageFlag}", "rc"]} | |
| isDev: {"Fn::Equals" : ["${self:custom.stageFlag}", "dev"]} | |
| isProdOrRC: {"Fn::Or": [{"Condition": "isProd"}, {"Condition": "isRC" }]} | |
| Resources: | |
| ProxyEntry: | |
| Type: 'Custom::MarketingStackProxyEntry' |
| const registryUrl = 'http://schema-registry:8081' | |
| const avro = require('avsc') | |
| const registry = require('avro-schema-registry')(registryUrl) | |
| const kafka = require('kafka-node') | |
| const client = new kafka.KafkaClient({ kafkaHost: 'kafka:9092' }) | |
| const topic = { | |
| topic: 'actor7', | |
| offset: 3695 |
| version: '2' | |
| services: | |
| api: | |
| volumes: | |
| - "nfsmount:${CONTAINER_DIR}" | |
| volumes: | |
| nfsmount: | |
| driver: local | |
| driver_opts: |
| ########## Install NGINX ############## | |
| # Install software-properties-common package to give us add-apt-repository package | |
| sudo apt-get install -y software-properties-common | |
| # Install latest nginx version from community maintained ppa | |
| sudo add-apt-repository ppa:nginx/stable | |
| # Update packages after adding ppa |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: Cognito Stack | |
| Parameters: | |
| AuthName: | |
| Type: String | |
| Description: Unique Auth Name for Cognito Resources | |
| Resources: | |
| # Creates a role that allows Cognito to send SNS messages |
| // define the bitbucket project + repos we want to build | |
| def bitbucket_project = 'myproj' | |
| def bitbucket_repos = ['myrepo1', 'myrepo2'] | |
| // create a pipeline job for each of the repos and for each feature branch. | |
| for (bitbucket_repo in bitbucket_repos) | |
| { | |
| multibranchPipelineJob("${bitbucket_repo}-ci") { | |
| // configure the branch / PR sources | |
| branchSources { |
In order to give someone access to hosts that are available only by ssh "bouncing" (ProxyJump),
add a user for this specific purpose.
We have an internal openstack where instances get IPs on per-tenant networks. Each tenant has a 'bastion' host that has a "public" ip (floating ip). You can access other instances by bouncing through the bastion. From time to time I want to let someone else into an instance. This could be done either with:
a.) just give them shell access to the bastion and let them hop through. Sharing an unrestricted shell account on my bastion is less than ideal. b.) assign a floating/"public" IP to the instance so they could go directly in. Floating IPs are limited, so this is less than ideal.
So instead, I have set up a single user as described here that can only be used for ProxyJump. It allows others proxied access to my instances but without granting them full shell access.