mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-11-03 20:27:45 +00:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			release/v2
			...
			feature/wi
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					05d06fce53 | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -18,3 +18,4 @@ _deps
 | 
				
			|||||||
*.csr
 | 
					*.csr
 | 
				
			||||||
/cmake-build/
 | 
					/cmake-build/
 | 
				
			||||||
/smake-build-debug/
 | 
					/smake-build-debug/
 | 
				
			||||||
 | 
					test_scripts/curl/result.json
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -91,6 +91,7 @@ RUN wget https://raw.githubusercontent.com/Telecominfraproject/wlan-cloud-ucentr
 | 
				
			|||||||
    -O /usr/local/share/ca-certificates/restapi-ca-selfsigned.pem
 | 
					    -O /usr/local/share/ca-certificates/restapi-ca-selfsigned.pem
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY readiness_check /readiness_check
 | 
					COPY readiness_check /readiness_check
 | 
				
			||||||
 | 
					COPY test_scripts/curl/cli /cli
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXPOSE 16001 17001 16101
 | 
					EXPOSE 16001 17001 16101
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										34
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										34
									
								
								README.md
									
									
									
									
									
								
							@@ -98,6 +98,40 @@ to get a sample. The default is
 | 
				
			|||||||
### `authentication.oldpasswords`
 | 
					### `authentication.oldpasswords`
 | 
				
			||||||
The number of older passwords to keep. Default is 5.
 | 
					The number of older passwords to keep. Default is 5.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Changing default password
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					On the first startup of the service new user will be created with the default credentials from properties `authentication.default.username` and `authentication.default.password`, but **you will have to change the password** before making any real requests.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					You can this using [owgw-ui](https://github.com/Telecominfraproject/wlan-cloud-ucentralgw-ui/) on first login or using the following script:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					export OWSEC=openwifi.wlan.local:16001 # endpoint to your owsec RESTAPI endpoint
 | 
				
			||||||
 | 
					#export FLAGS="-k" # uncomment and add curl flags that you would like to pass for the request (for example '-k' may be used to pass errors with self-signed certificates)
 | 
				
			||||||
 | 
					export OWSEC_DEFAULT_USERNAME=root@system.com # default username that you've set in property 'authentication.default.username'
 | 
				
			||||||
 | 
					export OWSEC_DEFAULT_PASSWORD=weLoveWifi # default password __in cleartext__ from property 'authentication.default.password'
 | 
				
			||||||
 | 
					export OWSEC_NEW_PASSWORD=NewPass123% # new password that must be set for the user (must comply with 'authentication.validation.expression')
 | 
				
			||||||
 | 
					test_scripts/curl/cli testlogin $OWSEC_DEFAULT_USERNAME $OWSEC_DEFAULT_PASSWORD $OWSEC_NEW_PASSWORD
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CLI is also included in Docker image if you want to run it this way:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					export OWSEC=openwifi.wlan.local:16001
 | 
				
			||||||
 | 
					#export FLAGS="-k"
 | 
				
			||||||
 | 
					export OWSEC_DEFAULT_USERNAME=root@system.com
 | 
				
			||||||
 | 
					export OWSEC_DEFAULT_PASSWORD=weLoveWifi
 | 
				
			||||||
 | 
					export OWSEC_NEW_PASSWORD=NewPass123%
 | 
				
			||||||
 | 
					docker run --rm -ti \
 | 
				
			||||||
 | 
					  --network=host \
 | 
				
			||||||
 | 
					  --env OWSEC \
 | 
				
			||||||
 | 
					  --env FLAGS \
 | 
				
			||||||
 | 
					  --env OWSEC_DEFAULT_USERNAME \
 | 
				
			||||||
 | 
					  --env OWSEC_DEFAULT_PASSWORD \
 | 
				
			||||||
 | 
					  --env OWSEC_NEW_PASSWORD \
 | 
				
			||||||
 | 
					  tip-tip-wlan-cloud-ucentral.jfrog.io/owsec:main \
 | 
				
			||||||
 | 
					  /cli testlogin $OWSEC_DEFAULT_USERNAME $OWSEC_DEFAULT_PASSWORD $OWSEC_NEW_PASSWORD
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Kafka integration
 | 
					### Kafka integration
 | 
				
			||||||
This security service uses Kafka to coordinate security with other services that are part of the system. You must have a Kafka service running
 | 
					This security service uses Kafka to coordinate security with other services that are part of the system. You must have a Kafka service running
 | 
				
			||||||
in order to use this. You can find several examples of Kafka services available with Docker. Here are the values you need to configure.
 | 
					in order to use this. You can find several examples of Kafka services available with Docker. Here are the values you need to configure.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user