SlideShare uma empresa Scribd logo
1 de 13
Baixar para ler offline
Deploying trusted
developer sandboxes in
Amazon’s cloud

Jason Brazile, Remi Locherer, and
Ronnie Brunner
This talk… potential cases for…
• cloud storage & remote dev/test
• automated read-only system images
• not-too-inconvenient encryption everywhere
Not a takeaway…
• Pre-Snowden, but complies w/ 4 of 5 Schneier’s tips
http://www.theguardian.com/world/2013/sep/05/nsa-how-to-remain-secure-surveillance

|
Background:
ESA Study: 2009-2011
potential use-cases:
• …
• Cloud for free* data
access
• Cloud for remote
development
• …
(*)https://www.google.com/?q=ESA+Earth+Observation+Data+Policy

|

ESRIN/Contract Nr. 227700/09/I-SB final report (245 pages)
The CIOP case
• Big, free-ish, Data
• Distinct, proprietary,
software devs
• Slow test data
distribution to code
developers
• Devs nervous about
code leaking

Proprietary Algorithm A dev’d by X

Instead, lead the
users to the data
(in the cloud)

|

Proprietary Algorithm B dev’d by Y
But… Security…
• ESA less concerned about
hacking science data than
their end–users’ algorithms
and brand damage
• Data = not really sensitive
• Code = sensitive
• Soln can’t be too inconvenient
|
The Cloud Sandbox Prototype
NFS

user a

/home/a

X.509 derived
ssh key

/home/b

ldap

portal

catalog

/home/c
ESA/CIOP DMZ

/data

sandbox a
user b

Existing X.509 certs

nfs mount of encfs
encrypted /home/a

encfs sshd

ESA private net

sandbox b
encfs sshd

sandbox c
encfs sshd
user c

|

sandbox images
basically read-only
ldap config limits
user c to sandbox c

Admin
First Time Usage

ssh identity
automatically
derived from
user’s existing
X.509 certificate

|

Single encfs
passphrase can
decrypt both
1. user’s /home and
2. shared /validate
Daily Usage

ssh identity
automatically
derived from
user’s existing
X.509 certificate

ldap directory
centralized access
control to machines
and nfs mounts

|

Single encfs
passphrase can
decrypt both
1. user’s /home and
2. shared /validate
Encrypted
File system
choices SL6

|
Details: just the OS...
name: fedora-xfce
summary: Fedora with xfce
os:
The only change needed:
name: fedora
name: sl
version: 16
version: 6
hardware:
partitions:
"/":
size: 5
packages:
- @base
- @base-x
- @fonts
- @xfce-desktop
- @critical-path-xfce
access_key:
yourawsaccesskey
secret_access_key: youawssecretkey
account_number:
youramazonaccountnumber
cert_file:
/root/.ec2/yourcertificate.pem
key_file:
/root/.ec2/yourprivatekey.pem

Note: boxgrinder is
“sleeping”. Now we
use appliance-creator

|
Details: server customization (~500 lines)
# ldap configuration
yum install -y openldap-clients openldap-servers nss-pam-ldapd
# prepare ldap cert
cd /etc/openldap/cacerts
openssl genrsa -out cert.key 2048
…
openssl req -new -key cert.key -out cert.csr -subj 
"/C=IT/L=Default City/O=Default Company Ltd/CN=192.168.11.10"
…
/usr/sbin/cacertdir_rehash /export/certs/
cat <<EOF> /etc/openldap/slapd.d/cn=config.ldif
…
cat <<EOF> /etc/openldap/slapd.d/cn=config/olcDatabase={2}bdb.ldif
…
cat <<EOF> /etc/openldap/slapd.d/cn=config/cn=schema/cn={12}autofs.ldif
…
cat <<EOF> /etc/openldap/slapd.d/cn=config/cn=schema/cn={14}ldappubkey.ldif
…
cat <<EOF> /etc/openldap/g-pod.ldif
…
slapadd -l /etc/openldap/g-pod.ldif

•
•
•
•
•

Firewall
Nfs/autofs
Certificates
Ldap
Syslog

|

