Giter Site home page Giter Site logo

mozilla-github-standards / d666440ed0bebe7932065a484ea2c826fd067eb1f657dc412bf53aacb240b660 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla-iam/cis_ldap_publisher

0.0 0.0 0.0 15 KB

Publisher conforming to the IAM Full profile model. Takes data from s3 and transforms into kinesis events.

License: Mozilla Public License 2.0

Dockerfile 8.81% Shell 16.54% Python 74.65%

d666440ed0bebe7932065a484ea2c826fd067eb1f657dc412bf53aacb240b660's Introduction

cis_ldap_publisher

An integration connector for ldap data to be stored in Mozilla's CIS Identity Vault.

Local Development

  1. Setup python3 virtualenv and install dev reqs
  2. export STAGE=testing

export CIS_DYNAMODB_TABLE=CISStaging-VaultandStreams-IdentityVaultUsers-O35P6M8U9LNW export CIS_ARN_MASTER_KEY=arn:aws:kms:us-west-2:656532927350:key/9e231aa0-04e4-4517-a45d-633c3bb055f0 export CIS_STREAM_ARN=arn:aws:kinesis:us-west-2:656532927350:stream/CISStaging-VaultandStreams-CISInputStream-P7DYU9FBQ2OW export CIS_KINESIS_STREAM_NAME=CISStaging-VaultandStreams-CISInputStream-P7DYU9FBQ2OW export CIS_IAM_ROLE_ARN= arn:aws:iam::656532927350:role/CISPublisherRole export CIS_PUBLISHER_NAME=ldap export CIS_IAM_ROLE_SESSION_NAME=test_ldap_client export CIS_IAM_ROLE_ARN=arn:aws:iam::656532927350:role/CISPublisherRole export CIS_LAMBDA_VALIDATOR_ARN=arn:aws:lambda:us-west-2:656532927350:function:cis_functions_stage_validator export CIS_PERSON_API_URL=person-api.sso.allizom.org export CIS_PERSON_API_AUDIENCE=https://person-api.sso.allizom.org export CIS_PERSON_API_VERSION=v1 export CIS_OAUTH2_DOMAIN=auth-dev.mozilla.auth0.com export LDAP_NAMESPACE=Mozilla-LDAP-Dev export SIGNING_KEY_ARN=arn:aws:kms:us-west-2:656532927350:key/33a642fd-dd44-4405-9c85-2ad32eeeb87b export CIS_LDAP_DIFF_BUCKET=dev-cis-ldap2s3-publisher-data export CIS_LDAP_S3_REGION=us-east-1 export CIS_LDAP_JSON_FILE=ldap.json.xz

Prod variables

export STAGE=prod

export CIS_DYNAMODB_TABLE=cis-stream-prod-and-idv-IdentityVaultUsers-LMGGZ2XE8K6F export CIS_ARN_MASTER_KEY=arn:aws:kms:us-west-2:371522382791:key/adef50ad-2846-46df-b783-1c8f35e858cb export CIS_STREAM_ARN=arn:aws:kinesis:us-west-2:371522382791:stream/cis-stream-prod-and-idv-CISInputStream-1R29T8G6ZQTQ5 export CIS_KINESIS_STREAM_NAME=cis-stream-prod-and-idv-CISInputStream-1R29T8G6ZQTQ5 export CIS_IAM_ROLE_ARN=arn:aws:iam::371522382791:role/CISPublisherRole export CIS_PUBLISHER_NAME=ldap export CIS_IAM_ROLE_SESSION_NAME=prod_ldap_client export CIS_LAMBDA_VALIDATOR_ARN=arn:aws:lambda:us-west-2:371522382791:function:cis_functions_prod_latest_validator export CIS_PERSON_API_URL=person-api.sso.mozilla.com export CIS_PERSON_API_AUDIENCE=https://person-api.sso.mozilla.com export CIS_PERSON_API_VERSION=v1 export CIS_OAUTH2_DOMAIN=auth.mozilla.auth0.com export LDAP_NAMESPACE=Mozilla-LDAP export SIGNING_KEY_ARN=arn:aws:kms:us-west-2:371522382791:key/e7373ecf-e32b-4cfc-8f4c-8eab112357c4

Deployment Instructions

TBD

To Do

Enrich Parsys_Test with some ldap data as part of every run. Request additional LDAP Test Account (Viorela)

Testing

Due to the nature of the complex interactions these tests can only be run by a developer who has assumed the CIS developer role.

How to Run Locally

docker run --rm -ti \
-v ~/.aws:/root/.aws \
-v ~/workspace/cis_ldap_publisher/:/workspace \
mozillaiam/docker-sls:latest \
/bin/bash

d666440ed0bebe7932065a484ea2c826fd067eb1f657dc412bf53aacb240b660's People

Contributors

andrewkrug avatar mozilla-github-standards avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.