4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
newest first
  • HPKP best practices if you choose to implement - Server - Let's Encrypt Community Support

    [Summary, full note in Shaarli]
    HPKP (HTTP Public Key Pinning), notes perso.
    Refs : https://scotthelme.co.uk/hpkp-http-public-key-pinning/ , https://scotthelme.co.uk/hpkp-toolset/ , https://tools.ietf.org/html/rfc7469#page-7

    Principe : si le navigateur reçoit un header "Public-Key-Pins" avec une liste de hash, il les garde pour le domaine pendant max-age (la RFC conseille 2 mois ; Firefox les range avec les HSTS). Ensuite, une connexion https n'aboutit que si un des hash correspond à la clé publique d'un des certificats de la chaîne. Les hash qui ne correspondent à rien servent de backup. Aucun hash ne correspond : connexion impossible.

    Exemple infomee.fr (hash via https://report-uri.io/home/pkp_hash) :
    - leaf : pin-sha256="oM+/1421Ew13AzUUxBTNbJjxofRe40CxO2Lt89BUeHk="
    - intermediate Let's Encrypt X3 : pin-sha256="YLh1dUR9y6Kja30RrAn7JKnbQG/uEtLMkBgFF2Fuihg="
    - root DST Root CA X3 : pin-sha256="Vjs8r4z+80wjNcr1YKepWQboSIRi63WsWXhIMN+eWys="

    Pinner seulement le root bloque les certificats d'une autre CA (MITM), mais pas un certificat frauduleux de cette même CA ; pinner l'intermediate, voire le leaf, est plus strict. Test : pin leaf + root, changer de leaf, ça passe encore grâce au pin restant. Le plus sûr mais le plus délicat : pinner seulement le leaf (avec un backup).

    October 20, 2016 - permalink - https://community.letsencrypt.org/t/hpkp-best-practices-if-you-choose-to-implement/4625
    hpkp https
  • CloudWatch Logs Agent Reference - Amazon CloudWatch Logs

    Donc AWS propose un service équivalent à elastic beats

    L'agent est paramétrable pour collecter tel ou tel fichier de logs et les envoyer dans cloudwatch

    October 20, 2016 - permalink - http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html
    aws
  • How can I see which sites have set the HSTS flag in my browser? - Information Security Stack Exchange

    Un peu une saloperie ce HSTS tout de même

    Chrome:

    Open Chrome
    Type chrome://net-internals/#hsts in the address bar of chrome
    Query domain: if it appears as a result, it is HSTS enabled
    

    Firefox:

    Open file explorer
    Copy paste %APPDATA%\Mozilla\Firefox\Profiles\ in the address bar of file explorer (for Linux it is ~/.mozilla/firefox)
    Double click the folder you see (if you have multiple FF profiles, there will be multiple folders)
    Open SiteSecurityServiceState.txt. This textfile contains sites that have enabled HSTS.
    
    October 20, 2016 - permalink - http://security.stackexchange.com/questions/92954/how-can-i-see-which-sites-have-set-the-hsts-flag-in-my-browser
    browser hsts https security ssl
  • Note: man cat

    -T, --show-tabs
    display TAB characters as ^I

    October 19, 2016 - permalink - https://links.infomee.fr/shaare/z9hTFw
    cat hidden man tab
  • Note: Create an EBS and add a name Tag oneliner

    aws ec2 create-volume --size 40 --availability-zone eu-west-1a --volume-type gp2|grep -Eo 'vol-[^"]+'|xargs -I % aws ec2 create-tags --resources % --tags Key=Name,Value=my_name

    October 19, 2016 - permalink - https://links.infomee.fr/shaare/76LRBQ
    aws ebs
  • Forfait B&YOU Europe 4G 30Go – Bouygues Telecom

    cher mais bon..

    October 18, 2016 - permalink - https://www.bouyguestelecom.fr/forfaits-mobiles/forfaits-sans-engagement/forfait-b-you-europe-30go-sans-engagement
    forfait suisse telephone
  • How To Tell Apache To Not Log Certain Requests In Its Access Log

    Log selectif apache

    October 18, 2016 - permalink - https://www.howtoforge.com/setenvif_apache2
    apache log
  • Populating your EBS volume - Atlassian Documentation
    October 18, 2016 - permalink - https://confluence.atlassian.com/bamboo/populating-your-ebs-volume-289277122.html
    bamboo
  • Configuring elastic instances to use the EBS - Atlassian Documentation

    bin/customiseInstance.sh - This script is run on startup of an elastic instance. We recommend that you do not customize this script, as it is overwritten when rewarmEbsSnapshot.sh is run.

    October 18, 2016 - permalink - https://confluence.atlassian.com/bamboo/configuring-elastic-instances-to-use-the-ebs-289277121.html
    bamboo
  • REALFLY | Simulateur de chute libre indoor en Suisse - Soufflerie intérieur Sion (CH)
    October 17, 2016 - permalink - https://realfly.ch/en/
    chute libre sion soufflerie
  • Releases · shaarli/Shaarli

    Shaarli now uses Composer to handle its dependencies: master branch tarball no longer works out of the box. Use our release archives, or follow the install documentation.

    :(

    October 14, 2016 - permalink - https://github.com/shaarli/Shaarli/releases
    shaarli
  • Note: aws

    EB

    IAM

    EC2
    ELB
    ECS

    ELB
    ECS
    S3
    RDS(Aurora)

    VPC
    Subnets
    Routing
    NAT
    ACLs
    Security groups
    Group policy

    Cloudwatch
    Flowlogs

    October 13, 2016 - permalink - https://links.infomee.fr/shaare/ldAx8Q
    aws
  • Note: get aws flow logs

    aws logs get-log-events --log-group-name XX --log-stream-name YY --start-time 1476350746000

    Je commence à bien aimer aws.

    October 13, 2016 - permalink - https://links.infomee.fr/shaare/ZHDmkA
    aws flow log logs
  • How To Create Flat Style Breadcrumb Links with CSS
    October 13, 2016 - permalink - http://line25.com/tutorials/how-to-create-flat-style-breadcrumb-links-with-css
    css triangle
  • CSS triangle generator
    October 13, 2016 - permalink - http://apps.eky.hk/css-triangle-generator/
    css triangle
  • Amazon RDS FAQs – Amazon Web Services (AWS)

    Q: What is a DB Subnet Group and why do I need one?

    A DB Subnet Group is a collection of subnets that you may want to designate for your RDS DB Instances in a VPC. Each DB Subnet Group should have at least one subnet for every Availability Zone in a given Region. When creating a DB Instance in VPC, you will need to select a DB Subnet Group. Amazon RDS then uses that DB Subnet Group and your preferred Availability Zone to select a subnet and an IP address within that subnet. Amazon RDS creates and associates an Elastic Network Interface to your DB Instance with that IP address.

    Please note that, we strongly recommend you use the DNS Name to connect to your DB Instance as the underlying IP address can change (e.g., during a failover).

    For Multi-AZ deployments, defining a subnet for all Availability Zones in a Region will allow Amazon RDS to create a new standby in another Availability Zone should the need arise. You need to do this even for Single-AZ deployments, just in case you want to convert them to Multi-AZ deployments at some point.

    October 12, 2016 - permalink - https://aws.amazon.com/rds/faqs/
    aws rds
  • Note: mitm call app https

    ngrep pas glop quand https, du coup :

    sudo apt install mitmproxy

    mitmdump -v -d

    Dans l'application, configurer la lib (curl ou autre..) pour utiliser un proxy http/https sur 127.0.0.1:8080 (mitmdump écoute sur ce port)
    ou bien plus violent :
    sysctl -w net.ipv4.ip_forward=1
    iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
    iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8080

    Dans tous les cas, la lib va raler car certif pas ok : utiliser insecure si possible dans l'app ou bien generer certif et le trust au niveau de l'os

    à partir de là on peut voir les call/response avec mitmdump

    October 12, 2016 - permalink - https://links.infomee.fr/shaare/NTFdDw
    https mitm ngrep
  • How do I reorder tmux windows? - Super User

    C-A
    :swap-window -t 0

    bind-key -n C-S-Left swap-window -t -1
    bind-key -n C-S-Right swap-window -t +1

    Pressing Ctrl+Shift+Left (will move the current window to the left. Similarly right. No need to use the modifier (C-b).

    October 12, 2016 - permalink - http://superuser.com/questions/343572/how-do-i-reorder-tmux-windows
    tmux
  • SNCF : à quoi sert donc le TLD .sncf qui a coûté si cher ? - ZDNet

    eh bah, 25000$ de redevance annuelle pour un tld
    ya interet à en vendre du domaine pour rentabiliser cette redevance

    October 11, 2016 - permalink - http://www.zdnet.fr/actualites/sncf-a-quoi-sert-donc-le-tld-sncf-qui-a-coute-si-cher-39842702.htm
    sncf tld
  • AWS - VPC Networking for Beginners - DZone Cloud

    So, an elastic ip and an igw in the routing table are two criterion for an instance to be available directly from the internet. Subnets with such routing tables attached to them are also known as public subnets (non-local traffic routed to internet gateway), as any instance with an elastic ip can be publicly available from this subnet.

    October 11, 2016 - permalink - https://dzone.com/articles/aws-vpc-networking-beginners
    aws networking subnet
  • Note: mysqldump

    Options interessantes : --quick --single-transaction

    October 10, 2016 - permalink - https://links.infomee.fr/shaare/AwRWHg
    mysql rtfm
  • How to Automatically Tag Amazon EC2 Resources in Response to API Events - AWS Security Blog

    Intéressant comme workflow, l'objectif est de laisser les users/soft créer des EC2 comme ils veulent et avoir les droits seulement sur les EC2 qu'ils ont créé.

    Comment ça marche ? auto tagging des EC2 avec l'userid à la création couplé avec une policy qui autorise les action seulement si le tag avec l'userid est présent.

    pacon

    Dans le meme genre sans l'auto tagging :
    http://blogs.aws.amazon.com/security/post/Tx29HCT3ABL7LP3/Resource-level-Permissions-for-EC2-Controlling-Management-Access-on-Specific-Ins

    October 10, 2016 - permalink - https://blogs.aws.amazon.com/security/post/Tx150Z810KS4ZEC/How-to-Automatically-Tag-Amazon-EC2-Resources-in-Response-to-API-Events
    aws security
  • appbaseio/mirage: 🔎 GUI for writing Elasticsearch queries

    woot nice! ça peut être bien utile

    via Doo

    October 7, 2016 - permalink - https://github.com/appbaseio/mirage
    elasticsearch gui query
  • hipchat/hubot-hipchat: HipChat adapter for GitHub's Hubot

    ça a l'air un peu plus compliqué qu'avec irc à première vue

    October 7, 2016 - permalink - https://github.com/hipchat/hubot-hipchat
    hipchat hubot
  • git - How can I grep hidden files? - Stack Overflow

    I have a bad habit: grep -r search *

    It does not search in hidden files/dir...

    Better to do this:

    grep -r search .

    October 6, 2016 - permalink - http://stackoverflow.com/questions/10375689/how-can-i-grep-hidden-files
    grep
  • Using Ctrl+Tab in GNU Screen over PuTTY at scnr.net

    living in the windows side is a pain

    October 5, 2016 - permalink - http://scnr.net/blog/index.php/archives/61
    putty
  • OpenVPN sur le port 443 partagé avec un serveur web | memo-linux.com

    via Doo

    October 5, 2016 - permalink - https://memo-linux.com/openvpn-sur-le-port-443-partage-avec-un-serveur-web/
    openvpn
  • EC2 — Boto 3 Docs 1.4.0 documentation

    These are the resource's available collections:

    classic_addresses
    dhcp_options_sets
    images
    instances
    internet_gateways
    key_pairs
    network_acls
    network_interfaces
    placement_groups
    route_tables
    security_groups
    snapshots
    subnets
    volumes
    vpc_addresses
    vpc_peering_connections
    vpcs
    
    October 5, 2016 - permalink - http://boto3.readthedocs.io/en/latest/reference/services/ec2.html#service-resource
    aws boto
  • Aurora on Amazon RDS - Amazon Relational Database Service

    Pour un cluster Aurora donné, 3 endpoints :
    - cluster endpoint : pointe toujours sur le master
    - reader endpoint : pointe toujours sur un slave
    - instance endpoint : permet de pointer spécifiquement une instance donnée. Ne garantit pas que cette instance restera un slave ou un master.

    You can determine which DB instance in an Aurora DB cluster that a connection is connected to by checking the innodb_read_only global variable, as shown in the following example.
    SHOW GLOBAL VARIABLES LIKE 'innodb_read_only';
    The innodb_read_only variable will be set to ON if you are connected to an Aurora Replica and OFF if you are connected to the primary instance.

    October 3, 2016 - permalink - http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html
    aurora aws mysql
  • minio/mc: Minio Client is a replacement for ls, cp, mkdir, diff and rsync commands for filesystems and object storage.

    via Doo

    September 30, 2016 - permalink - https://github.com/minio/mc
    aws s3
  • Pricing | phpList

    via Doo

    September 29, 2016 - permalink - https://www.phplist.com/pricing
    mail
  • Free email marketing software

    via Doo

    September 29, 2016 - permalink - https://www.mailjet.com/pricing_v3
    mail
  • Quickstart — Boto 3 Docs 1.4.0 documentation
    September 29, 2016 - permalink - http://boto3.readthedocs.io/en/latest/guide/quickstart.html
    aws boto python
  • Note: Some useful AWS CLI oneliner

    Because terminal > web interface

    To briefly list all env (one env by line):
    aws elasticbeanstalk describe-environments|jq -r '.Environments|.[]| [.ApplicationName, .EnvironmentName, .VersionLabel, .Status, .CNAME] | @csv'|sort

    To get all info about one env (pass EnvironmentName):
    aws elasticbeanstalk describe-environments --environment-names toto-prod

    List all subnets:
    aws ec2 describe-subnets|jq -r '.Subnets|.[]|.SubnetId'

    List all ec2 instanceId:
    aws ec2 describe-instances|jq -r '.Reservations|.[]|.Instances|.[]|.InstanceId'

    List all ec2 instanceId with its associated subnetId:
    aws ec2 describe-instances|jq -r '.Reservations|.[]|.Instances|.[]|[.InstanceId, .SubnetId] | @csv'

    September 28, 2016 - permalink - https://links.infomee.fr/shaare/uMBmyg
    aws cli
  • How to update remote branch list on local machine? - Detlus Knowledge Base

    git remote update origin --prune

    September 28, 2016 - permalink - http://kb.detlus.com/articles/git/how-to-update-remote-branch-list-on-local-machine/
    branch git remote
  • Security in Your VPC - Amazon Virtual Private Cloud

    AWS, c'est un métier.

    September 27, 2016 - permalink - http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Security.html
    aws
  • Liberation mono

    10

    September 27, 2016 - permalink - https://www.fontsquirrel.com/fonts/liberation-mono
    font
  • Managed Policies and Inline Policies - AWS Identity and Access Management

    AWS Managed VS Customer Manageg VS Inline

    September 22, 2016 - permalink - http://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html
    iam policy
  • ZoneMinder - Home

    via Doo

    September 21, 2016 - permalink - https://zoneminder.com/
    camera
  • IPFS is the Distributed Web

    via irc

    September 21, 2016 - permalink - https://ipfs.io/
    p2p
  • Blockstack - The New Decentralized Internet

    via irc

    September 21, 2016 - permalink - https://blockstack.org/
    p2p
  • Identities (Users, Groups, and Roles) - AWS Identity and Access Management

    Diff between user and role

    September 21, 2016 - permalink - http://docs.aws.amazon.com/IAM/latest/UserGuide/id.html
    aws iam
  • Getting Credential Reports for Your AWS Account - AWS Identity and Access Management

    To generate a report

    • :

    In addition to using credential reports, you can also determine when a password or access key was last used by using these IAM APIs:
    ListUsers (AWS CLI command: aws iam list-users)
    GetUser (AWS CLI command: aws iam get-user)
    GetAccessKeyLastUsed (AWS CLI command: aws iam get-access-key-last-used)

    September 21, 2016 - permalink - http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html
    audit aws iam
  • Using an IAM Role to Grant Permissions to Applications Running on Amazon EC2 Instances - AWS Identity and Access Management

    This one explains why to use roles

    September 21, 2016 - permalink - http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2.html
    aws iam
  • Changes that I make are not always immediately visible

    Bon à savoir

    September 21, 2016 - permalink - http://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency
    aws
  • Kerberos.io - Video Surveillance
    September 20, 2016 - permalink - https://kerberos.io/
    camera maison rasp raspberry surveillance
  • LoRaWAN — Wikipédia

    Comme Sigfox

    September 20, 2016 - permalink - https://fr.wikipedia.org/wiki/LoRaWAN
    iot
  • jamiealquiza/polymur: A fast and flexible Graphite relay and forwarder
    September 13, 2016 - permalink - https://github.com/jamiealquiza/polymur
    graphite
  • Bundler: bundle install

    Summary: In general, after making a change to the Gemfile(5) , you should first try to run bundle install, which will guarantee that no other gem in the Gemfile(5) is impacted by the change. If that does not work, run bundle update(1).

    September 9, 2016 - permalink - http://bundler.io/v1.13/man/bundle-install.1.html
    bundle gem ruby
  • Note: RSS sur les tags ou les releases github

    Pour avoir un flux atom pour suivre les tags ou les releases d'un projet github, c'est très simple, il suffit d'ajouter ".atom" à l'url

    Par exemple si je veux suivre les releases de rails : https://github.com/rails/rails/releases.atom

    September 9, 2016 - permalink - https://links.infomee.fr/shaare/efyvbA
    github rss veille
▼ Load 50 more