# local firewall rules for inbound traffic
lokkit --nostart --enabled 
--service=ssh 
--port=111:tcp 
--port=111:udp 
TODO:
--port=514:tcp 
rsyslog à TLS
--port=636:tcp 
--port=662:tcp 
--port=662:udp 
--port=2049:tcp 
--port=2049:udp 
--port=32803:tcp 
--port=32769:udp
# 111 rpc (for nfs)
# ldap-ssl (port 636)
# 514 rsyslog
# 662 statd (for nfs)
# 2049 nfs4
# 32803,32769 lockd (for nfs)

rsyslog
Details: sandbox customization (~250 lines)
# encrypt temporary filesystems
yum install -y cryptsetup-luks
# swap space
# (use "cryptsetup status /dev/mapper/swap" after reboot)
echo 'swap /dev/mapper/VolGroup-lv_swap /dev/urandom 
cipher=aes-cbc-essiv:sha256,size=128,swap' > /etc/crypttab
sed -i 's/.*swap.*//dev/mapper/swap swap swap defaults 0 0/' /etc/fstab
# temporary file systems
echo 'none /tmp tmpfs defaults,size=64m 0 0' >> /etc/fstab
echo 'none /var/tmp tmpfs defaults,size=128m 0 0' >> /etc/fstab

…
chmod +x /etc/profile.d/encfs.sh

# load fuse kernel module at boot
cat <<EOF> /etc/sysconfig/modules/encfs.modules
#!/bin/bash
exec /sbin/modprobe fuse >/dev/null 2>&1
EOF
chmod +x /etc/sysconfig/modules/encfs.modules

[…]
yum install -y openssh-ldap
echo 'AuthorizedKeysCommand 
# home directory encryption
# fuse-2.8.3-1.el6 works, fuse-2.8.3-3.el6_1 "fusermount -u" does not work. /usr/libexec/openssh/ssh-ldap-wrapper' >> /etc/ssh/sshd_config
yum install -y 
fuse-2.8.3-1.el6 
# for ssh-ldap-helper
fuse-encfs-1.7.4-1.el6.i686 
ln -s /etc/openldap/ldap.conf /etc/ssh/ldap.conf
pwgen

•
•
•
•
•

Firewall
Nfs/autofs/fuse-encfs
Crytpsetup-luks
Openssh-ldap
Syslog

|
Takeaways… potential cases made for…
• cloud storage (test data) & remote dev access
• automated read-only system images (server & client)
• not-too-inconvenient encryption everywhere
github.com/netceteragroup/esa-ciop-sandbox-image-proto

Mais conteúdo relacionado

Mais de Netcetera

Front-end up front
Front-end up frontFront-end up front
Front-end up frontNetcetera
 
The future of Prototpying
The future of PrototpyingThe future of Prototpying
The future of PrototpyingNetcetera
 
EMV Secure Remote Commerce (SRC)
EMV Secure Remote Commerce (SRC)EMV Secure Remote Commerce (SRC)
EMV Secure Remote Commerce (SRC)Netcetera
 
Online shopping technology in the fast lane?
Online shopping technology in the fast lane?Online shopping technology in the fast lane?
Online shopping technology in the fast lane?Netcetera
 
Merchant tokenization and EMV® Secure Remote Commerce
Merchant tokenization and EMV® Secure Remote CommerceMerchant tokenization and EMV® Secure Remote Commerce
Merchant tokenization and EMV® Secure Remote CommerceNetcetera
 
Seamless 3-D Secure e-commerce experience
Seamless 3-D Secure e-commerce experienceSeamless 3-D Secure e-commerce experience
Seamless 3-D Secure e-commerce experienceNetcetera
 
Augmenting Health Care
Augmenting Health CareAugmenting Health Care
Augmenting Health CareNetcetera
 
Driving transactional growth with 3-D Secure
Driving transactional growth with 3-D SecureDriving transactional growth with 3-D Secure
Driving transactional growth with 3-D SecureNetcetera
 
Digital Payment Quo Vadis
Digital Payment Quo VadisDigital Payment Quo Vadis
Digital Payment Quo VadisNetcetera
 
EMV® Secure Remote Commerce
EMV® Secure Remote CommerceEMV® Secure Remote Commerce
EMV® Secure Remote CommerceNetcetera
 
