Skip to content

Commit 7737c70

Browse files
authored
Merge pull request #191 from LF-Engineering/CLA-843-remove-sensitive-info
Remove most sensitive data from codebase, excluding (for now) circlec…
2 parents b45d267 + 520ce7c commit 7737c70

File tree

9 files changed

+9
-11
lines changed

9 files changed

+9
-11
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,5 @@ dist/*
230230

231231
# Playground tmp files
232232
.playground
233+
234+
api-postman/*

cla-backend-go/contractgroup/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
var (
15-
userID = "***REMOVED***"
15+
userID = "<redacted>"
1616
)
1717

1818
type Service interface {

cla-backend-go/db/demoData.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
VALUES ('11ebaa98-3471-4fcf-99e8-729549e4f326', 'github', 'github_username');
1515

1616
INSERT INTO cla.user_auth_provider(user_id, provider, provider_user_id)
17-
VALUES ('***REMOVED***', 'lfid', '***REMOVED***');
17+
VALUES ('***REMOVED***', 'lfid', 'foobarski');
1818

1919
INSERT INTO cla.user_auth_provider(user_id, provider, provider_user_id)
2020
VALUES ('***REMOVED***', 'github', 'user two');

cla-backend-go/project/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
var (
13-
userID = "***REMOVED***"
13+
userID = "<redacted>"
1414
)
1515

1616
type Service interface {

cla-backend/cla/user.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ def cla_user(default=None, request=None, **kwargs):
3838

3939

4040
class CLAUser(object):
41-
"""
42-
Data received from Keycloak:
43-
{'jti': '***REMOVED***', 'exp': 1513195124, 'nbf': 0, 'iat': 1513193324, 'iss': 'http://localhost:53235/auth/realms/LinuxFoundation', 'aud': 'cla', 'sub': '***REMOVED***', 'typ': 'Bearer', 'azp': 'cla', 'auth_time': 0, 'session_state': '***REMOVED***', 'acr': '1', 'allowed-origins': ['*'], 'realm_access': {'roles': ['engineering-team']}, 'resource_access': {}, 'name': '***REMOVED*** ***REMOVED***', 'preferred_username': '***REMOVED***', 'given_name': '***REMOVED***', 'family_name': '***REMOVED***', 'email': '***REMOVED***@linuxfoundation.org'}
44-
"""
4541
def __init__(self, data):
4642
self.data = data
4743
self.user_id = data.get('sub', None)

cla-backend/helpers/create_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
manager.set_user_id(str(uuid.uuid4()))
6161
manager.set_user_name('First User')
6262
manager.set_user_email('[email protected]')
63-
manager.set_user_email('***REMOVED***@linuxfoundation.org')
63+
manager.set_user_email('foobarski@linuxfoundation.org')
6464
manager.set_user_github_id(123)
6565
manager.save()
6666

cla-backend/helpers/create_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
user1.set_user_id(str(uuid.uuid4()))
1818
user1.set_user_name('First User')
1919
user1.set_user_email('[email protected]')
20-
user1.set_user_email('***REMOVED***@linuxfoundation.org')
20+
user1.set_user_email('foobarski@linuxfoundation.org')
2121
user1.set_user_github_id(123)
2222
user1.save()
2323
cla.log.info('Creating second user')

cla-backend/helpers/get_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# cla.conf['KEYCLOAK_REALM'],
1313
# cla.conf['KEYCLOAK_CLIENT_SECRET'])
1414
# certs = kc.certs()
15-
# token = kc.token('password', '***REMOVED***', '***REMOVED***') # Password is same as username for sandbox.
15+
# token = kc.token('password', 'foobarski', 'foobarski') # Password is same as username for sandbox.
1616
# print(token)
1717
# print(kc.decode_token(token['access_token'], certs))
1818
# token = kc.token('client_credentials')

cla-frontend-console/src/ionic/services/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
export const CINCO_API_URL: string = "https://cinco_api_endpoint";
55
export const CLA_API_URL: string =
6-
"https://***REMOVED***.execute-api.us-east-1.amazonaws.com/dev-runze";
6+
"https://cla_api_endpoint/dev-runze";
77
export const ANALYTICS_API_URL: string = "https://analytics_api_endpoint";

0 commit comments

Comments
 (0)