Context: The missing ingredient in multilingual software translation
Context: The missing ingredient in multilingual software translationContext: The missing ingredient in multilingual software translation
Context: The missing ingredient in multilingual software translationNetcetera
 
Digital Payments - Netcetera Innovation Summit 2018
Digital Payments - Netcetera Innovation Summit 2018Digital Payments - Netcetera Innovation Summit 2018
Digital Payments - Netcetera Innovation Summit 2018Netcetera
 
"Whats up and new at Netcetera?" - Netcetera Innovation Summit 2018
"Whats up and new at Netcetera?" - Netcetera Innovation Summit 2018"Whats up and new at Netcetera?" - Netcetera Innovation Summit 2018
"Whats up and new at Netcetera?" - Netcetera Innovation Summit 2018Netcetera
 
Fintech Innovations - Netcetera Innovation Summit 2018
Fintech Innovations - Netcetera Innovation Summit 2018Fintech Innovations - Netcetera Innovation Summit 2018
Fintech Innovations - Netcetera Innovation Summit 2018Netcetera
 
RiSIC - Stop losing money. Today.
RiSIC - Stop losing money. Today. RiSIC - Stop losing money. Today.
RiSIC - Stop losing money. Today. Netcetera
 
HoloLens in der Neurochirurgie
HoloLens in der NeurochirurgieHoloLens in der Neurochirurgie
HoloLens in der NeurochirurgieNetcetera
 
DEVELOPING CONVERSATIONAL INTERFACES FOR IOS
DEVELOPING CONVERSATIONAL INTERFACES FOR IOSDEVELOPING CONVERSATIONAL INTERFACES FOR IOS
DEVELOPING CONVERSATIONAL INTERFACES FOR IOSNetcetera
 
BUILDING VOICE RESPONSIVE APPS ON IOS
BUILDING VOICE RESPONSIVE APPS ON IOSBUILDING VOICE RESPONSIVE APPS ON IOS
BUILDING VOICE RESPONSIVE APPS ON IOSNetcetera
 
UNDERSTANDING LANGUAGE ON IOS
UNDERSTANDING LANGUAGE ON IOSUNDERSTANDING LANGUAGE ON IOS
UNDERSTANDING LANGUAGE ON IOSNetcetera
 
Blockchain use cases in health and education
Blockchain use cases in health and educationBlockchain use cases in health and education
Blockchain use cases in health and educationNetcetera
 

Mais de Netcetera (20)

Front-end up front
Front-end up frontFront-end up front
Front-end up front
 
The future of Prototpying
The future of PrototpyingThe future of Prototpying
The future of Prototpying
 
EMV Secure Remote Commerce (SRC)
EMV Secure Remote Commerce (SRC)EMV Secure Remote Commerce (SRC)
EMV Secure Remote Commerce (SRC)
 
Online shopping technology in the fast lane?
Online shopping technology in the fast lane?Online shopping technology in the fast lane?
Online shopping technology in the fast lane?
 
Merchant tokenization and EMV® Secure Remote Commerce
Merchant tokenization and EMV® Secure Remote CommerceMerchant tokenization and EMV® Secure Remote Commerce
Merchant tokenization and EMV® Secure Remote Commerce
 
Seamless 3-D Secure e-commerce experience
Seamless 3-D Secure e-commerce experienceSeamless 3-D Secure e-commerce experience
Seamless 3-D Secure e-commerce experience
 
Augmenting Health Care
Augmenting Health CareAugmenting Health Care
Augmenting Health Care
 
Driving transactional growth with 3-D Secure
Driving transactional growth with 3-D SecureDriving transactional growth with 3-D Secure
Driving transactional growth with 3-D Secure
 
Digital Payment Quo Vadis
Digital Payment Quo VadisDigital Payment Quo Vadis
Digital Payment Quo Vadis
 
EMV® Secure Remote Commerce
EMV® Secure Remote CommerceEMV® Secure Remote Commerce
EMV® Secure Remote Commerce
 
Context: The missing ingredient in multilingual software translation
Context: The missing ingredient in multilingual software translationContext: The missing ingredient in multilingual software translation
Context: The missing ingredient in multilingual software translation
 
Digital Payments - Netcetera Innovation Summit 2018
Digital Payments - Netcetera Innovation Summit 2018Digital Payments - Netcetera Innovation Summit 2018
Digital Payments - Netcetera Innovation Summit 2018
 
"Whats up and new at Netcetera?" - Netcetera Innovation Summit 2018
"Whats up and new at Netcetera?" - Netcetera Innovation Summit 2018"Whats up and new at Netcetera?" - Netcetera Innovation Summit 2018
"Whats up and new at Netcetera?" - Netcetera Innovation Summit 2018
 
Fintech Innovations - Netcetera Innovation Summit 2018
Fintech Innovations - Netcetera Innovation Summit 2018Fintech Innovations - Netcetera Innovation Summit 2018
Fintech Innovations - Netcetera Innovation Summit 2018
 
RiSIC - Stop losing money. Today.
RiSIC - Stop losing money. Today. RiSIC - Stop losing money. Today.
RiSIC - Stop losing money. Today.
 
HoloLens in der Neurochirurgie
HoloLens in der NeurochirurgieHoloLens in der Neurochirurgie
HoloLens in der Neurochirurgie
 
DEVELOPING CONVERSATIONAL INTERFACES FOR IOS
DEVELOPING CONVERSATIONAL INTERFACES FOR IOSDEVELOPING CONVERSATIONAL INTERFACES FOR IOS
DEVELOPING CONVERSATIONAL INTERFACES FOR IOS
 
BUILDING VOICE RESPONSIVE APPS ON IOS
BUILDING VOICE RESPONSIVE APPS ON IOSBUILDING VOICE RESPONSIVE APPS ON IOS
BUILDING VOICE RESPONSIVE APPS ON IOS
 
UNDERSTANDING LANGUAGE ON IOS
UNDERSTANDING LANGUAGE ON IOSUNDERSTANDING LANGUAGE ON IOS
UNDERSTANDING LANGUAGE ON IOS
 
Blockchain use cases in health and education
Blockchain use cases in health and educationBlockchain use cases in health and education
Blockchain use cases in health and education
 

Último

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 

Último (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

Jazoon 13: Deploying trusted developer sandboxes in Amazon's cloud

  • 1. Deploying trusted developer sandboxes in Amazon’s cloud Jason Brazile, Remi Locherer, and Ronnie Brunner
  • 2. This talk… potential cases for… • cloud storage & remote dev/test • automated read-only system images • not-too-inconvenient encryption everywhere Not a takeaway… • Pre-Snowden, but complies w/ 4 of 5 Schneier’s tips http://www.theguardian.com/world/2013/sep/05/nsa-how-to-remain-secure-surveillance |
  • 3. Background: ESA Study: 2009-2011 potential use-cases: • … • Cloud for free* data access • Cloud for remote development • … (*)https://www.google.com/?q=ESA+Earth+Observation+Data+Policy | ESRIN/Contract Nr. 227700/09/I-SB final report (245 pages)
  • 4. The CIOP case • Big, free-ish, Data • Distinct, proprietary, software devs • Slow test data distribution to code developers • Devs nervous about code leaking Proprietary Algorithm A dev’d by X Instead, lead the users to the data (in the cloud) | Proprietary Algorithm B dev’d by Y
  • 5. But… Security… • ESA less concerned about hacking science data than their end–users’ algorithms and brand damage • Data = not really sensitive • Code = sensitive • Soln can’t be too inconvenient |
  • 6. The Cloud Sandbox Prototype NFS user a /home/a X.509 derived ssh key /home/b ldap portal catalog /home/c ESA/CIOP DMZ /data sandbox a user b Existing X.509 certs nfs mount of encfs encrypted /home/a encfs sshd ESA private net sandbox b encfs sshd sandbox c encfs sshd user c | sandbox images basically read-only ldap config limits user c to sandbox c Admin
  • 7. First Time Usage ssh identity automatically derived from user’s existing X.509 certificate | Single encfs passphrase can decrypt both 1. user’s /home and 2. shared /validate
  • 8. Daily Usage ssh identity automatically derived from user’s existing X.509 certificate ldap directory centralized access control to machines and nfs mounts | Single encfs passphrase can decrypt both 1. user’s /home and 2. shared /validate
  • 10. Details: just the OS... name: fedora-xfce summary: Fedora with xfce os: The only change needed: name: fedora name: sl version: 16 version: 6 hardware: partitions: "/": size: 5 packages: - @base - @base-x - @fonts - @xfce-desktop - @critical-path-xfce access_key: yourawsaccesskey secret_access_key: youawssecretkey account_number: youramazonaccountnumber cert_file: /root/.ec2/yourcertificate.pem key_file: /root/.ec2/yourprivatekey.pem Note: boxgrinder is “sleeping”. Now we use appliance-creator |
  • 11. Details: server customization (~500 lines) # ldap configuration yum install -y openldap-clients openldap-servers nss-pam-ldapd # prepare ldap cert cd /etc/openldap/cacerts openssl genrsa -out cert.key 2048 … openssl req -new -key cert.key -out cert.csr -subj "/C=IT/L=Default City/O=Default Company Ltd/CN=192.168.11.10" … /usr/sbin/cacertdir_rehash /export/certs/ cat <<EOF> /etc/openldap/slapd.d/cn=config.ldif … cat <<EOF> /etc/openldap/slapd.d/cn=config/olcDatabase={2}bdb.ldif … cat <<EOF> /etc/openldap/slapd.d/cn=config/cn=schema/cn={12}autofs.ldif … cat <<EOF> /etc/openldap/slapd.d/cn=config/cn=schema/cn={14}ldappubkey.ldif … cat <<EOF> /etc/openldap/g-pod.ldif … slapadd -l /etc/openldap/g-pod.ldif • • • • • Firewall Nfs/autofs Certificates Ldap Syslog | # local firewall rules for inbound traffic lokkit --nostart --enabled --service=ssh --port=111:tcp --port=111:udp TODO: --port=514:tcp rsyslog à TLS --port=636:tcp --port=662:tcp --port=662:udp --port=2049:tcp --port=2049:udp --port=32803:tcp --port=32769:udp # 111 rpc (for nfs) # ldap-ssl (port 636) # 514 rsyslog # 662 statd (for nfs) # 2049 nfs4 # 32803,32769 lockd (for nfs) rsyslog
  • 12. Details: sandbox customization (~250 lines) # encrypt temporary filesystems yum install -y cryptsetup-luks # swap space # (use "cryptsetup status /dev/mapper/swap" after reboot) echo 'swap /dev/mapper/VolGroup-lv_swap /dev/urandom cipher=aes-cbc-essiv:sha256,size=128,swap' > /etc/crypttab sed -i 's/.*swap.*//dev/mapper/swap swap swap defaults 0 0/' /etc/fstab # temporary file systems echo 'none /tmp tmpfs defaults,size=64m 0 0' >> /etc/fstab echo 'none /var/tmp tmpfs defaults,size=128m 0 0' >> /etc/fstab … chmod +x /etc/profile.d/encfs.sh # load fuse kernel module at boot cat <<EOF> /etc/sysconfig/modules/encfs.modules #!/bin/bash exec /sbin/modprobe fuse >/dev/null 2>&1 EOF chmod +x /etc/sysconfig/modules/encfs.modules […] yum install -y openssh-ldap echo 'AuthorizedKeysCommand # home directory encryption # fuse-2.8.3-1.el6 works, fuse-2.8.3-3.el6_1 "fusermount -u" does not work. /usr/libexec/openssh/ssh-ldap-wrapper' >> /etc/ssh/sshd_config yum install -y fuse-2.8.3-1.el6 # for ssh-ldap-helper fuse-encfs-1.7.4-1.el6.i686 ln -s /etc/openldap/ldap.conf /etc/ssh/ldap.conf pwgen • • • • • Firewall Nfs/autofs/fuse-encfs Crytpsetup-luks Openssh-ldap Syslog |
  • 13. Takeaways… potential cases made for… • cloud storage (test data) & remote dev access • automated read-only system images (server & client) • not-too-inconvenient encryption everywhere github.com/netceteragroup/esa-ciop-sandbox-image-proto